非法操作
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
jyong
e89398f415
add old auth transform
2025-07-29 14:13:50 +08:00
jyong
6d00ffa509
add old auth transform
2025-07-29 11:18:06 +08:00
NeatGuyCoding
47cc951841
Fix Empty Collection WHERE Filter Issue ( #23086 )
2025-07-29 11:17:50 +08:00
jyong
657e813c7f
add old auth transform
2025-07-28 19:29:36 +08:00
jyong
829e6f0d1a
add old auth transform
2025-07-28 19:29:07 +08:00
zyssyz123
de28bb1075
fix: changed email login use oauth will create an new account ( #23057 )
2025-07-28 16:32:25 +08:00
zxhlyh
a95cf6f8b0
merge main
2025-07-28 16:00:38 +08:00
呆萌闷油瓶
ee50a2bcd5
feat: clear all annotation ( #22878 )
...
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-25 18:06:03 +08:00
jyong
38e6391be4
r2 transform
2025-07-25 17:43:15 +08:00
jyong
f887bbedab
r2 transform
2025-07-25 17:06:29 +08:00
jyong
7f6759e0ac
r2 transform
2025-07-25 14:41:39 +08:00
jyong
ed1bec9344
r2 transform
2025-07-25 14:10:12 +08:00
Asuka Minato
a189d293f8
make logging not use f-str, change others to f-str ( #22882 )
2025-07-25 10:32:48 +08:00
jyong
bb609ee3ca
Merge remote-tracking branch 'origin/feat/rag-2' into feat/rag-2
2025-07-24 17:43:38 +08:00
jyong
1938991162
r2 transform
2025-07-24 17:43:26 +08:00
twwu
bae2af0c85
Merge branch main into feat/rag-2
2025-07-24 17:40:04 +08:00
jyong
3b0be18d47
r2 transform
2025-07-24 17:08:39 +08:00
zyssyz123
6ac06486e3
Feat/change user email freezes limit ( #22900 )
2025-07-24 15:36:53 +08:00
KVOJJJin
de611ab344
Feat: add notification for change email completed ( #22812 )
...
Co-authored-by: Yansong Zhang <916125788@qq.com>
2025-07-24 14:16:39 +08:00
Asuka Minato
ef51678c73
orm filter -> where ( #22801 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-07-24 00:57:45 +08:00
Novice
7ec94eb83c
chore(version): bump to 1.7.0 ( #22830 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2025-07-23 18:37:30 +08:00
-LAN-
79ab8b205f
fix: improve max active requests calculation logic ( #22847 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-07-23 18:36:24 +08:00
jyong
98ef4ffb4d
r2 transform
2025-07-23 17:02:01 +08:00
Junyan Qin (Chin)
eaae79a581
feat: plugin auto upgrade strategy ( #19758 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Novice <novice12185727@gmail.com>
2025-07-23 15:33:39 +08:00
Novice
e6913744ae
fix: database lock timeout by separating external MCP calls from transactions ( #22821 )
2025-07-23 14:58:50 +08:00
Maries
ad67094e54
feat: oauth refresh token ( #22744 )
...
Co-authored-by: Yeuoly <admin@srmxy.cn>
2025-07-23 13:12:39 +08:00
Asuka Minato
6d3e198c3c
Mapped column ( #22644 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 00:39:59 +08:00
zxhlyh
3b8d96f45c
merge main
2025-07-22 13:52:24 +08:00
Junyan Qin (Chin)
2d8eace34b
feat: plugin deprecation notice ( #22685 )
...
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com>
Co-authored-by: twwu <twwu@dify.ai>
2025-07-22 10:27:35 +08:00
Harry
12661ce0ca
feat: improve authorization name validation and enhance credential encryption handling
2025-07-21 19:28:00 +08:00
Harry
666868fa35
feat: remove unused import for CredentialsValidateFailedError in datasource provider service
2025-07-21 18:53:36 +08:00
Harry
ba7f0b3004
feat: enhance datasource authentication by improving credential handling and updating API parameters
2025-07-21 18:51:55 +08:00
zxhlyh
4d36e784b7
merge main
2025-07-21 17:45:26 +08:00
Harry
039a053027
feat: standardize credential type string for API key in datasource provider service
2025-07-21 17:40:50 +08:00
Harry
17da96bdd8
feat: refactor datasource authentication APIs for improved credential management
2025-07-21 16:43:50 +08:00
Harry
57b48f51b5
feat: convert credential form schemas to lists for consistency
2025-07-21 15:51:24 +08:00
Harry
af94602d37
feat: add APIs for setting default datasource provider and updating provider name
2025-07-21 15:49:39 +08:00
jyong
9c96f1db6c
r2 transform
2025-07-21 14:51:40 +08:00
Harry
51d7a9b6be
feat: mask hidden values in tenant OAuth client retrieval
2025-07-21 14:35:46 +08:00
Harry
529eca70bc
feat: enhance datasource credential and OAuth schema serialization
2025-07-21 14:31:26 +08:00
Harry
ef8d941633
feat: simplify OAuth encrypter retrieval and remove unnecessary validation
2025-07-21 13:48:05 +08:00
Xin Zhang
bddeebd4c9
refactor: remove unused dissolve_tenant static method ( #22690 )
2025-07-21 12:40:47 +08:00
Harry
e97f03c130
feat: add custom OAuth client setup and enhance datasource provider model with avatar_url
2025-07-21 12:36:02 +08:00
NeatGuyCoding
cbc3474bbb
minor fix: fix dissolve tenant check permission always failed ( #22292 )
2025-07-21 11:20:05 +08:00
Bowen Liang
74940ad3f2
chore: code improvement for mcp_client and mcp_tools_manage_service ( #22645 )
2025-07-21 09:52:55 +08:00
Aryan Raj
ce794335e9
Fix/replace datetime patterns with naive utc now ( #22654 )
2025-07-20 11:05:53 +08:00
Harry
7364d051d2
feat: refactor provider name generation to use incremental naming & enforce unique constraints
2025-07-18 21:34:59 +08:00
Harry
23a5ff410e
feat: add avatar_url to datasource providers and update OAuth handling
2025-07-18 19:47:59 +08:00
twwu
5b2c99e183
Merge branch 'main' into feat/rag-2
2025-07-18 14:03:48 +08:00
Harry
0ac5c0bf3e
feat: refactor OAuth provider handling and improve provider name generation
2025-07-18 12:47:32 +08:00
-LAN-
460a825ef1
refactor: decouple Node and NodeData ( #22581 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
2025-07-18 10:08:51 +08:00
-LAN-
1715dd4320
refactor: Fix some type error ( #22594 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-07-18 09:26:29 +08:00
Harry
3388e83920
Merge remote-tracking branch 'origin/main' into feat/rag-2
...
# Conflicts:
# .github/workflows/build-push.yml
# web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx
2025-07-17 17:56:56 +08:00
Maries
a4ef900916
Support OAuth Integration for Plugin Tools ( #22550 )
...
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Yeuoly <admin@srmxy.cn>
2025-07-17 17:18:44 +08:00
zxhlyh
01566035e3
merge main
2025-07-17 16:48:43 +08:00
jyong
cc96b7f507
r2 transform
2025-07-17 16:45:30 +08:00
jyong
ad7650e724
r2 transform
2025-07-17 16:36:40 +08:00
jyong
761ea0eedb
r2 transform
2025-07-17 15:22:39 +08:00
zyssyz123
a4f421028c
Feat/change user email ( #22213 )
...
Co-authored-by: NFish <douxc512@gmail.com>
Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
2025-07-17 10:55:59 +08:00
yihong
d2933c2bfe
fix: drop dead code phase2 unused class ( #22042 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-07-17 09:33:07 +08:00
jyong
a39d7e1f85
r2 transform
2025-07-16 19:26:33 +08:00
jyong
aaa5b0e295
r2 transform
2025-07-16 18:05:40 +08:00
qfl
bdb9f29948
feat(app): support custom max_active_requests per app ( #22073 )
2025-07-16 15:31:19 +08:00
jyong
c660c98b04
r2 transform
2025-07-16 14:25:16 +08:00
QuantumGhost
2c1ab4879f
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization ( #22025 )
...
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025 )
This PR addresses serialization issues in the VariablePool model by separating the `value_type` tags for `IntegerSegment`/`FloatSegment` and `IntegerVariable`/`FloatVariable`. Previously, both Integer and Float types shared the same `SegmentType.NUMBER` tag, causing conflicts during serialization.
Key changes:
- Introduce distinct `value_type` tags for Integer and Float segments/variables
- Add `VariableUnion` and `SegmentUnion` types for proper type discrimination
- Leverage Pydantic's discriminated union feature for seamless serialization/deserialization
- Enable accurate serialization of data structures containing these types
Closes #22024 .
2025-07-16 12:31:37 +08:00