mirror of https://github.com/buster-so/buster.git
add the extended cache beta header
This commit is contained in:
parent
19f7256a27
commit
2d8890837a
|
@ -4,7 +4,7 @@ import { wrapAISDKModel } from 'braintrust';
|
|||
export const anthropicModel = (modelId: string) => {
|
||||
const anthropic = createAnthropic({
|
||||
headers: {
|
||||
'anthropic-beta': 'fine-grained-tool-streaming-2025-05-14',
|
||||
'anthropic-beta': 'fine-grained-tool-streaming-2025-05-14,extended-cache-ttl-2025-04-11',
|
||||
},
|
||||
fetch: ((url, options) => {
|
||||
if (options?.body) {
|
||||
|
|
|
@ -32,7 +32,7 @@ export const vertexModel = (modelId: string): LanguageModelV1 => {
|
|||
},
|
||||
},
|
||||
headers: {
|
||||
'anthropic-beta': 'fine-grained-tool-streaming-2025-05-14',
|
||||
'anthropic-beta': 'fine-grained-tool-streaming-2025-05-14,extended-cache-ttl-2025-04-11',
|
||||
},
|
||||
fetch: ((url, options) => {
|
||||
if (options?.body) {
|
||||
|
|
Loading…
Reference in New Issue