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
Tongyi adapts deepseek. (#5285)
Kevin Huec96426c00db
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.pyindex 08a4f3e5bc..af98e2644e 100644--- a/rag/llm/chat_model.py+++ b/rag/llm/chat_model.py@@ -258,8 +258,13 @@ class QWenChat(Base):import dashscopedashscope.api_key = keyself.model_name = model_name+ if model_name.lower().find("deepseek") >= 0:+ super().__init__(key, model_name)def chat(self, system, history, gen_conf):+ if self.model_name.lower().find("deepseek") >= 0:+ return super.chat(system, history, gen_conf)+stream_flag = str(os.environ.get('QWEN_CHAT_BY_STREAM', 'true')).lower() == 'true'if not stream_flag:from http import HTTPStatus@@ -327,6 +332,9 @@ class QWenChat(Base):yield tk_countdef 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)