fix: remove stale anthropic-beta header for oauth (#11600)

Fixes: [Bug]: Error when using claude-neptune-v3
Fixes #11597
This commit is contained in:
Phantom 2025-12-03 17:20:12 +08:00 committed by GitHub
parent 600199dfcf
commit a1e95b55f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -336,7 +336,6 @@ export async function prepareSpecialProviderConfig(
...(config.options.headers ? config.options.headers : {}),
'Content-Type': 'application/json',
'anthropic-version': '2023-06-01',
'anthropic-beta': 'oauth-2025-04-20',
Authorization: `Bearer ${oauthToken}`
},
baseURL: 'https://api.anthropic.com/v1',