mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 09:40:30 +08:00
Merge pull request #1508 from Raven95676/master
fix: 设置thinking_budget前,先检查是否存在
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user