From ca9387f063fc4764ed41cb2c5de98a691f60886a Mon Sep 17 00:00:00 2001 From: kamilbenkirane Date: Sun, 28 Jun 2026 18:56:50 +0200 Subject: [PATCH] fix(google): add minimal thinking level to gemini-3.5-flash Gemini 3.5 Flash supports thinking_level minimal/low/medium/high per the Gemini API docs; only low/medium/high were registered. --- src/celeste/modalities/text/providers/google/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/celeste/modalities/text/providers/google/models.py b/src/celeste/modalities/text/providers/google/models.py index e282792..178bc7e 100644 --- a/src/celeste/modalities/text/providers/google/models.py +++ b/src/celeste/modalities/text/providers/google/models.py @@ -156,7 +156,9 @@ parameter_constraints={ Parameter.TEMPERATURE: Range(min=0.0, max=2.0), Parameter.MAX_TOKENS: Range(min=1, max=65536), - TextParameter.THINKING_LEVEL: Choice(options=["low", "medium", "high"]), + TextParameter.THINKING_LEVEL: Choice( + options=["minimal", "low", "medium", "high"] + ), TextParameter.TOOLS: ToolSupport(tools=[WebSearch, CodeExecution]), TextParameter.TOOL_CHOICE: ToolChoiceSupport(), TextParameter.OUTPUT_SCHEMA: Schema(),