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: Tried to fix the fid mis match under some cases (#7426)
Stephen Hu2dbcc0a1bfe8
diff --git a/api/db/services/llm_service.py b/api/db/services/llm_service.pyindex c368807f9c..def50f9c1d 100644--- a/api/db/services/llm_service.py+++ b/api/db/services/llm_service.py@@ -100,9 +100,13 @@ class TenantLLMService(CommonService):model_config = cls.get_api_key(tenant_id, mdlnm)mdlnm, fid = TenantLLMService.split_model_name_and_factory(mdlnm)+ if not model_config: # for some cases seems fid mismatch+ model_config = cls.get_api_key(tenant_id, mdlnm)if model_config:model_config = model_config.to_dict()llm = LLMService.query(llm_name=mdlnm) if not fid else LLMService.query(llm_name=mdlnm, fid=fid)+ if not llm and fid: # for some cases seems fid mismatch+ llm = LLMService.query(llm_name=mdlnm)if llm:model_config["is_tools"] = llm[0].is_toolsif not model_config: