翻译接口适配本地部署的 llama.cpp + gemma4

This commit is contained in:
SoraYuki
2026-06-30 15:38:48 +08:00
committed by John Smith
parent d1661021f2
commit b77be309e4

View File

@@ -493,6 +493,7 @@ class OpenAiApi(TranslateProvider):
], ],
'model': model, 'model': model,
'thinking': {'type': 'disabled'}, 'thinking': {'type': 'disabled'},
'chat_template_kwargs': {'enable_thinking': False},
# 'reasoning_effort': 'none', # 很多模型不支持none值 # 'reasoning_effort': 'none', # 很多模型不支持none值
'max_tokens': max_tokens, 'max_tokens': max_tokens,
'stream': False, 'stream': False,