-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
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
-LAN-
6eb155ae69
feat(api/repo): Allow to config repository implementation ( #21458 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
2025-07-14 14:54:38 +08:00
QuantumGhost
bd1bbfee4b
Enhance Code Consistency Across Repository with .editorconfig
( #19023 )
2025-04-29 18:04:33 +08:00
ZalterCitty
a1158cc946
fix: Update prompt message content types to use Literal and add union type for content ( #17136 )
...
Co-authored-by: 朱庆超 <zhuqingchao@xiaomi.com>
Co-authored-by: crazywoola <427733928@qq.com>
2025-04-22 16:17:55 +08:00
yihong
f04d52c044
fix: autocorrect everything in api ( #17859 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-04-11 15:24:39 +08:00
Yongtao Huang
d339403e89
Chore: optimize the code of PromptTransform ( #16143 )
2025-03-19 11:24:57 +08:00
kurokobo
86d3fff666
fix: respect resolution settings for vision for basic chatbot, text generator, and parameter extractor node ( #16041 )
2025-03-18 14:37:07 +08:00
yihong
56e15d09a9
feat: mypy for all type check ( #10921 )
2024-12-24 18:38:51 +08:00
-LAN-
464e6354c5
feat: correct the prompt grammar. ( #11328 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-04 15:12:47 +08:00
Hash Brown
c4fad66f2a
fix: dialogue_count
incorrect in chatflow when there's... ( #11175 )
2024-12-02 16:09:26 +08:00
Bowen Liang
6c8e208ef3
chore: bump minimum supported Python version to 3.11 ( #10386 )
2024-11-24 13:28:46 +08:00
-LAN-
c5f7d650b5
feat: Allow using file variables directly in the LLM node and support more file types. ( #10679 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
2024-11-22 16:30:22 +08:00
-LAN-
25ca0278dd
refactor(core): Remove extra_config from File. ( #10203 )
2024-11-08 18:13:24 +08:00
-LAN-
faad247d85
fix(upload): correct incorrect dictionary key usage ( #9563 )
2024-10-21 19:42:22 +08:00
-LAN-
e61752bd3a
feat/enhance the multi-modal support ( #8818 )
2024-10-21 10:43:49 +08:00
Hash Brown
8c51d06222
feat: regenerate in Chat
, agent
and Chatflow
app ( #7661 )
2024-09-22 03:15:11 +08:00
Bowen Liang
40fb4d16ef
chore: refurbish Python code by applying refurb linter rules ( #8296 )
2024-09-12 15:50:49 +08:00
Bowen Liang
c69f5b07ba
chore: apply ruff E501 line-too-long linter rule ( #8275 )
...
Co-authored-by: -LAN- <laipz8200@outlook.com>
2024-09-12 14:00:36 +08:00
Bowen Liang
2cf1187b32
chore(api/core): apply ruff reformatting ( #7624 )
2024-09-10 17:00:20 +08:00
-LAN-
8f16165f92
chore(api/core): Improve FileVar's type hint and imports. ( #7290 )
2024-08-15 12:43:18 +08:00
Bowen Liang
dcb72e0067
chore: apply flake8-comprehensions Ruff rules to improve collection comprehensions ( #5652 )
...
Co-authored-by: -LAN- <laipz8200@outlook.com>
2024-06-27 11:21:31 +08:00
Bowen Liang
f976740b57
improve: mordernizing validation by migrating pydantic from 1.x to 2.x ( #4592 )
2024-06-14 01:05:37 +08:00
takatost
3929d289e0
feat: set default memory messages limit to infinite ( #5002 )
2024-06-06 17:39:44 +08:00
takatost
d1dbbc1e33
feat: backend model load balancing support ( #4927 )
2024-06-05 00:13:04 +08:00
zeroameli
afed3610fc
fix organize agent's history messages without recalculating tokens ( #4324 )
...
Co-authored-by: chenyongzhao <chenyz@mama.cn>
2024-05-29 15:25:20 +08:00
Yeuoly
e852a21634
Feat/workflow phase2 ( #4687 )
2024-05-27 22:01:11 +08:00
Bowen Liang
083ef2e6fc
improve: exract Code Node provider for each supported scripting language ( #4164 )
2024-05-17 11:58:12 +08:00
Yeuoly
8578ee0864
feat: support LLM jinja2 template prompt ( #3968 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
2024-05-10 18:08:32 +08:00
takatost
12435774ca
feat: query prompt template support in chatflow ( #3791 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
2024-04-25 18:01:53 +08:00
takatost
2ea8c73cd8
fix: type num of variable converted to str ( #3758 )
2024-04-24 15:07:56 +08:00
takatost
826c422ac4
feat: Add Cohere Command R / R+ model support ( #3333 )
2024-04-11 01:22:55 +08:00
takatost
7753ba2d37
FEAT: NEW WORKFLOW ENGINE ( #3160 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Yeuoly <admin@srmxy.cn>
Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
Co-authored-by: jyong <jyong@dify.ai>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: jyong <718720800@qq.com>
2024-04-08 18:51:46 +08:00
Jyong
28b1c48235
improve qa generate prompt ( #3132 )
...
Co-authored-by: jyong <jyong@dify.ai>
2024-04-07 15:21:11 +08:00
Mark Sun
510f8ede10
Improve automatic prompt generation ( #2805 )
2024-03-13 14:10:47 +08:00
crazywoola
6bd2730317
Fix/2770 suggestions for next steps ( #2788 )
2024-03-12 16:27:55 +08:00
Bowen Liang
063191889d
chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version ( #2419 )
2024-02-09 15:21:33 +08:00
Bowen Liang
14a19a3da9
chore: apply ruff's pyflakes linter rules ( #2420 )
2024-02-08 14:11:10 +08:00
Bowen Liang
843280f82b
enhancement: introduce Ruff for Python linter for reordering and removing unused imports with automated pre-commit and sytle check ( #2366 )
2024-02-06 13:21:13 +08:00
takatost
556d1d0390
fix variable invalid when key only one character ( #2377 )
2024-02-04 18:15:13 +08:00
Bowen Liang
cc9e74123c
improve: introduce isort for linting Python imports ( #1983 )
2024-01-12 12:34:01 +08:00
takatost
cca9edc97a
feat: ollama support ( #2003 )
2024-01-12 12:29:13 +08:00
Jyong
28b26f67e2
optimize qa prompt ( #1957 )
...
Co-authored-by: jyong <jyong@dify.ai>
2024-01-05 18:17:55 +08:00
takatost
2cfd5568e1
fix: vision fail in complete app ( #1933 )
2024-01-05 04:23:12 +08:00
newsouther
0e239a4f71
fix: read file encoding error ( #1902 )
...
Co-authored-by: maple <1071520@gi>
2024-01-04 12:52:10 +08:00
takatost
d069c668f8
Model Runtime ( #1858 )
...
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
Co-authored-by: chenhe <guchenhe@gmail.com>
Co-authored-by: jyong <jyong@dify.ai>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Yeuoly <admin@srmxy.cn>
2024-01-02 23:42:00 +08:00
Garfield Dai
8835435558
fix: change model mode. ( #1520 )
2023-11-13 23:13:01 +08:00
takatost
41d0a8b295
feat: [backend] vision support ( #1510 )
...
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
2023-11-13 22:05:46 +08:00
Garfield Dai
fe14130b3c
refactor advanced prompt core. ( #1350 )
2023-10-18 20:02:52 +08:00
Garfield Dai
695841a3cf
Feat/advanced prompt enhancement ( #1340 )
2023-10-13 16:47:01 +08:00