Fix: handle llm_setting switch (#17745)

This commit is contained in:
Lynn
2026-08-04 10:02:14 +08:00
committed by GitHub
parent 594a4640e3
commit 11b2dfcfdd
9 changed files with 74 additions and 23 deletions

View File

@@ -1206,13 +1206,16 @@ class Search(DataBaseModel):
"top_k": 1024,
# chat settings
"summary": False,
"chat_id": "",
# Leave it here for reference, don't need to set default values
"chat_id": "", # id of chat model in tenant_model table
"llm_setting": {
# "temperature": 0.1,
# "top_p": 0.3,
# "frequency_penalty": 0.7,
# "presence_penalty": 0.4,
"temperature": 0.1,
"top_p": 0.3,
"frequency_penalty": 0.7,
"presence_penalty": 0.4,
"temperature_enabled": True,
"top_p_enabled": True,
"frequency_penalty_enabled": True,
"presence_penalty_enabled": True,
},
"chat_settingcross_languages": [],
"highlight": False,