add the extended cache beta header

This commit is contained in:
dal 2025-07-24 10:12:48 -06:00
parent 19f7256a27
commit 2d8890837a
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { wrapAISDKModel } from 'braintrust';
export const anthropicModel = (modelId: string) => { export const anthropicModel = (modelId: string) => {
const anthropic = createAnthropic({ const anthropic = createAnthropic({
headers: { 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) => { fetch: ((url, options) => {
if (options?.body) { if (options?.body) {

View File

@ -32,7 +32,7 @@ export const vertexModel = (modelId: string): LanguageModelV1 => {
}, },
}, },
headers: { 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) => { fetch: ((url, options) => {
if (options?.body) { if (options?.body) {