mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
Fix: handle llm_setting switch (#17745)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user