From b77be309e4a297bd3d25771bac05b2082a31c09c Mon Sep 17 00:00:00 2001 From: SoraYuki Date: Tue, 30 Jun 2026 15:38:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E6=8E=A5=E5=8F=A3=E9=80=82?= =?UTF-8?q?=E9=85=8D=E6=9C=AC=E5=9C=B0=E9=83=A8=E7=BD=B2=E7=9A=84=20llama.?= =?UTF-8?q?cpp=20+=20gemma4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/translate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/translate.py b/services/translate.py index 10e33e6..72eaef7 100644 --- a/services/translate.py +++ b/services/translate.py @@ -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,