dify/api/core/workflow/nodes
-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
..
answer fix(workflow): fix answer node stream processing in conditional branches (#12510) 2025-01-13 14:54:21 +08:00
base feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
code feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
document_extractor feat: support single run doc extractor node (#11318) 2025-01-08 15:20:15 +08:00
end feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
event feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
http_request chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (#12702) 2025-01-21 10:12:29 +08:00
if_else fix: some typos using typos (#11374) 2024-12-05 13:24:06 +08:00
iteration feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
knowledge_retrieval Revert "Feat/new saas billing" (#12673) 2025-01-13 15:17:43 +08:00
list_operator feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
llm fix: Removes redundant token calculations and updates dependencies 2025-04-28 15:39:12 +08:00
loop feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
parameter_extractor feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
question_classifier feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
start feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
template_transform feat(workflow-nodes): handle missing variables without failure (#10471) 2024-11-08 19:48:05 +08:00
tool feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
variable_aggregator refactor(variables): replace deprecated 'get_any' with 'get' method (#9584) 2024-10-22 10:49:19 +08:00
variable_assigner fix: Update variable handling in VariableAssignerNode and clean up app_dsl_service (#12672) 2025-01-13 15:54:26 +08:00
__init__.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
enums.py fix: add retry feature to code node (#12005) 2024-12-23 16:42:28 +08:00
node_mapping.py Feat: upgrade variable assigner (#11285) 2024-12-03 13:56:40 +08:00