From b7d7e0b6825a39f1f3803df7376c062232973f57 Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Sat, 10 May 2025 09:51:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AEthinking=5Fbudget?= =?UTF-8?q?=E5=89=8D=EF=BC=8C=E5=85=88=E6=A3=80=E6=9F=A5=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/provider/sources/gemini_source.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/core/provider/sources/gemini_source.py b/astrbot/core/provider/sources/gemini_source.py index fb47143d4..7626df23f 100644 --- a/astrbot/core/provider/sources/gemini_source.py +++ b/astrbot/core/provider/sources/gemini_source.py @@ -189,6 +189,7 @@ class ProviderGoogleGenAI(Provider): ), ) if "gemini-2.5-flash" in self.get_model() + and hasattr(types.ThinkingConfig, "thinking_budget") else None, automatic_function_calling=types.AutomaticFunctionCallingConfig( disable=True