mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix error when use farui-plus model (#7316)
Co-authored-by: 雪风 <xuefeng@shifaedu.cn>
This commit is contained in:
parent
d1a6702aa4
commit
6fdbc7dbf3
|
@ -159,6 +159,8 @@ You should also complete the text started with ``` but not tell ``` directly.
|
|||
"""
|
||||
if model in ['qwen-turbo-chat', 'qwen-plus-chat']:
|
||||
model = model.replace('-chat', '')
|
||||
if model == 'farui-plus':
|
||||
model = 'qwen-farui-plus'
|
||||
|
||||
if model in self.tokenizers:
|
||||
tokenizer = self.tokenizers[model]
|
||||
|
|
Loading…
Reference in New Issue
Block a user