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 minimax init error (#1537)
Kevin Hua5306e6345ea
diff --git a/api/apps/api_app.py b/api/apps/api_app.pyindex 324ff93eab..b0ab20ed8d 100644--- a/api/apps/api_app.py+++ b/api/apps/api_app.py@@ -573,6 +573,7 @@ def completion_faq():response = MINIO.get(bkt, nm)data_type_picture["url"] = base64.b64encode(response).decode('utf-8')data.append(data_type_picture)+ breakexcept Exception as e:return server_error_response(e)diff --git a/api/db/init_data.py b/api/db/init_data.pyindex 1f4fd35a93..0acfe7b12a 100644--- a/api/db/init_data.py+++ b/api/db/init_data.py@@ -90,6 +90,11 @@ def init_superuser():def init_llm_factory():+ try:+ LLMService.filter_delete([(LLM.fid == "MiniMax" or LLM.fid == "Minimax")])+ except Exception as e:+ pass+factory_llm_infos = json.load(open(os.path.join(get_project_base_directory(), "conf", "llm_factories.json"),@@ -108,10 +113,6 @@ def init_llm_factory():LLMService.save(**llm_info)except Exception as e:pass- try:- LLMService.filter_delete([(LLM.fid == "MiniMax" or LLM.fid == "Minimax")])- except Exception as e:- passLLMFactoriesService.filter_delete([LLMFactories.name == "Local"])LLMService.filter_delete([LLM.fid == "Local"])