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/console
-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
..
app fix: add type hints for App model and improve error handling in audio services (#12677) 1 year ago
auth fix: Removes redundant token calculations and updates dependencies 9 months ago
billing feat: mypy for all type check (#10921) 1 year ago
datasets chore: fix wrong VectorType match case (#13123) 1 year ago
explore feat: switch to chat messages before regenerated (#11301) 1 year ago
tag feat: mypy for all type check (#10921) 1 year ago
workspace feat: account delete (#11829) 1 year ago
__init__.py feat: mypy for all type check (#10921) 1 year ago
admin.py chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (#12702) 1 year ago
apikey.py feat: mypy for all type check (#10921) 1 year ago
error.py feat: account delete (#11829) 1 year ago
extension.py feat: mypy for all type check (#10921) 1 year ago
feature.py feat: mypy for all type check (#10921) 1 year ago
files.py feat: mypy for all type check (#10921) 1 year ago
init_validate.py feat: mypy for all type check (#10921) 1 year ago
ping.py feat: mypy for all type check (#10921) 1 year ago
remote_files.py feat: mypy for all type check (#10921) 1 year ago
setup.py feat: mypy for all type check (#10921) 1 year ago
version.py feat: mypy for all type check (#10921) 1 year ago
wraps.py fix: Removes redundant token calculations and updates dependencies 9 months ago