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 37172fecb4
commit 22a4f270a9

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'
}
})
}