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
56e15d09a9
feat: mypy for all type check ( #10921 )
2024-12-24 18:38:51 +08:00
25ca0278dd
refactor(core): Remove extra_config from File. ( #10203 )
2024-11-08 18:13:24 +08:00
e61752bd3a
feat/enhance the multi-modal support ( #8818 )
2024-10-21 10:43:49 +08:00
240b66d737
chore: avoid implicit optional in type annotations of method ( #8727 )
2024-10-09 14:36:43 +08:00
40fb4d16ef
chore: refurbish Python code by applying refurb linter rules ( #8296 )
2024-09-12 15:50:49 +08:00
2cf1187b32
chore(api/core): apply ruff reformatting ( #7624 )
2024-09-10 17:00:20 +08:00
20d3e1d297
Fix increase_usage of total_price in agent_runner ( #6688 )
2024-08-04 14:42:22 +08:00
dfb6f4fec6
fix: extract tool calls correctly while arguments is empty ( #6503 )
2024-07-22 07:43:18 +08:00
4e2de638af
feat: add ops trace ( #5483 )
...
Co-authored-by: takatost <takatost@gmail.com >
2024-06-26 17:33:29 +08:00
b8926ea267
fix: DuckDuckGo image search tool error ( #5606 )
2024-06-26 13:21:40 +08:00
f976740b57
improve: mordernizing validation by migrating pydantic from 1.x to 2.x ( #4592 )
2024-06-14 01:05:37 +08:00
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
cea107b165
Refactor/react agent ( #3355 )
2024-04-11 18:34:17 +08:00
14bb0b02ac
Feat/Agent-Image-Processing ( #3293 )
...
Co-authored-by: Joel <iamjoel007@gmail.com >
2024-04-10 14:48:40 +08:00
a2c068d949
feat: moonshot function call ( #3227 )
2024-04-09 15:30:09 +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