on main help sign in
feat: add support or gemini 3+ thinking levels
commit841165eba07a62808453ba68348c7a097f0d2559 authorAndrey Nering <andreynering@users.noreply.github.com> dateTue 24 Feb 2026, 17:08 (8 months ago) parenta439237
1 file changed+10−3
internal/agent/coordinator.go+10−3
internal/agent/coordinator.go+10−3
@@ -317,9 +317,16 @@ func getProviderOptions(model Model, providerCfg config.ProviderConfig) fantasy.
317317 case google.Name:
318318 _, hasReasoning := mergedOptions["thinking_config"]
319319 if !hasReasoning {
320− mergedOptions["thinking_config"] = map[string]any{
321− "thinking_budget": 2000,
322− "include_thoughts": true,
320+ if strings.HasPrefix(model.CatwalkCfg.ID, "gemini-2") {
321+ mergedOptions["thinking_config"] = map[string]any{
322+ "thinking_budget": 2000,
323+ "include_thoughts": true,
324+ }
325+ } else {
326+ mergedOptions["thinking_config"] = map[string]any{
327+ "thinking_level": model.ModelCfg.ReasoningEffort,
328+ "include_thoughts": true,
329+ }
323330 }
324331 }
325332 parsed, err := google.ParseOptions(mergedOptions)