on main help sign in
chore: do not override old headers
commita314610c516f4eb8c7d4c1a5acbe38f402e33f31 authorKujtim Hoxha <kujtimii.h@gmail.com> dateSun 26 Oct 2025, 17:27 (1 year ago) parent5d42049
1 file changed+5−1
internal/agent/coordinator.go+5−1
internal/agent/coordinator.go+5−1
@@ -633,7 +633,11 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con
633633
634634 // handle special headers for anthropic
635635 if providerCfg.Type == anthropic.Name && c.isAnthropicThinking(model) {
636− headers["anthropic-beta"] = "interleaved-thinking-2025-05-14"
636+ if v, ok := headers["anthropic-beta"]; ok {
637+ headers["anthropic-beta"] = v + ",interleaved-thinking-2025-05-14"
638+ } else {
639+ headers["anthropic-beta"] = "interleaved-thinking-2025-05-14"
640+ }
637641 }
638642
639643 // TODO: make sure we have