@@ -654,6 +654,9 @@ func (c *coordinator) isAnthropicThinking(model config.SelectedModel) bool {
655func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model config.SelectedModel) (fantasy.Provider, error) {
655func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model config.SelectedModel) (fantasy.Provider, error) {
656 headers := maps.Clone(providerCfg.ExtraHeaders)
656 headers := maps.Clone(providerCfg.ExtraHeaders)
658+ headers = make(map[string]string)
658 // handle special headers for anthropic
661 // handle special headers for anthropic
659 if providerCfg.Type == anthropic.Name && c.isAnthropicThinking(model) {
662 if providerCfg.Type == anthropic.Name && c.isAnthropicThinking(model) {