You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/controllers
-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>
9 months ago
..
common fix: not install libmagic raise error (#13146) 1 year ago
console fix: Removes redundant token calculations and updates dependencies 9 months ago
files feat: mypy for all type check (#10921) 1 year ago
inner_api feat: add inner API to create workspace without requiring email (#13021) 1 year ago
service_api fix: set indexing technique from dataset during update-by-text (#13155) 1 year ago
web feat: switch to chat messages before regenerated (#11301) 1 year ago
__init__.py chore(api/controllers): Apply Ruff Formatter. (#7645) 1 year ago