From 1b4bfcbd72301e032d14f0a602db33c21c973c28 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 18 Dec 2025 17:17:17 +0800 Subject: [PATCH] chore: ruff format --- astrbot/core/provider/sources/gemini_source.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astrbot/core/provider/sources/gemini_source.py b/astrbot/core/provider/sources/gemini_source.py index 9896ce3b2..f98fd0e8f 100644 --- a/astrbot/core/provider/sources/gemini_source.py +++ b/astrbot/core/provider/sources/gemini_source.py @@ -217,7 +217,9 @@ class ProviderGoogleGenAI(Provider): if thinking_level and isinstance(thinking_level, str): thinking_level = thinking_level.upper() if thinking_level not in ["MINIMAL", "LOW", "MEDIUM", "HIGH"]: - logger.warning(f"Invalid thinking level: {thinking_level}, using HIGH") + logger.warning( + f"Invalid thinking level: {thinking_level}, using HIGH" + ) thinking_level = "HIGH" level = types.ThinkingLevel(thinking_level) thinking_config = types.ThinkingConfig()