From ea8470c1ad82c45c5a46dbb9f27935a7c0a468fe Mon Sep 17 00:00:00 2001 From: tbphp Date: Sat, 26 Jul 2025 14:36:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DAnthropic=E6=B5=8B?= =?UTF-8?q?=E8=AF=95Key=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/channel/anthropic_channel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/channel/anthropic_channel.go b/internal/channel/anthropic_channel.go index d81190e..1fac0ad 100644 --- a/internal/channel/anthropic_channel.go +++ b/internal/channel/anthropic_channel.go @@ -96,6 +96,7 @@ func (ch *AnthropicChannel) ValidateKey(ctx context.Context, key string) (bool, } req.Header.Set("x-api-key", key) req.Header.Set("anthropic-version", "2023-06-01") + req.Header.Set("Content-Type", "application/json") resp, err := ch.HTTPClient.Do(req) if err != nil {