mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 12:29:02 +08:00
Resolve super class invokation error. (#5337)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
93b2e80eb8
commit
955801db2e
@ -265,7 +265,7 @@ class QWenChat(Base):
|
||||
|
||||
def chat(self, system, history, gen_conf):
|
||||
if self.model_name.lower().find("deepseek") >= 0:
|
||||
return super.chat(system, history, gen_conf)
|
||||
return super().chat(system, history, gen_conf)
|
||||
|
||||
stream_flag = str(os.environ.get('QWEN_CHAT_BY_STREAM', 'true')).lower() == 'true'
|
||||
if not stream_flag:
|
||||
@ -335,7 +335,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 super().chat_streamly(system, history, gen_conf)
|
||||
|
||||
return self._chat_streamly(system, history, gen_conf)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user