dify/api/core
-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
..
agent fix: Removes redundant token calculations and updates dependencies 2025-04-28 15:39:12 +08:00
app fix: Removes redundant token calculations and updates dependencies 2025-04-28 15:39:12 +08:00
callback_handler feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
entities Feat/support parent child chunk (#12092) 2024-12-25 19:49:07 +08:00
errors fix(core/errors): change base class of custom exceptions to ValueError (#11955) 2024-12-22 10:41:34 +08:00
extension feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
external_data_tool chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (#12702) 2025-01-21 10:12:29 +08:00
file chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (#12702) 2025-01-21 10:12:29 +08:00
helper fix: SSRF proxy file descriptor leak in concurrent requests (#13108) 2025-02-05 13:10:27 +08:00
llm_generator Fix suggested_question_prompt (#12738) 2025-01-20 22:16:30 +08:00
memory fix: Removes redundant token calculations and updates dependencies 2025-04-28 15:39:12 +08:00
model_runtime fix: Removes redundant token calculations and updates dependencies 2025-04-28 15:39:12 +08:00
moderation feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
ops Add new integration with Opik Tracking tool (#11501) 2025-01-13 17:41:44 +08:00
prompt feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
rag refactor: Update Firecrawl API parameters and default settings (#13082) 2025-01-29 11:21:05 +08:00
tools feat: remove Vanna provider and associated assets from the project 2025-03-24 14:34:03 +08:00
variables chore(fix): Invalid quotes for using Array[String] in HTTP request node as JSON body (#12761) 2025-01-21 10:38:44 +08:00
workflow fix: Removes redundant token calculations and updates dependencies 2025-04-28 15:39:12 +08:00
__init__.py chore(api/core): apply ruff reformatting (#7624) 2024-09-10 17:00:20 +08:00
hosting_configuration.py feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
indexing_runner.py fix: same chunk insert deadlock (#12502) 2025-01-09 15:16:41 +08:00
model_manager.py feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
provider_manager.py feat: enhance credential extraction logic based on configurate method (#12853) 2025-01-20 21:59:22 +08:00