mirror of
https://github.com/xfgryujk/blivechat.git
synced 2026-08-19 01:33:27 +08:00
翻译接口适配本地部署的 llama.cpp + gemma4
This commit is contained in:
@@ -493,6 +493,7 @@ class OpenAiApi(TranslateProvider):
|
||||
],
|
||||
'model': model,
|
||||
'thinking': {'type': 'disabled'},
|
||||
'chat_template_kwargs': {'enable_thinking': False},
|
||||
# 'reasoning_effort': 'none', # 很多模型不支持none值
|
||||
'max_tokens': max_tokens,
|
||||
'stream': False,
|
||||
|
||||
Reference in New Issue
Block a user