We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a772af8 + 7546446 commit e30fb50Copy full SHA for e30fb50
app/api/chat/route.ts
@@ -101,7 +101,7 @@ export async function POST(req: Request) {
101
);
102
}
103
104
- const model = anthropic("claude-sonnet-4-20250514");
+ const model = anthropic("claude-sonnet-4-5");
105
const posthogClient = await createPostHogClient();
106
107
try {
@@ -220,9 +220,11 @@ export async function POST(req: Request) {
220
: null,
221
};
222
},
223
- }),
224
- webSearch: anthropic.tools.webSearch_20250305({
225
- maxUses: 5,
+ providerOptions: {
+ anthropic: {
+ cacheControl: { type: "ephemeral" },
226
+ },
227
228
}),
229
230
});
0 commit comments