diff --git a/internal/agent/coordinator.go b/internal/agent/coordinator.go index 871d9c3f47c533191ec6d2b214408b772cb07ed9..ae9c20ba80320c020116ffd5929197eb215c8239 100644 --- a/internal/agent/coordinator.go +++ b/internal/agent/coordinator.go @@ -633,7 +633,11 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con // handle special headers for anthropic if providerCfg.Type == anthropic.Name && c.isAnthropicThinking(model) { - headers["anthropic-beta"] = "interleaved-thinking-2025-05-14" + if v, ok := headers["anthropic-beta"]; ok { + headers["anthropic-beta"] = v + ",interleaved-thinking-2025-05-14" + } else { + headers["anthropic-beta"] = "interleaved-thinking-2025-05-14" + } } // TODO: make sure we have