瀏覽代碼

fix error when use farui-plus model (#7316)

Co-authored-by: 雪风 <xuefeng@shifaedu.cn>
tags/0.7.1
噢哎哟喂 1 年之前
父節點
當前提交
6fdbc7dbf3
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      api/core/model_runtime/model_providers/tongyi/llm/llm.py

+ 2
- 0
api/core/model_runtime/model_providers/tongyi/llm/llm.py 查看文件

@@ -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…
取消
儲存