diff --git a/internal/agent/coordinator.go b/internal/agent/coordinator.go index 27d2f7163b3607245b88c8ca32a142cee42e93e9..81825a9ea9a7d0a328f5e839b574994b1cd91faa 100644 --- a/internal/agent/coordinator.go +++ b/internal/agent/coordinator.go @@ -317,9 +317,16 @@ func getProviderOptions(model Model, providerCfg config.ProviderConfig) fantasy. case google.Name: _, hasReasoning := mergedOptions["thinking_config"] if !hasReasoning { - mergedOptions["thinking_config"] = map[string]any{ - "thinking_budget": 2000, - "include_thoughts": true, + if strings.HasPrefix(model.CatwalkCfg.ID, "gemini-2") { + mergedOptions["thinking_config"] = map[string]any{ + "thinking_budget": 2000, + "include_thoughts": true, + } + } else { + mergedOptions["thinking_config"] = map[string]any{ + "thinking_level": model.ModelCfg.ReasoningEffort, + "include_thoughts": true, + } } } parsed, err := google.ParseOptions(mergedOptions)