559ab46ee1
fix: Removes redundant token calculations and updates dependencies
...
Eliminates unnecessary pre-calculation of token limits and recalculation of max tokens
across multiple app runners, simplifying the logic for prompt handling.
Updates tiktoken library from version 0.8.0 to 0.9.0 for improved tokenization performance.
Increases default token limit in TokenBufferMemory to accommodate larger prompt messages.
These changes streamline the token management process and leverage the latest
improvements in the tiktoken library.
Fixes potential token overflow issues and prepares the system for handling larger
inputs more efficiently.
Relates to internal optimization tasks.
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-04-28 15:39:12 +08:00
c135967e59
refactor: simplify some exception catch code ( #12246 )
2025-01-02 14:25:12 +08:00
56e15d09a9
feat: mypy for all type check ( #10921 )
2024-12-24 18:38:51 +08:00
fd354d999d
fix(app_generator_service): overload type hints ( #11507 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2024-12-10 09:06:34 +08:00
c34bdb74e6
Fix/type-error ( #11240 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2024-12-02 10:24:21 +08:00
8d5a1be227
fix: Cannot use files in the user inputs. ( #11112 )
2024-11-26 13:43:38 +08:00
3eb51d85da
fix(workflow_entry): Support receive File and FileList in single step run. ( #10947 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: JzoNg <jzongcode@gmail.com >
2024-11-25 12:46:50 +08:00
25ca0278dd
refactor(core): Remove extra_config from File. ( #10203 )
2024-11-08 18:13:24 +08:00
0ebe198ff1
chore: use DEBUG in dify_config instead of parsing raw system environment variable in place ( #10437 )
2024-11-08 09:34:11 +08:00
e61752bd3a
feat/enhance the multi-modal support ( #8818 )
2024-10-21 10:43:49 +08:00
292220c596
chore: apply pep8-naming rules for naming convention ( #8261 )
2024-09-11 16:40:52 +08:00
2cf1187b32
chore(api/core): apply ruff reformatting ( #7624 )
2024-09-10 17:00:20 +08:00
962cdbbebd
chore: add app generator overload ( #7792 )
2024-08-29 16:04:01 +08:00
4e2de638af
feat: add ops trace ( #5483 )
...
Co-authored-by: takatost <takatost@gmail.com >
2024-06-26 17:33:29 +08:00
415022aa14
fix: pydantic2 error ( #5172 )
2024-06-14 03:05:04 +08:00
f976740b57
improve: mordernizing validation by migrating pydantic from 1.x to 2.x ( #4592 )
2024-06-14 01:05:37 +08:00
04ad46dd31
chore: skip unnecessary key checks prior to accessing a dictionary ( #4497 )
2024-05-19 18:30:45 +08:00
5b447d61a6
feat: refactor tongyi models ( #3496 )
2024-04-15 22:28:32 +08:00
b6de97ad53
Remove langchain dataset retrival agent logic ( #3311 )
2024-04-10 20:37:22 +08:00
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