非法操作
b673560b92
feat: improve multi model credentials ( #25009 )
...
Co-authored-by: Claude <noreply@anthropic.com>
2025-09-03 13:52:31 +08:00
QuantumGhost
d2e341367e
fix(api): fix relations of WorkflowNodeExecutionModel not preloaded
...
`WorkflowNodeExecutionModel.offload_data` should be preloaded to
provide info about the offloading information of execution record.
The `RagPipelineService.get_node_last_run` does not utilize
`DifyAPISQLAlchemyWorkflowNodeExecutionRepository` so the loading
logics is not changed.
In the commit we migrate to calling
`DifyAPISQLAlchemyWorkflowNodeExecutionRepository` to avoid such issue.
2025-09-03 12:30:20 +08:00
QuantumGhost
e2ff7fac77
fix(api): fix variable truncation related field not returned.
2025-09-03 12:29:38 +08:00
-LAN-
b81745aed8
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
2025-09-03 11:56:05 +08:00
-LAN-
9d5956cef8
[Chore/Refactor] Switch from MyPy to Basedpyright for type checking ( #25047 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-09-03 11:52:26 +08:00
jyong
e1b6da21f4
fix preview and recommend plugins
2025-09-03 11:35:41 +08:00
Novice
7896eeec5b
fix: correct run history tracing sequence
2025-09-03 10:56:23 +08:00
-LAN-
77a9a73d0d
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
2025-09-03 01:33:17 +08:00
Will
b5216df4fe
fix: xxx is not bound to a Session ( #24966 )
2025-09-02 21:37:06 +08:00
GuanMu
25a11bfafc
Export DSL from history ( #24939 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-02 21:36:52 +08:00
jyong
7623dc14bb
fix preview and recommend plugins
2025-09-02 20:12:45 +08:00
jyong
343f1a375f
fix preview and recommend plugins
2025-09-02 19:41:29 +08:00
jyong
8467494706
fix preview and recommend plugins
2025-09-02 17:02:25 +08:00
jyong
7ace7e65e1
fix preview and recommend plugins
2025-09-02 16:44:18 +08:00
Bowen Liang
7b379e2a61
chore: apply ty checks on api code with script and ci action ( #24653 )
2025-09-02 16:05:13 +08:00
jyong
56fc9088dd
add recommended rag plugin endpoint
2025-09-02 11:56:05 +08:00
-LAN-
0b0dc63f29
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
2025-09-02 11:52:25 +08:00
jyong
d94e03c72b
add recommended rag plugin endpoint
2025-09-01 19:38:28 +08:00
QuantumGhost
eb7b21c7f1
Merge remote-tracking branch 'upstream/feat/rag-2' into feat/rag-2
2025-09-01 17:06:53 +08:00
ZalterCitty
bd482eb8ef
fix wrong filter handle for saved messages ( #24891 )
...
Co-authored-by: zhuqingchao <zhuqingchao@xiaomi.com>
2025-09-01 16:32:08 +08:00
Frederick2313072
5b3cc560d5
fix:hard-coded top-k fallback issue. ( #24879 )
2025-09-01 15:46:37 +08:00
QuantumGhost
e2ae89e08d
fix(tests): fix broken tests and linter issues
2025-09-01 14:55:35 +08:00
jyong
7920714f49
add recommended rag plugin endpoint
2025-09-01 14:45:56 +08:00
willzhao
ffba341258
[CHORE]: remove redundant-cast ( #24807 )
2025-09-01 14:05:32 +08:00
-LAN-
546d75d84d
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
2025-09-01 00:29:28 +08:00
Asuka Minato
24e2b72b71
Update ast-grep pattern for session.query ( #24828 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-31 17:03:51 +08:00
QuantumGhost
e9e7d4f3cd
Merge branch 'feat/rag-2' into feat/workflow-draft-var-optimize
2025-08-31 15:17:23 +08:00
QuantumGhost
c72d847ac7
feat(api): support array[boolean] truncation
2025-08-31 14:32:53 +08:00
QuantumGhost
6b9d2e98b9
feat(api): Implement truncation for WorkflowNodeExecution
2025-08-31 13:44:39 +08:00
QuantumGhost
13eb9f7d7d
feat(api): implement truncation for draft var
2025-08-31 13:44:38 +08:00
QuantumGhost
d7db58cabd
feat(api): implement VariableTruncator
2025-08-31 13:44:38 +08:00
QuantumGhost
40faa9ce16
refactor(api): Inject db dependency to FileService
2025-08-31 13:44:38 +08:00
-LAN-
22ee318cf8
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
2025-08-29 17:01:42 +08:00
Junyan Qin (Chin)
f32e176d6a
feat: oauth provider ( #24206 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: yessenia <yessenia.contact@gmail.com>
2025-08-29 14:10:51 +08:00
-LAN-
dce4d0ff80
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
2025-08-29 13:22:13 +08:00
Yongtao Huang
837c0ddacc
Chore: remove dead func AppModelConfig.copy() with wrong logic ( #24747 )
2025-08-29 11:38:24 +08:00
jyong
d0dd728e6c
Merge branch 'main' into feat/rag-2
...
# Conflicts:
# api/core/app/entities/queue_entities.py
# api/core/workflow/graph_engine/entities/event.py
2025-08-29 11:29:51 +08:00
jyong
5b4335c4b5
fix preview run
2025-08-28 22:02:22 +08:00
jyong
39080eed10
fix preview run
2025-08-28 22:01:49 +08:00
jyong
1db04aa729
Merge branch 'feat/queue-based-graph-engine' into feat/rag-2
2025-08-28 18:12:49 +08:00
jyong
64772fb413
fix preview run
2025-08-28 18:12:27 +08:00
Asuka Minato
4adf85d7d4
example for rm extra cast ( #24646 )
2025-08-28 09:37:39 +08:00
jyong
88abaa840c
merge new graph engine
2025-08-27 18:33:38 +08:00
-LAN-
c3f66e2901
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
2025-08-27 18:05:35 +08:00
Yongtao Huang
2a29c61041
Refactor: replace count() > 0 check with exists() ( #24583 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-27 17:46:52 +08:00
jyong
90d72f5ddf
merge new graph engine
2025-08-27 17:46:46 +08:00
jyong
392514fa13
Merge branch 'feat/queue-based-graph-engine' into feat/rag-2
...
# Conflicts:
# api/commands.py
# api/core/app/apps/common/workflow_response_converter.py
# api/core/llm_generator/llm_generator.py
# api/core/plugin/entities/plugin.py
# api/core/plugin/impl/tool.py
# api/core/rag/index_processor/index_processor_base.py
# api/core/workflow/entities/workflow_execution.py
# api/core/workflow/entities/workflow_node_execution.py
# api/core/workflow/enums.py
# api/core/workflow/graph_engine/entities/graph.py
# api/core/workflow/graph_engine/graph_engine.py
# api/core/workflow/nodes/enums.py
# api/services/dataset_service.py
2025-08-27 16:05:59 +08:00
-LAN-
8c35663220
feat: queue-based graph engine
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-08-27 15:33:28 +08:00
-LAN-
f04844435f
chore: bump version from 1.7.2 to 1.8.0 ( #24539 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-08-27 15:20:10 +08:00
湛露先生
d4883256f1
Fix login tokens and fix task clean_messages create_time. ( #24574 )
...
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-27 13:32:18 +08:00
Guangdong Liu
372074edba
refactor(http-request): Remove the reflective calls to ssrf_proxy and replace them with explicitly defined dictionary retrievals. ( #24596 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-27 13:23:34 +08:00
Yongtao Huang
826f19e968
Chore : rm dead code detected by pylance ( #24588 )
2025-08-27 13:19:40 +08:00
Maries
c06cfcbb5a
fix: tool provider deadlock ( #24532 )
...
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com>
2025-08-27 12:27:20 +08:00
twwu
da48e54778
Merge branch 'main' into feat/rag-2
2025-08-27 11:16:27 +08:00
jyong
5c15fe7b01
fix pipeline export
2025-08-26 18:52:24 +08:00
jyong
da9b38f642
pipeline name
2025-08-26 18:26:25 +08:00
Yongtao Huang
fa753239ad
Refactor: use logger = logging.getLogger(__name__) in logging ( #24515 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-08-26 18:10:31 +08:00
jyong
918958743f
Merge remote-tracking branch 'origin/feat/rag-2' into feat/rag-2
2025-08-26 17:18:49 +08:00
jyong
51c3f1b2e2
add pipeline async run
2025-08-26 17:18:43 +08:00
Harry
1f5fd13359
refactor(plugin_migration): improve code readability by formatting the install function signature
2025-08-26 16:03:59 +08:00
jyong
85f0d31fab
add pipeline async run
2025-08-26 15:51:49 +08:00
jyong
1d2d0ff49f
add pipeline async run
2025-08-26 15:32:39 +08:00
jyong
c77bdd1fb3
add pipeline async run
2025-08-26 15:20:40 +08:00
jyong
c3c4ef3a8e
add pipeline async run
2025-08-26 12:06:34 +08:00
jyong
1ad7b0e852
add pipeline async run
2025-08-25 18:26:05 +08:00
非法操作
6010d5f24c
feat: add multi model credentials ( #24451 )
...
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-25 16:12:29 +08:00
twwu
85fd97e090
Merge branch 'main' into feat/rag-2
2025-08-25 15:30:18 +08:00
jyong
cc1f0d4d8d
fix
2025-08-25 13:55:42 +08:00
Muke Wang
044ad5100e
fix: Update doc word count after delete chunks ( #24435 )
...
Co-authored-by: wangmuke <wangmuke@kingsware.cn>
2025-08-25 12:08:34 +08:00
znn
3aedc139ac
fix delete conversations via Api and delete conversations from db as well ( #23591 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-25 09:43:45 +08:00
Bowen Liang
d8000251ff
chore: apply static type checks on celery async task dispatches and imports ( #24418 )
2025-08-24 23:07:22 +08:00
-LAN-
da9af7b547
[Chore/Refactor] Use centralized naive_utc_now for UTC datetime operations ( #24352 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-08-22 23:53:05 +08:00
twwu
8c44151e6f
Merge branch 'main' into feat/rag-2
2025-08-22 17:40:34 +08:00
jyong
6b7ea9885c
support name generate
2025-08-22 11:34:01 +08:00
willzhao
5ab6bc283c
[CHORE]: x: T = None to x: Optional[T] = None ( #24217 )
2025-08-21 21:58:39 +08:00
jyong
4545f509a5
support name generate
2025-08-21 19:15:16 +08:00
Guangdong Liu
1abf1240b2
refactor: replace try-except blocks with contextlib.suppress for cleaner exception handling ( #24284 )
2025-08-21 18:18:49 +08:00
twwu
dfd33b3d84
Merge branch 'main' into feat/rag-2
2025-08-21 09:43:51 +08:00
huangzhuo1949
1caeac56f2
fix: dataset doc-form compatible ( #24177 )
...
Co-authored-by: huangzhuo <huangzhuo1@xiaomi.com>
2025-08-20 23:48:56 +08:00
Xiyuan Chen
cfefe4f738
Feat: Education ( #24208 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-20 15:38:14 +08:00
twwu
a1666fe058
Merge branch 'main' into feat/rag-2
2025-08-19 14:59:06 +08:00
Asuka Minato
70da81d0e5
try ast-grep ( #24149 )
2025-08-19 13:41:52 +08:00
Harry
fcdbe3b84a
fix: plugin service import
2025-08-19 10:06:27 +08:00
Zhehao Peng
c0702aacac
Use typing.Literal to replace str places ( #24099 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-18 21:34:13 +08:00
Harry
6ce013ac52
fix: OAuth client parameter retrieval by verifying plugin status
2025-08-18 20:41:22 +08:00
twwu
386614951f
Merge branch 'main' into feat/rag-2
2025-08-18 11:16:18 +08:00
Maries
a7fe0e3f87
fix(oauth): redis compatibility ( #23959 )
2025-08-18 11:14:08 +08:00
Will
821fe26b56
fix comparison with callable ( #23978 )
2025-08-15 15:03:00 +08:00
autofix-ci[bot]
ff76adc88a
[autofix.ci] apply automated fixes
2025-08-15 04:17:51 +00:00
Yunlu Wen
cfc555d05d
feat: add knowledge pipeline creation feature
2025-08-15 12:15:37 +08:00
Alex Chim
4a2e6af9b5
Fixes #23921 ( #23924 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-14 15:54:25 +08:00
twwu
5a6818c817
Merge branch 'main' into feat/rag-2
2025-08-13 15:05:57 +08:00
jyong
fcdbfbda4f
add credential id
2025-08-12 17:56:28 +08:00
jyong
ae3addb922
add credential id
2025-08-12 15:43:11 +08:00
jyong
bd1d7f8652
add credential id
2025-08-12 15:38:26 +08:00
jyong
a0006ce968
add credential id
2025-08-12 14:45:45 +08:00
Will
1ffe190557
Feat/improved mcp timeout configs ( #23605 )
...
Co-authored-by: crazywoola <427733928@qq.com>
2025-08-12 13:14:00 +08:00
jyong
22b3933cc3
Merge branch 'main' into feat/rag-2
...
# Conflicts:
# api/core/workflow/entities/variable_pool.py
2025-08-12 11:13:04 +08:00
jyong
1bc506603a
add credential id
2025-08-12 11:10:21 +08:00
Harry
cf4a526e7f
refactor: replace db.session with session in DatasourceProviderService for consistency
2025-08-11 20:35:46 +08:00
Harry
543f80ad5d
refactor: replace get_real_credential_by_id with get_datasource_credentials in multiple services for consistency
2025-08-11 20:04:04 +08:00
-LAN-
577062b93a
refactor: simplify variable pool key structure and improve type safety ( #23732 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-08-11 18:10:04 +08:00
Harry
6b07e0e8d6
feat: add expiration for OAuth credentials in datasource provider
2025-08-11 11:25:50 +08:00
twwu
fc779d00df
Merge branch 'main' into feat/rag-2
2025-08-11 11:15:58 +08:00
-LAN-
cbe0d9d053
fix: conversation pinned filter returns incorrect results when no conversations are pinned ( #23670 )
2025-08-09 22:40:28 +08:00
jyong
d07ce809be
add credential id
2025-08-08 14:18:30 +08:00
crazywoola
1c60b7f070
Revert "feat: improved MCP timeout" ( #23602 )
2025-08-08 11:20:53 +08:00
Will
4b0480c8b3
feat: improved MCP timeout ( #23546 )
2025-08-08 09:08:14 +08:00
Yongtao Huang
c8c591d73c
Fix incorrect exception handling in db query ( #23582 )
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-08-08 09:07:59 +08:00
jyong
ca8f80ee33
notion fix
2025-08-07 11:13:02 +08:00
jyong
13f38045d4
Merge remote-tracking branch 'origin/feat/rag-2' into feat/rag-2
2025-08-06 15:11:45 +08:00
jyong
94a0fb6dc1
notion fix
2025-08-06 15:11:37 +08:00
twwu
95982d37a6
refactor: remove unused DataSourceOauthBinding import from dataset_service and document_indexing_sync_task
2025-08-06 14:25:39 +08:00
twwu
40f3524cfe
Merge branch 'main' into feat/rag-2
2025-08-06 14:23:51 +08:00
jyong
05e96e56e5
notion fix
2025-08-06 11:13:20 +08:00
rouxiaomin
40a11b6942
feat(api):Enhance the scope of expired data cleanup table in the Dify… ( #23414 )
2025-08-05 19:57:43 +08:00
Xiyuan Chen
904af20023
Feat/webapp opt ( #23283 )
2025-08-05 16:07:48 +08:00
zxhlyh
0975f5bdc2
merge main
2025-08-05 10:31:12 +08:00
zxhlyh
201e4cd64d
merge main
2025-08-05 10:30:53 +08:00
Yongtao Huang
406c1952b8
Fix version comparison with imported_version ( #23326 )
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-08-04 10:40:49 +08:00
Yongtao Huang
964fa132cb
Chore: fix typo, no code change ( #23331 )
2025-08-03 22:30:28 +08:00
Yongtao Huang
76d123fe19
Fix segment query tenant bug and variable naming typo ( #23321 )
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-08-03 18:30:09 +08:00
qiaofenlin
20f0238aab
feat: support workflow version specification in workflow and chat APIs ( #23188 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-03 16:27:12 +08:00
Yongtao Huang
fbf844efd5
Chore: replace deprecated datetime.utcnow() with naive_utc_now() ( #23312 )
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-08-03 10:11:47 +08:00
Asuka Minato
58608f51da
replace db with sa to get typing support ( #23240 )
2025-08-02 23:54:23 +08:00
XiaoXiaoJiangYun
b2c8718f35
Update metadata_service.py ( #23272 )
2025-08-02 12:15:23 +08:00
XiaoXiaoJiangYun
46ba0a8781
Update metadata_service.py ( #23271 )
2025-08-02 12:14:43 +08:00
jyong
f3f3a99e5b
transform document
2025-08-01 14:11:11 +08:00
Alex Chim
8ab3fda5a8
[Enhancement] Allow modify conversation variable via api ( #23112 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-01 09:34:56 +08:00
Asuka Minato
79ea94483e
refine some orm types ( #22885 )
2025-07-31 18:43:04 +08:00
Maries
9400832b2b
fix: correct plugin indentation ( #23228 )
2025-07-31 17:35:39 +08:00
jyong
97136ca8f0
transform document
2025-07-31 15:21:06 +08:00
jyong
8e96b9ed77
transform document
2025-07-31 11:51:40 +08:00
jyong
a7a4c8228e
Merge branch 'main' into feat/rag-2
...
# Conflicts:
# web/app/components/workflow/hooks/use-workflow.ts
2025-07-31 10:30:28 +08:00
Harry
deceaa38f0
feat: datasource oauth default credentials
2025-07-30 16:36:27 +08:00
Harry
f7ec255b3e
feat: oauth
2025-07-30 15:55:16 +08:00
Harry
4dab128900
feat: oauth
2025-07-30 15:52:59 +08:00
GuanMu
4499cda186
Feat annotations panel ( #22968 )
2025-07-30 13:40:48 +08:00
Harry
875aea1c22
feat: datasource reauthentication
2025-07-30 13:39:04 +08:00
Yongtao Huang
a51998e4aa
Fix: prevent KeyError in validate_api_list by correcting logical check ( #23126 )
2025-07-30 10:37:06 +08:00
Yongtao Huang
ab163a5f75
Chore: use Workflow.VERSION_DRAFT instead of hardcoded draft ( #23136 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-30 10:34:51 +08:00
呆萌闷油瓶
ab7c2cf000
minor fix: Object of type int64 is not JSON serializable ( #23109 )
2025-07-29 21:40:03 +08:00
jyong
ecba9e44ff
transform document
2025-07-29 18:17:56 +08:00
jyong
a7d4675831
transform document
2025-07-29 18:12:35 +08:00
jyong
21df72a57a
transform document
2025-07-29 17:56:28 +08:00
NeatGuyCoding
51a6b9dc57
hotfix: clear_all_annotations should also execute delete_annotation_index_task just like delete_app_annotation ( #23093 )
...
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-29 16:35:33 +08:00
jyong
e2df3f182d
transform document
2025-07-29 16:01:06 +08:00
zxhlyh
a996c1d90c
merge main
2025-07-29 15:45:01 +08:00
zxhlyh
e19a07c2e6
merge main
2025-07-29 15:44:23 +08:00
jyong
9cfb531e3b
transform document
2025-07-29 15:23:11 +08:00