dify/api/core/workflow
-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>
2025-04-28 15:39:12 +08:00
..
callbacks feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
entities feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
graph_engine Fix the problem of Workflow terminates after parallel tasks execution, merge node not triggered (#12498) 2025-02-07 13:56:08 +08:00
nodes fix: Removes redundant token calculations and updates dependencies 2025-04-28 15:39:12 +08:00
utils feat(condition): add support for 'exists' and 'not exists' operators (#9687) 2024-10-23 13:25:17 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
constants.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
enums.py chore: bump minimum supported Python version to 3.11 (#10386) 2024-11-24 13:28:46 +08:00
errors.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
workflow_engine_manager.py feat: Parallel Execution of Nodes in Workflows (#8192) 2024-09-10 15:23:16 +08:00
workflow_entry.py fix: draft run single node can't get env variable (#12266) 2025-01-01 13:31:44 +08:00