mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 22:35:53 +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
|
dashscope.api_key = key
|
||||||
self.model_name = model_name
|
self.model_name = model_name
|
||||||
if model_name.lower().find("deepseek") >= 0:
|
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):
|
def chat(self, system, history, gen_conf):
|
||||||
if self.model_name.lower().find("deepseek") >= 0:
|
if self.model_name.lower().find("deepseek") >= 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user