mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Fix:empty chat model fallback (#15477)
### What problem does this PR solve? empty chat model fallback ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -1203,7 +1203,7 @@ async def session_completion(chat_id_in_arg=""):
|
||||
return get_data_error_result(message=f"Cannot use specified model {chat_model_id}.")
|
||||
dia.llm_id = chat_model_id
|
||||
dia.llm_setting = chat_model_config
|
||||
else:
|
||||
elif not dia.llm_id:
|
||||
logging.info("empty chat_model_id in req, use default chat model.")
|
||||
_, tenant_info = TenantService.get_by_id(dia.tenant_id)
|
||||
if not tenant_info or not tenant_info.llm_id:
|
||||
|
||||
Reference in New Issue
Block a user