mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 10:29:00 +08:00
Fix base url missing for deepseek from Tongyi. (#5294)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
c6bc69cbc5
commit
df3d0f61bd
@ -259,7 +259,7 @@ class QWenChat(Base):
|
||||
dashscope.api_key = key
|
||||
self.model_name = model_name
|
||||
if 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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user