Commit Graph

585 Commits (816ea2457184c6ed7c71de9c6181ee0d0eb3b3bf)

Author SHA1 Message Date
ytqh 816ea24571 Apply code formatting with ruff formatter
- Fixed formatting issues across 23 files
- Ensured all linting checks pass with uv run ruff check
- Code now follows consistent formatting standards
- No functional changes, only formatting improvements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh f1080f060c feat: Implement open email registration with conditional organization assignment
- Remove email domain validation requirement from registration endpoint
- Implement conditional organization assignment logic (auto-assign if domain match, else NULL)
- Allow users to register with any email address without requiring organization match
- Maintain backward compatibility for domain-matched emails (auto-assign to organization)
- Remove unused OrganizationNotFoundError import and fix code style

Key Changes:
- Modified EmailCodeLoginApi to allow registration without organization assignment
- Users with matching email domains are auto-assigned to organizations
- Users without matching domains can register and use platform with organization_id=NULL
- Prepared foundation for future organization invitation system

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh 9468a3ce4e fix 11 months ago
ytqh fa19a56660 Fix admin validation to check organization_members instead of tenant_account_joins
- Replace TenantAccountJoinRole check with OrganizationMember role check
- Use OrganizationRole.ADMIN to validate admin privileges
- Query organization_members table using account's current_organization_id
- This fixes the issue where super_admin@test.edu couldn't login despite having admin role

The previous validation was checking the wrong role system (tenant roles vs organization roles).
Now it correctly validates against the organization membership role.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh 0d5949ba46 Allow owner and admin roles to access admin API endpoints
- Modified admin API authentication to accept OWNER and ADMIN roles in addition to END_ADMIN
- This allows the same account to manage apps in Dify console and access admin statistics
- Fixes 401 errors when accessing admin platform with owner account

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh 6ddf67f7e3 fix lint 1 year ago
ytqh 7364cb70cf Merge remote-tracking branch 'lefeng/main' into merge-lefeng 1 year ago
ytqh b85ef8156b fix: add phone field as legacy support 1 year ago
ytqh dd331943e7 feat: add legacy phone field 1 year ago
ytqh acced21108 feat: format 1 year ago
ytqh 3a82e83dad feat: support email as admin login 1 year ago
ytqh cc625b387d Merge remote-tracking branch 'dify/main' into main 1 year ago
Good Wood 0b44791eae
feat: add mode for /info api (#19264) 1 year ago
Bowen Liang 8537abfff8
chore: avoid repeated type ignore noqa by adding flask_restful and flask_login in mypy import exclusions (#19224) 1 year ago
Yeuoly 8ac3a223a8
fix(api): add missing INNER_API_KEY to InnerAPIConfig (#19166) 1 year ago
Bowen Liang 22f5af9987
fix: support non-ascii charactors in filename of the tool files (#19228) 1 year ago
ytqh 01c6681fa1 Merge remote-tracking branch 'dify/main' into main 1 year ago
ytqh 5fdda0f20f Merge remote-tracking branch 'dify/main' into main 1 year ago
QuantumGhost 349c3cf7b8
feat(api): Add image multimodal support for LLMNode (#17372)
Enhance `LLMNode` with multimodal capability, introducing support for
image outputs.

This implementation extracts base64-encoded images from LLM responses,
saves them to the storage service, and records the file metadata in the
`ToolFile` table. In conversations, these images are rendered as
markdown-based inline images.
Additionally, the images are included in the LLMNode's output as
file variables, enabling subsequent nodes in the workflow to utilize them.

To integrate file outputs into workflows, adjustments to the frontend code
are necessary.

For multimodal output functionality, updates to related model configurations
are required. Currently, this capability has been applied exclusively to
Google's Gemini models.

Close #15814.

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
1 year ago
sondin d70fa2847b
add Accept-Ranges header for audio/video files (#19119) 1 year ago
xiaotian 23f6914b9b
fix: image preview triggers binary download (#19070) 1 year ago
小马哥 e5bdc1438a
fix: annotation update need use http put method and annotation-reply api doc parms wrong (#18891) 1 year ago
ytqh f55fdf380f Enhance file reading functionality to support XLSX files by converting them to CSV format, while maintaining automatic encoding detection for CSV files. 1 year ago
Yeuoly abafa68647
refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 1 year ago
devxing 136995d2a1
fix: change delete app status code from 204 to 200 (#18398)
Co-authored-by: devxing <devxing@gmail.com>
Co-authored-by: crazywoola <427733928@qq.com>
1 year ago
ytqh 554a80d7f7 feat: add DEBUG_ADMIN_PHONE configuration for demo features 1 year ago
ytqh fd430f281b add html to pdf endpoints 1 year ago
ytqh a8cf4645f5 change label 1 year ago
ytqh 10adb0fb94 remove legacy statis 1 year ago
ytqh 475a852a92 update analysis 1 year ago
1betatsu 9a3ecc1ac8
fix: Allow advanced chat app to get workflow run detail (#18753) (#18758) 1 year ago
gsmini ec82534a1e
optimize account status field hard coded (#18771)
Co-authored-by: crazywoola <427733928@qq.com>
1 year ago
Alex Chim 12836f9db9
Resolves #18536 Retreive conversation variables (#18581) 1 year ago
王晓阳 0babdffe3e
feat: support vastbase vector database (#16308) 1 year ago
Will 205535c8e9
chore: fix reimported (#18610) 1 year ago
Yeuoly ba9357da96
fix: handle PluginPermissionDeniedError in EndpointCreateApi (#18597) 1 year ago
ytqh d557cbb174 fix template 1 year ago
ytqh 71b67ea839 fix 1 year ago
ytqh 83e8721c85 fix: add correct answer in analysis 1 year ago
ytqh 28a925fffe fix: adapt more type 1 year ago
ytqh 442eee55c6 fix: fix data adapter 1 year ago
ytqh 2c49926403 feat: add summary analysis 1 year ago
ytqh 222705ead4 fix: fix pdf layout 1 year ago
ytqh a6ca634e35 add summary analysis tools for exam 1 year ago
Dongyu Li 413271eaa6
feat[plugin]:The plugin upload file change to be stored as a toolfile… (#18277) 1 year ago
lauding eb1ce3dd6b
feat: support huawei cloud vector database (#16141) 1 year ago
Xiyuan Chen 4247a6b807
fix: reset_password security issue (#18363) 1 year ago
Novice da9269ca97
feat: structured output (#17877) 1 year ago
Jyong e90c532c3a
fix retrival resource miss in chatflow (#18307) 1 year ago
Yeuoly 8f547e6340
fix(typing): validate OAuth code before processing access token (#18288) 1 year ago