mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-22 08:13:21 +08:00
Fix multiple model chat always use the chat model, not using the passing model (#18439)
This commit is contained in:
@@ -1304,6 +1304,7 @@ async def session_completion(chat_id_in_arg=""):
|
||||
if not await thread_pool_exec(get_api_key, tenant_id=dia.tenant_id, model_name=chat_model_id):
|
||||
return get_data_error_result(message=f"Cannot use specified model {chat_model_id}.")
|
||||
dia.llm_id = chat_model_id
|
||||
dia.tenant_llm_id = None
|
||||
dia.llm_setting = chat_model_config
|
||||
elif not dia.llm_id:
|
||||
logging.info("empty chat_model_id in req, use default chat model.")
|
||||
|
||||
Reference in New Issue
Block a user