fix: remove stale anthropic-beta header for oauth

Fixes: [Bug]: Error when using claude-neptune-v3
Fixes #11597
This commit is contained in:
icarus
2025-12-01 10:54:21 +08:00
parent b3a58ec321
commit ef0f6a96dd

View File

@@ -314,7 +314,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',