mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
Fix casting of SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD #1213
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jeremi on GitHub (Jun 12, 2024).
When setting in the environment SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD to 100 for example, I get the following error:
In config.py, there is a need to cast the value to int to fix it:
4a025cca00 (diff-651976572b51d1a16ede6a1c4c1be9a1482605ce57ca58fbfca25e4a55c43210L676)@tjbck commented on GitHub (Jun 12, 2024):
Good catch, Thanks!