-LAN-
cd39c31014
Merge branch 'main' into upgrade-graphon-to-0-3-0
2026-05-09 03:49:47 +08:00
Asuka Minato
19bf36a716
chore: dep inject for session ( #35934 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-08 17:48:33 +00:00
wangxiaolei
8132c444dc
feat: support SQLALCHEMY_POOL_RESET_ON_RETURN config ( #31156 )
2026-05-08 12:25:46 +00:00
-LAN-
6d79dbba86
test(api): cover quota patch branches
2026-05-08 19:51:01 +08:00
-LAN-
c0a907b34f
fix(api): cap workflow credit deductions
2026-05-08 16:11:52 +08:00
-LAN-
a8bb64bcf8
fix(api): split exact and capped credit deduction
2026-05-08 15:39:30 +08:00
非法操作
927a17804b
feat: support configurable explore app categories ( #35723 )
2026-05-08 06:04:07 +00:00
autofix-ci[bot]
6768fdd9f8
[autofix.ci] apply automated fixes
2026-05-08 13:36:26 +08:00
-LAN-
8f9127043e
fix(quota): caps free quota
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2026-05-08 13:36:26 +08:00
-LAN-
522b04a0e0
refactor: remove unused code
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2026-05-08 13:36:26 +08:00
-LAN-
fdd16447c3
chore(quota_layer): remove useless method
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2026-05-08 13:36:26 +08:00
-LAN-
9dbe97d77e
fix: test
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2026-05-08 13:36:26 +08:00
-LAN-
6d0a37a7a3
test(api): align node factory graphon data validation
...
Update the rebased node factory test to mirror Graphon node validation when asserting typed LLM node data construction.
2026-05-08 13:36:26 +08:00
-LAN-
0b528c796a
fix(api): stabilize quota CI coverage
...
Make the LLM quota matcher exhaustive for basedpyright and expand unit coverage across quota resolution and deduction branches. This addresses the failing Python style/type gate and raises patch coverage for the Graphon 0.3.0 upgrade branch.
2026-05-08 13:36:25 +08:00
-LAN-
2ced9316b8
fix(api): abort quota-tracked nodes on missing model identity
...
Treat missing public model identity on quota-tracked workflow nodes as an execution bug instead of silently skipping quota handling.
Abort the workflow for both pre-run and post-run identity lookup failures and extend the layer tests to assert the stop-event and abort-command behavior.
2026-05-08 13:36:25 +08:00
-LAN-
ebb472c5c2
refactor(api): simplify llm quota helpers
...
Remove the temporary generic model-type quota helpers now that system-billed models are LLM-only.
Keep the deprecated ModelInstance wrappers as LLM-specific adapters with explicit non-LLM guards and update the quota tests to match the narrower invariant.
2026-05-08 13:36:25 +08:00
autofix-ci[bot]
24251dfabe
[autofix.ci] apply automated fixes
2026-05-08 13:36:25 +08:00
-LAN-
65b1682d85
refactor(api): include model type in quota identity
...
Add model-type-aware quota helpers at the shared billing boundary while keeping the LLM-specific helpers as thin adapters.
Preserve model_type in the deprecated ModelInstance wrappers and extend the quota unit tests to cover the generic helper delegation path.
2026-05-08 13:36:25 +08:00
-LAN-
ec317ee2f3
refactor(api): decouple llm quota layer from model instances
...
Introduce tenant-scoped quota helpers that accept provider and model identity directly.
Refactor the workflow quota layer and engine wiring to use public node and event model identity instead of reconstructing ModelInstance, and keep the legacy ModelInstance helpers as deprecated wrappers with focused test coverage.
2026-05-08 13:36:25 +08:00
-LAN-
005e969fb1
test(api): align plugin runtime adapter with chunked llm contract
2026-05-08 13:36:25 +08:00
-LAN-
f13faa69b3
fix(api): resolve graphon upgrade CI failures
...
Repair the plugin model runtime for Graphon 0.3.0 by implementing structured-output support, normalizing non-stream LLM calls, and tightening workflow-layer type safety.
Update the remaining workflow tests to use VariablePool.from_bootstrap(...) and the new node data constructor API so the CI unit and integration suites match the upgraded runtime behavior.
2026-05-08 13:36:25 +08:00
-LAN-
05aba26091
chore(api): upgrade graphon to v0.3.0
...
Adapt the backend Graphon integration to the v0.3.0 breaking changes.
Migrate provider factory and runtime usage, switch workflow node construction to the new data payload API, and refresh backend tests for the updated VariablePool and node behaviors.
2026-05-08 13:36:25 +08:00
Xiyuan Chen
29f34848cd
fix(tools): scope builtin tool default-credential clear to tenant ( #35887 )
2026-05-08 05:08:23 +00:00
EvanYao
936a09c704
fix: replace SimpleNamespace with MagicMock(spec=App) in _app_stub ( #34636 ) ( #35897 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-08 03:18:21 +00:00
Asuka Minato
ecd830083a
test: add type to test ( #35871 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-08 01:06:25 +00:00
Escape0707
cd3327013a
chore(test): Move plugin permission tests to testcontainers ( #35884 )
2026-05-07 09:57:53 +00:00
Asuka Minato
8fd616d27f
refactor: add type to test ( #30873 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-07 03:46:23 +00:00
yyh
00bf3f83f2
refactor: verticalize tag management and batch bindings ( #35840 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-07 01:36:10 +00:00
sawyer-shi
57539792c1
fix(workflow): unblock plugin model selector tools on 1.14.0 ( #35794 )
2026-05-06 07:07:43 +00:00
Brandon
70eb98d6c5
fix(file_factory): drop doubled dot when standardizing datasource file extension ( #35808 )
...
Co-authored-by: Beandon13 <bzarnitz23@gmail.com>
2026-05-06 03:03:22 +00:00
wangxiaolei
5c68f12bb8
fix: fix Working outside of application context ( #35819 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-06 02:40:19 +00:00
wangxiaolei
4df7c00859
fix: fix test_sharded_channel failed ( #35814 )
2026-05-06 01:47:32 +00:00
yyh
995c43f3dd
refactor: migrate workflow queries to contracts ( #35799 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-05 14:53:38 +00:00
非法操作
c0431ec843
fix: workflow online users polling for large app lists ( #35786 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-05 10:48:14 +00:00
kien duong
1f29565673
fix(rag): use doc_id dedup key for any provider, not only dify ( #35759 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-05 06:42:18 +00:00
Prince Pal
4b7dc17546
fix: skip empty documents before vector embedding ( #35763 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-04 13:06:58 +00:00
NeatGuyCoding
7ba408eebe
fix: IDOR on console GET /account/avatar ( #35771 )
...
Signed-off-by: NeatGuyCoding <15627489+NeatGuyCoding@users.noreply.github.com>
2026-05-03 14:42:56 +00:00
guangyang1206
3708e3eef1
refactor(tests): use db_session_with_containers in test_storage_key_loader ( #35766 )
...
Co-authored-by: yeranyang <yeranyang@tencent.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-02 17:49:20 +00:00
Jonathan Chang
ff5c2c57a1
fix: Clean upload filenames parsed from URLs ( #35706 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-02 14:45:31 +00:00
Prince Pal
54bde0bdf6
fix(api): preserve dataset metadata filters ( #35700 )
2026-05-01 09:20:14 +00:00
wangxiaolei
458fab1c48
fix: fix structured_output_enabled miss in second validate ( #35747 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai>
2026-04-30 10:34:33 +00:00
Tim Ren
5cf741895f
fix(plugin): preserve multi-value HTTP response headers ( #35726 )
...
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 08:09:56 +00:00
Asuka Minato
3b1458c08f
refactor: port WorkflowDraftVariableFile ( #30923 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-29 22:21:20 +00:00
hyl64
16d408d908
fix: refresh MCP tool metadata after updates and align App DSL test stubs ( #35354 )
...
Co-authored-by: Stephen Zhou <hi@hyoban.cc>
2026-04-29 02:41:15 +00:00
kenwoodjw
0536549f73
fix: flaky WordExtractor close test in CI ( #35652 )
...
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
2026-04-29 10:27:02 +08:00
FFXN
38eb04dc98
fix: hit-testing response failed because of Pydantic check. ( #35640 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-04-28 08:37:13 +00:00
Asuka Minato
d2e1da269c
chore: port one api ( #35609 )
2026-04-28 08:22:01 +00:00
L1nSn0w
0c280ef708
fix(test): register baidu_obs mock as pytest plugin ( #35618 )
2026-04-28 05:02:03 +00:00
jimmyzhuu
2d6babeeb4
test: add Baidu OBS storage unit tests ( #34330 )
2026-04-28 01:55:56 +00:00
Asuka Minato
1065a4840a
refactor: move SegmentAttachmentBinding and UploadFile to TypeBase ( #30218 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-27 14:01:50 +00:00