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 base url missing for deepseek from Tongyi. (#5294)
Kevin Hudf3d0f61bddd
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.pyindex af98e2644e..a8ba8413c4 100644--- a/rag/llm/chat_model.py+++ b/rag/llm/chat_model.py@@ -259,7 +259,7 @@ class QWenChat(Base):dashscope.api_key = keyself.model_name = model_nameif model_name.lower().find("deepseek") >= 0:- super().__init__(key, model_name)+ super().__init__(key, model_name, "https://dashscope.aliyuncs.com/compatible-mode/v1")def chat(self, system, history, gen_conf):if self.model_name.lower().find("deepseek") >= 0:@@ -334,7 +334,7 @@ class QWenChat(Base):def chat_streamly(self, system, history, gen_conf):if self.model_name.lower().find("deepseek") >= 0:return super.chat_streamly(system, history, gen_conf)-+return self._chat_streamly(system, history, gen_conf)