feat(Anthropic): Enable Anthropic 128k context beta feature (#2887)

This commit is contained in:
Asurada 2025-04-03 17:16:36 +08:00 committed by GitHub
parent 515721239f
commit d067d21561
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,10 @@ export default class AnthropicProvider extends BaseProvider {
this.sdk = new Anthropic({
apiKey: this.apiKey,
baseURL: this.getBaseURL(),
dangerouslyAllowBrowser: true
dangerouslyAllowBrowser: true,
defaultHeaders: {
'anthropic-beta': 'output-128k-2025-02-19'
}
})
}