Update toolSupport.ts

This commit is contained in:
Patrick Erichsen 2025-07-02 14:13:23 -07:00
parent e814091619
commit 1b3273e81a

View file

@ -88,15 +88,14 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
);
},
bedrock: (model) => {
// For Bedrock, only support Claude Sonnet models with versions 3.5/3-5 and 3.7/3-7
if (
model.toLowerCase().includes("sonnet") &&
[
"claude-3-5",
"claude-3.5",
"claude-3-7",
"claude-3.7",
"claude-3-5-sonnet",
"claude-3.5-sonnet",
"claude-3-7-sonnet",
"claude-3.7-sonnet",
"claude-sonnet-4",
"claude-opus-4",
].some((part) => model.toLowerCase().includes(part))
) {
return true;