Commit Graph

226 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 cc625b387d Merge remote-tracking branch 'dify/main' into main 1 year ago
QuantumGhost 9565fe9b1b
fix(api): fix alembic offline mode (#19285)
Alembic's offline mode generates SQL from SQLAlchemy migration operations,
providing developers with a clear view of database schema changes without
requiring an active database connection.

However, some migration versions (specifically bbadea11becb and d7999dfa4aae)
were performing database schema introspection, which fails in offline mode
since it requires an actual database connection.

This commit:
- Adds offline mode support by detecting context.is_offline_mode()
- Skips introspection steps when in offline mode
- Adds warning messages in SQL output to inform users that assumptions were made
- Prompts users to review the generated SQL for accuracy

These changes ensure migrations work consistently in both online and offline modes.

Close #19284.
1 year ago
ytqh 52e3789363 feat: fix 1 year ago
ytqh edb1bd7d26 fix: model issue 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 edcfd7761b
if as_attachment is in the url, add it to the sign_url (#18930) 1 year ago
Will 205535c8e9
chore: fix reimported (#18610) 1 year ago
-LAN- 2543162dec
fix: cannot delete workflow version if other version is published as a tool (#18486)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
ytqh fe9639e659 optimize index 1 year ago
-LAN- 44a2eca449
refactor: Refactors workflow node execution handling (#18382)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
Jyong e90c532c3a
fix retrival resource miss in chatflow (#18307) 1 year ago
-LAN- 6d9dd3109e
feat: add a abstract layer for WorkflowNodeExcetion (#18026) 1 year ago
Jimmyy aead48726e
fix: cannot regenerate with image(#15060) (#16611)
Co-authored-by: werido <359066432@qq.com>
1 year ago
ytqh 04d49ec8dc feat: force AdvancedChat alwasy use latest inputs instead of conversation inputs 1 year ago
ytqh c7e326aec8 feat: do not restrict health status 1 year ago
Good Wood cc08451eb8
fix: fix file number limit error (#17848) 1 year ago
Han f1e4d5ed6c
Fix Performance Issues: (#17083)
Co-authored-by: Wang Han <wanghan@zhejianglab.org>
1 year ago
ytqh 848365b0f7 use file id instead of image url 1 year ago
ytqh 40eef9822c finsh async image generation 1 year ago
ytqh d85267d5e1 impl user generate image 1 year ago
horochx a91b780936
perf: optimizing db WorkflowAppLog index (#14710) 1 year ago
ytqh 2c7c76aec3 add user gen image 1 year ago
jiangbo721 a1aa325ce3
Chore/code format and Repair commit_id 3254018d more deleted codes and Fix naming error ambiguity between workflow_run_id and workflow_id (#17075)
Co-authored-by: 刘江波 <jiangbo721@163.com>
1 year ago
Jyong 58c62f0a34
fix full-doc mode document doesn't reindex after enable or un_archive (#16737) 1 year ago
ytqh 29df704818 add organization cmd 1 year ago
ytqh 0056e6566c add organization 1 year ago
ytqh 3030a6312e fix lint err 1 year ago
Yeuoly bfc0d606dc
feat: cleanup free tenants expired data like messages/conversations/workflow_runs/workflow_node_executions (#16490) 1 year ago
QuantumGhost 383af7bf76
chore(api): enhance ruff rules to disallow dangerous functions and modules (#16461) 1 year ago
Jyong abeaea4f79
Support knowledge metadata filter (#15982) 1 year ago
-LAN- cefec44070
feat: add app_mode field to app import and model definitions (#15729)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
1 year ago
ytqh 47b6e067ea opt profile gen 1 year ago
ytqh d7efd1511c add basic user profile generation 1 year ago
ytqh 9fd25f37dc update model 1 year ago
ytqh 5c04969714 finish get user list 1 year ago
ytqh 02589846f5 add admin loging 1 year ago
非法操作 5019547d33
fix: can not test custom tool (#15606) 1 year ago
jiangbo721 0415cc209d
chore: use TenantAccountRole instead of TenantAccountJoinRole (#15514)
Co-authored-by: 刘江波 <jiangbo721@163.com>
1 year ago
Yu Chun Chang 6d172498d1
Update the provider_id validation to fix the error message displayed … (#15466)
Co-authored-by: Kyle Chang <kylechang@91app.com>
1 year ago
Jyong 9b2a9260ef
Feat/new saas billing (#14996) 1 year ago
KVOJJJin 78d460a6d1
Feat: time period filter for workflow logs (#14271)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
1 year ago
-LAN- 3254018ddb
feat(workflow_service): workflow version control api. (#14860)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
ytqh 3c6176b7b4 add fields on end user 1 year ago
jiangbo721 e70221a9f1
fix: website remote url display error (#15217)
Co-authored-by: 刘江波 <jiangbo721@163.com>
1 year ago
mr-chenguang 53eb56bb1e
Fix: psycopg2.errors.StringDataRightTruncation value too long for type character varying(40) (#15179) 1 year ago
Miki Watanabe 2e467cbc74
[FIX]Ruff: lint errors for E731 (#13018) 1 year ago
jiangbo721 829cd70889
fix: When chatflow's file uploads changed from not being supported to… (#14341)
Co-authored-by: 刘江波 <jiangbo721@163.com>
1 year ago