jiangbo721
e17b33e004
chore: add message status enum ( #21825 )
...
Co-authored-by: 刘江波 <jiangbo721@163.com>
2025-07-02 21:22:28 +08:00
jyong
832bef053f
Merge branch 'main' into feat/r2
...
# Conflicts:
# docker/docker-compose.middleware.yaml
# web/app/components/workflow-app/components/workflow-main.tsx
# web/app/components/workflow-app/hooks/index.ts
# web/app/components/workflow/hooks-store/store.ts
# web/app/components/workflow/hooks/index.ts
# web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx
2025-07-02 18:20:05 +08:00
jyong
81b07dc3be
r2
2025-07-02 18:15:23 +08:00
jyong
39d3f58082
r2
2025-07-02 11:33:00 +08:00
YoungLH
b8b9c3a783
fix: set the func.coalesce() second paramter default value #21239 ( #21240 )
...
Signed-off-by: YoungLH <974840768@qq.com>
2025-07-01 11:31:14 +08:00
Qiang Lee
9ded6f6a40
[fix] #21678 User input of remote file link on the run page form causes conversation/message interface error ( #21683 )
...
Co-authored-by: 李强04 <liqiang04@gaotu.cn>
2025-07-01 10:40:39 +08:00
jiangbo721
90aba77471
chore: remove unused code ( #21497 )
...
Co-authored-by: 刘江波 <jiangbo721@163.com>
2025-06-26 10:08:17 +08:00
jyong
efccbe4039
r2
2025-06-25 17:32:26 +08:00
-LAN-
8f15341f1e
fix(event_handlers): DB dead lock ( #21468 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-06-25 16:20:37 +08:00
jyong
540096a8d8
Merge branch 'main' into feat/r2
...
# Conflicts:
# api/core/plugin/impl/oauth.py
# api/core/workflow/entities/variable_pool.py
# api/models/workflow.py
# api/services/dataset_service.py
2025-06-25 14:35:23 +08:00
jiangbo721
9de552cb42
fix: first message query error ( #21444 )
...
Co-authored-by: 刘江波 <jiangbo721@163.com>
2025-06-24 20:32:50 +08:00
QuantumGhost
10b738a296
feat: Persist Variables for Enhanced Debugging Workflow ( #20699 )
...
This pull request introduces a feature aimed at improving the debugging experience during workflow editing. With the addition of variable persistence, the system will automatically retain the output variables from previously executed nodes. These persisted variables can then be reused when debugging subsequent nodes, eliminating the need for repetitive manual input.
By streamlining this aspect of the workflow, the feature minimizes user errors and significantly reduces debugging effort, offering a smoother and more efficient experience.
Key highlights of this change:
- Automatic persistence of output variables for executed nodes.
- Reuse of persisted variables to simplify input steps for nodes requiring them (e.g., `code`, `template`, `variable_assigner`).
- Enhanced debugging experience with reduced friction.
Closes #19735 .
2025-06-24 09:05:29 +08:00
-LAN-
6b1ad634f1
fix(workflow_run): sequence_number race. ( #21228 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-06-19 17:53:49 +08:00
jyong
b618f3bd9e
r2
2025-06-19 15:30:46 +08:00
jyong
f7fbded8b9
Merge branch 'main' into feat/r2
2025-06-19 13:32:07 +08:00
Xin Zhang
30cfc9c172
Feat/plugin install scope management ( #19963 )
2025-06-18 16:25:00 +08:00
jyong
7f7ea92a45
r2
2025-06-17 19:06:17 +08:00
jyong
9eb8597957
r2
2025-06-11 17:29:14 +08:00
jyong
1d8b390584
Merge branch 'main' into feat/r2
...
# Conflicts:
# docker/docker-compose.middleware.yaml
2025-06-11 17:16:27 +08:00
jyong
874e1bc41d
r2
2025-06-11 13:12:18 +08:00
jyong
e934503fa0
r2
2025-06-10 18:16:30 +08:00
QuantumGhost
930c4cb609
feat(api): Adjust `WorkflowDraftVariable` and `WorkflowNodeExecutionModel` ( #20746 )
...
- Add `node_execution_id` column to `WorkflowDraftVariable`, allowing efficient implementation of
the "Reset to last run value" feature.
- Add additional index for `WorkflowNodeExecutionModel` to improve the performance of last run lookup.
Closes #20745 .
2025-06-06 21:03:59 +08:00
jyong
8a86a2c817
r2
2025-06-05 14:09:50 +08:00
-LAN-
5ccfb1f4ba
refactor: Improve model status handling and structured output ( #20586 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-06-04 19:56:54 +08:00
jyong
8a147a00e8
r2
2025-06-04 17:29:39 +08:00
jyong
c09c8c6e5b
r2
2025-06-04 15:12:05 +08:00
jyong
9cdd2cbb27
r2
2025-06-03 19:02:57 +08:00
jyong
309fffd1e4
Merge branch 'main' into feat/r2
...
# Conflicts:
# api/core/repositories/sqlalchemy_workflow_node_execution_repository.py
# api/core/workflow/entities/node_entities.py
# api/core/workflow/enums.py
2025-06-03 18:56:49 +08:00
-LAN-
2ebf4e767b
fix(models): WorkflowRun's total_steps and exceptions_count mismatch with database ( #20452 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-30 07:53:13 +08:00
-LAN-
f7fb10635f
refactor(workflow): Rename workflow node execution models ( #20458 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-30 04:56:37 +08:00
-LAN-
482e50aae9
Refactor/remove db from cycle manager ( #20455 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-30 04:34:13 +08:00
jyong
976b465e76
r2
2025-05-30 00:55:06 +08:00
jyong
69529fb16d
r2
2025-05-30 00:37:27 +08:00
jyong
e7c48c0b69
r2
2025-05-29 23:04:04 +08:00
jyong
a025db137d
Merge branch 'main' into feat/r2
2025-05-29 09:54:28 +08:00
jyong
7f59ffe7af
r2
2025-05-28 17:56:04 +08:00
-LAN-
b357eca307
fix: Copy request context and current user in app generators. ( #20240 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-27 10:56:23 +08:00
jyong
5fc2bc58a9
r2
2025-05-27 00:01:23 +08:00
Good Wood
6f982eb7e4
feat: add author_name for app list card ( #16900 )
...
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-05-26 18:20:53 +08:00
Yeuoly
83ca7f8deb
feat: add datasource support to PluginDeclaration and PluginCategory
2025-05-26 17:32:25 +08:00
jyong
678d6ffe2b
r2
2025-05-26 17:00:16 +08:00
jyong
35be8721b9
Merge branch 'main' into feat/r2
2025-05-26 14:50:33 +08:00
jyong
64d997fdb0
r2
2025-05-23 15:55:41 +08:00
jyong
b93d26ee9f
Merge remote-tracking branch 'origin/feat/r2' into feat/r2
...
# Conflicts:
# api/core/datasource/entities/datasource_entities.py
2025-05-23 00:06:51 +08:00
jyong
b82b26bba5
r2
2025-05-23 00:05:57 +08:00
非法操作
9b1dc1de7a
fix: system file upload can't export custom file types ( #20122 )
2025-05-22 22:29:27 +08:00
-LAN-
d31235ca13
feat: Introduce WorkflowExecution Domain Entity and Repository, Replace WorkflowRun Direct Usage, and Unify Stream Response Logic ( #20067 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-21 22:01:53 +08:00
Yeuoly
3bfc602561
refactor: update datasource entity structure and parameter handling
...
- Renamed and split parameters in DatasourceEntity into first_step_parameters and second_step_parameters.
- Updated validation methods for new parameter structure.
- Adjusted datasource_node to reference first_step_parameters.
- Cleaned up unused imports and improved type hints in workflow.py.
2025-05-21 20:36:26 +08:00
QuantumGhost
13dc1c8795
Simplify `execution_metadata` Handling for `WorkflowNodeExecution` ( #20062 )
...
Currently, `WorkflowNodeExecution.execution_metadata_dict` returns `None` when metadata is absent in the database. This requires all callers to perform `None` checks when processing metadata, leading to more complex caller-side logic.
This pull request updates the `execution_metadata_dict` method to return an empty dictionary instead of `None` when metadata is absent. This change would simplify the caller logic, as it removes the need for explicit `None` checks and provides a more consistent data structure to work with.
2025-05-21 18:38:16 +08:00
-LAN-
3196dc2d61
refactor: Use typed SQLAlchemy base model and fix type errors ( #19980 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-21 15:38:03 +08:00
jyong
82be119fec
Merge branch 'main' into feat/r2
2025-05-20 15:18:52 +08:00
jyong
a64df507f6
r2
2025-05-20 15:18:33 +08:00
jyong
ba52bf27c1
r2
2025-05-20 14:57:26 +08:00
湛露先生
911f9eadd0
fix model workflow_draft_variables duplicate app_id set. ( #19949 )
...
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
2025-05-20 10:26:34 +08:00
QuantumGhost
6a9e0b1005
feat(api): Introduce `WorkflowDraftVariable` Model ( #19737 )
...
- Introduce `WorkflowDraftVariable` model and the corresponding migration.
- Implement `EnumText`, a custom column type for SQLAlchemy designed
to work seamlessly with enumeration classes based on `StrEnum`.
2025-05-19 22:59:56 +08:00
-LAN-
4977bb21ec
feat(workflow): domain model for workflow node execution ( #19430 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-17 00:56:16 +08:00
jyong
8bea88c8cc
r2
2025-05-16 17:22:17 +08:00
jyong
e710a8402c
r2
2025-05-15 16:07:17 +08:00
jyong
360f8a3375
Merge branch 'main' into feat/r2
2025-05-15 15:15:23 +08:00
jyong
818eb46a8b
r2
2025-05-15 15:14:52 +08:00
-LAN-
5360180a2a
feat: add index for workflow_conversation_variables.conversation_id ( #19657 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-14 14:16:15 +08:00
Ganondorf
c76d763639
add endpoint of get feedbacks ( #18697 )
...
Co-authored-by: lizb <lizb@sugon.com>
2025-05-13 10:35:14 +08:00
非法操作
b00f94df64
fix: replace all dataset.Model.query to db.session.query(Model) ( #19509 )
2025-05-12 13:52:33 +08:00
crazywoola
b29087b680
fix: db.session.query(TenantAccountJoin) ( #19482 )
2025-05-10 04:43:56 -07:00
-LAN-
792b321a81
refactor(models): Use the SQLAlchemy base model. ( #19435 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-09 13:52:05 +08:00
-LAN-
2ad7305349
Revert "perf: optimizing db WorkflowAppLog index" ( #19432 )
2025-05-09 13:51:57 +08:00
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 .
2025-05-06 18:05:19 +08:00
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>
2025-04-30 17:28:02 +08:00
jyong
3c386c63a6
Merge remote-tracking branch 'origin/feat/r2' into feat/r2
2025-04-28 16:19:29 +08:00
jyong
49d1846e63
r2
2025-04-28 16:19:12 +08:00
sondin
edcfd7761b
if as_attachment is in the url, add it to the sign_url ( #18930 )
2025-04-28 14:25:59 +08:00
Yeuoly
c2d02f8f4d
Merge branch 'main' into feat/r2
2025-04-27 14:31:19 +08:00
Will
205535c8e9
chore: fix reimported ( #18610 )
2025-04-23 16:48:00 +08:00
-LAN-
2543162dec
fix: cannot delete workflow version if other version is published as a tool ( #18486 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-04-21 17:58:22 +08:00
-LAN-
44a2eca449
refactor: Refactors workflow node execution handling ( #18382 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-04-18 20:06:24 +08:00
Jyong
e90c532c3a
fix retrival resource miss in chatflow ( #18307 )
2025-04-17 18:05:15 +08:00
jyong
5c4bf2a9e4
r2
2025-04-17 15:07:23 +08:00
-LAN-
6d9dd3109e
feat: add a abstract layer for WorkflowNodeExcetion ( #18026 )
2025-04-17 12:48:52 +09:00
Jimmyy
aead48726e
fix: cannot regenerate with image( #15060 ) ( #16611 )
...
Co-authored-by: werido <359066432@qq.com>
2025-04-16 09:56:46 +08:00
jyong
9f8e05d9f0
r2
2025-04-14 18:17:17 +08:00
jyong
3340775052
r2
2025-04-14 11:10:44 +08:00
Good Wood
cc08451eb8
fix: fix file number limit error ( #17848 )
2025-04-11 15:26:26 +08:00
jyong
9987774471
r2
2025-04-10 18:00:22 +08:00
Han
f1e4d5ed6c
Fix Performance Issues: ( #17083 )
...
Co-authored-by: Wang Han <wanghan@zhejianglab.org>
2025-04-09 11:22:53 +08:00
horochx
a91b780936
perf: optimizing db WorkflowAppLog index ( #14710 )
2025-03-30 13:17:23 +08:00
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>
2025-03-29 14:15:53 +08:00
Jyong
58c62f0a34
fix full-doc mode document doesn't reindex after enable or un_archive ( #16737 )
2025-03-25 16:26:14 +08:00
Yeuoly
bfc0d606dc
feat: cleanup free tenants expired data like messages/conversations/workflow_runs/workflow_node_executions ( #16490 )
2025-03-21 21:30:35 +08:00
QuantumGhost
383af7bf76
chore(api): enhance ruff rules to disallow dangerous functions and modules ( #16461 )
2025-03-21 17:49:35 +08:00
Jyong
abeaea4f79
Support knowledge metadata filter ( #15982 )
2025-03-18 16:42:19 +08:00
-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>
2025-03-18 11:12:25 +08:00
非法操作
5019547d33
fix: can not test custom tool ( #15606 )
2025-03-12 16:34:56 +08:00
jiangbo721
0415cc209d
chore: use TenantAccountRole instead of TenantAccountJoinRole ( #15514 )
...
Co-authored-by: 刘江波 <jiangbo721@163.com>
2025-03-12 12:56:30 +08:00
Yu Chun Chang
6d172498d1
Update the provider_id validation to fix the error message displayed … ( #15466 )
...
Co-authored-by: Kyle Chang <kylechang@91app.com>
2025-03-11 16:11:24 +08:00
Jyong
9b2a9260ef
Feat/new saas billing ( #14996 )
2025-03-10 19:50:11 +08:00
KVOJJJin
78d460a6d1
Feat: time period filter for workflow logs ( #14271 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2025-03-10 14:02:58 +08:00
-LAN-
3254018ddb
feat(workflow_service): workflow version control api. ( #14860 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-03-10 13:34:31 +08:00
jiangbo721
e70221a9f1
fix: website remote url display error ( #15217 )
...
Co-authored-by: 刘江波 <jiangbo721@163.com>
2025-03-07 20:32:29 +08:00
mr-chenguang
53eb56bb1e
Fix: psycopg2.errors.StringDataRightTruncation value too long for type character varying(40) ( #15179 )
2025-03-07 12:15:52 +08:00
Miki Watanabe
2e467cbc74
[FIX]Ruff: lint errors for E731 ( #13018 )
2025-03-05 15:54:04 +08:00