mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +00:00
fix: type casting
This commit is contained in:
parent
edae1ca4c7
commit
eead69068c
1 changed files with 5 additions and 3 deletions
|
|
@ -680,9 +680,11 @@ Question:
|
||||||
SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD = PersistentConfig(
|
SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD = PersistentConfig(
|
||||||
"SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD",
|
"SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD",
|
||||||
"task.search.prompt_length_threshold",
|
"task.search.prompt_length_threshold",
|
||||||
os.environ.get(
|
int(
|
||||||
"SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD",
|
os.environ.get(
|
||||||
100,
|
"SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD",
|
||||||
|
100,
|
||||||
|
)
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue