Skip to content

Commit e30fb50

Browse files
authored
Merge pull request #20 from database-playground/claude-4.5
Upgrade to Claude Sonnet 4.5
2 parents a772af8 + 7546446 commit e30fb50

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/api/chat/route.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export async function POST(req: Request) {
101101
);
102102
}
103103

104-
const model = anthropic("claude-sonnet-4-20250514");
104+
const model = anthropic("claude-sonnet-4-5");
105105
const posthogClient = await createPostHogClient();
106106

107107
try {
@@ -220,9 +220,11 @@ export async function POST(req: Request) {
220220
: null,
221221
};
222222
},
223-
}),
224-
webSearch: anthropic.tools.webSearch_20250305({
225-
maxUses: 5,
223+
providerOptions: {
224+
anthropic: {
225+
cacheControl: { type: "ephemeral" },
226+
},
227+
},
226228
}),
227229
},
228230
});

0 commit comments

Comments
 (0)