RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix multiple model chat always use the chat model, not using the passing model (#18439)
Wang Qib75509c8a6b5
diff --git a/api/apps/restful_apis/chat_api.py b/api/apps/restful_apis/chat_api.pyindex 92b32ddc88..cb2643d8bd 100644--- a/api/apps/restful_apis/chat_api.py+++ b/api/apps/restful_apis/chat_api.py@@ -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 = Nonedia.llm_setting = chat_model_configelif not dia.llm_id:logging.info("empty chat_model_id in req, use default chat model.")