Commit Graph

71 Commits (fix/app-not-published-error)

Author SHA1 Message Date
-LAN- 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>
11 months ago
jiandanfeng 8429877b02
fix: Agent is configured for ReAct inference mode, an error is reported when viewing the agent log (#12920)
Co-authored-by: crazywoola <427733928@qq.com>
1 year ago
呆萌闷油瓶 bd2fec4813
fix: #12125 (#12184) 1 year ago
yihong 56e15d09a9
feat: mypy for all type check (#10921) 1 year ago
Bowen Liang 6c8e208ef3
chore: bump minimum supported Python version to 3.11 (#10386) 1 year ago
yihong 0067b16d1e
fix: refactor all 'or []' and 'or {}' logic to make code more clear (#10883)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 year ago
-LAN- 25ca0278dd
refactor(core): Remove extra_config from File. (#10203) 1 year ago
非法操作 ddb960ddfb
feat: support Vectorizer can be used in workflow (#9932) 1 year ago
-LAN- e61752bd3a
feat/enhance the multi-modal support (#8818) 1 year ago
Wei-shun Bao fb32e5ca9a
fix: In the output, the order of 'ta' is sometimes reversed as 'at'. #8015 (#8791) 1 year ago
Bowen Liang 240b66d737
chore: avoid implicit optional in type annotations of method (#8727) 1 year ago
zg0d233 fcfa1252a0
fix bug when adding openai or openai-compatible stt model instance (#9006) 1 year ago
Hash Brown 8c51d06222
feat: regenerate in `Chat`, `agent` and `Chatflow` app (#7661) 2 years ago
Bowen Liang a1104ab97e
chore: refurish python code by applying Pylint linter rules (#8322) 2 years ago
Bowen Liang 40fb4d16ef
chore: refurbish Python code by applying refurb linter rules (#8296) 2 years ago
Bowen Liang c69f5b07ba
chore: apply ruff E501 line-too-long linter rule (#8275)
Co-authored-by: -LAN- <laipz8200@outlook.com>
2 years ago
Bowen Liang 2cf1187b32
chore(api/core): apply ruff reformatting (#7624) 2 years ago
-LAN- ed37439ef7
refactor(api/core): Improve type hints and apply ruff formatter in agent runner and model manager. (#8166) 2 years ago
Bowen Liang bbb6fcc4f0
chore: update ruff from 0.5.x to 0.6.x (#7384) 2 years ago
Nam Vu dbc1ae45de
chore: update docstrings (#7343) 2 years ago
Pedro Gomes 20d3e1d297
Fix increase_usage of total_price in agent_runner (#6688) 2 years ago
sino dfb6f4fec6
fix: extract tool calls correctly while arguments is empty (#6503) 2 years ago
Joe 4e2de638af
feat: add ops trace (#5483)
Co-authored-by: takatost <takatost@gmail.com>
2 years ago
非法操作 b8926ea267
fix: DuckDuckGo image search tool error (#5606) 2 years ago
非法操作 1e28a8c033
chore: add create_json_message api for tools (#5440) 2 years ago
Xiao Ley 369a395ee9
fix: resolve issue with cot_agent_runner not analyzing user-uploaded images correctly (#5360)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2 years ago
sino edffa5666d
fix: got unknown type of prompt message in multi-round ReAct agent chat (#5245) 2 years ago
Justin Wu 61f4f08744
Add bedrock command r models (#4521)
Co-authored-by: Justin Wu <justin.wu@ringcentral.com>
Co-authored-by: Chenhe Gu <guchenhe@gmail.com>
2 years ago
sino 4f0488abb5
fix: wrong order of history prompts in ReAct agent mode (#5236) 2 years ago
Bowen Liang f976740b57
improve: mordernizing validation by migrating pydantic from 1.x to 2.x (#4592) 2 years ago
Bowen Liang f32b440c4a
chore: fix indention violations by applying E111 to E117 ruff rules (#4925) 2 years ago
Bowen Liang 3542d55e67
improve: generalize tool parameter converter (#4786) 2 years ago
zeroameli afed3610fc
fix organize agent's history messages without recalculating tokens (#4324)
Co-authored-by: chenyongzhao <chenyz@mama.cn>
2 years ago
Yeuoly e852a21634
Feat/workflow phase2 (#4687) 2 years ago
sino 528faceb35
fix: cot agent token usage is empty (#4474) 2 years ago
Yeuoly c2a8fa91b1
fix: cot gent duplicate messages (#4470) 2 years ago
sino b1399cd5f9
fix: unable to fetch CoT agent runner log (#4052) 2 years ago
Yeuoly 3480f1c59e
refactor: tool parameter cache (#3703) 2 years ago
LIU HONGWEI c227f3d985
feat: Deprecate datetime.utcnow() in favor of datetime.now(timezone.utc).replace(tzinfo=None) for better timezone handling (#3408) (#3416) 2 years ago
Yeuoly cea107b165
Refactor/react agent (#3355) 2 years ago
Yeuoly 14bb0b02ac
Feat/Agent-Image-Processing (#3293)
Co-authored-by: Joel <iamjoel007@gmail.com>
2 years ago
Yeuoly a2c068d949
feat: moonshot function call (#3227) 2 years ago
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>
2 years ago
takatost dd961985f0
refactor: remove unused codes, move core/agent module into dataset retrieval feature (#2614) 2 years ago
Bowen Liang 063191889d
chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version (#2419) 2 years ago
Bowen Liang 843280f82b
enhancement: introduce Ruff for Python linter for reordering and removing unused imports with automated pre-commit and sytle check (#2366) 2 years ago
Yeuoly 86286e1ac8
Feat/assistant app (#2086)
Co-authored-by: chenhe <guchenhe@gmail.com>
Co-authored-by: Pascal M <11357019+perzeuss@users.noreply.github.com>
2 years ago
Bowen Liang cc9e74123c
improve: introduce isort for linting Python imports (#1983) 2 years ago
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>
2 years ago
Yeuoly d3a2c0ed34
fix wrong syntax of type definitions (#1678) 2 years ago