feat(Anthropic): Enable Anthropic 128k context beta feature (#2887)
This commit is contained in:
parent
515721239f
commit
d067d21561
@ -44,7 +44,10 @@ export default class AnthropicProvider extends BaseProvider {
|
|||||||
this.sdk = new Anthropic({
|
this.sdk = new Anthropic({
|
||||||
apiKey: this.apiKey,
|
apiKey: this.apiKey,
|
||||||
baseURL: this.getBaseURL(),
|
baseURL: this.getBaseURL(),
|
||||||
dangerouslyAllowBrowser: true
|
dangerouslyAllowBrowser: true,
|
||||||
|
defaultHeaders: {
|
||||||
|
'anthropic-beta': 'output-128k-2025-02-19'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user