on main help sign in
chore: do not override old headers
a314610Kujtim Hoxha
internal/agent/coordinator.go+5−1
@@ -633,7 +633,11 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con
633
633
634 // handle special headers for anthropic
634 // handle special headers for anthropic
635 if providerCfg.Type == anthropic.Name && c.isAnthropicThinking(model) {
635 if providerCfg.Type == anthropic.Name && c.isAnthropicThinking(model) {
636+ if v, ok := headers["anthropic-beta"]; ok {
636− headers["anthropic-beta"] = "interleaved-thinking-2025-05-14"
637+ headers["anthropic-beta"] = v + ",interleaved-thinking-2025-05-14"
638+ } else {
639+ headers["anthropic-beta"] = "interleaved-thinking-2025-05-14"
640+ }
637 }
641 }
638
642
639 // TODO: make sure we have
643 // TODO: make sure we have