Skip to content

Commit 008e0c7

Browse files
committed
feat(chat): cache getQuestionSchema
1 parent 293b151 commit 008e0c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/api/chat/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ export async function POST(req: Request) {
220220
: null,
221221
};
222222
},
223+
providerOptions: {
224+
anthropic: {
225+
cacheControl: { type: 'ephemeral' },
226+
},
227+
},
223228
}),
224229
webSearch: anthropic.tools.webSearch_20250305({
225230
maxUses: 5,

0 commit comments

Comments
 (0)