File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -383,16 +383,19 @@ async def create_agent_run_info(
383383
384384 final_query = await join_minio_file_description_to_query (minio_files = minio_files , query = query )
385385 model_list = await create_model_config_list (tenant_id )
386- agent_config = await create_agent_config (
387- agent_id = agent_id ,
388- tenant_id = tenant_id ,
389- user_id = user_id ,
390- language = language ,
391- last_user_query = final_query ,
392- allow_memory_search = allow_memory_search ,
393- version_no = version_no ,
394- override_model_id = override_model_id ,
395- )
386+ create_config_kwargs = {
387+ "agent_id" : agent_id ,
388+ "tenant_id" : tenant_id ,
389+ "user_id" : user_id ,
390+ "language" : language ,
391+ "last_user_query" : final_query ,
392+ "allow_memory_search" : allow_memory_search ,
393+ "version_no" : version_no ,
394+ }
395+ if override_model_id is not None :
396+ create_config_kwargs ["override_model_id" ] = override_model_id
397+
398+ agent_config = await create_agent_config (** create_config_kwargs )
396399
397400 remote_mcp_list = await get_remote_mcp_server_list (tenant_id = tenant_id , is_need_auth = True )
398401 default_mcp_url = urljoin (LOCAL_MCP_SERVER , "sse" )
You can’t perform that action at this time.
0 commit comments