From c6c07cb52f8d069ed04b9fef199b811bb169ec37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 14 Mar 2026 15:19:59 +0800 Subject: [PATCH] service/ccm: update oauth token URL and remove unnecessary Accept header --- service/ccm/credential.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/ccm/credential.go b/service/ccm/credential.go index 8bfd27c23..da559c173 100644 --- a/service/ccm/credential.go +++ b/service/ccm/credential.go @@ -20,7 +20,7 @@ import ( const ( oauth2ClientID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e" - oauth2TokenURL = "https://console.anthropic.com/v1/oauth/token" + oauth2TokenURL = "https://platform.claude.com/v1/oauth/token" claudeAPIBaseURL = "https://api.anthropic.com" tokenRefreshBufferMs = 60000 anthropicBetaOAuthValue = "oauth-2025-04-20" @@ -164,7 +164,6 @@ func refreshToken(ctx context.Context, httpClient *http.Client, credentials *oau return nil, err } request.Header.Set("Content-Type", "application/json") - request.Header.Set("Accept", "application/json") request.Header.Set("User-Agent", ccmUserAgentValue) return request, nil })