adjust supported models for openai tool use

This commit is contained in:
Nate 2025-01-11 11:23:54 -08:00
parent 19608db963
commit 9fbdb09087

View file

@ -12,11 +12,8 @@ export const PROVIDER_TOOL_SUPPORT: Record<
}
},
openai: (model) => {
if (
["gpt-4", "o1", "chatgpt-4o-latest"].some((part) =>
model.toLowerCase().startsWith(part),
)
) {
// https://platform.openai.com/docs/guides/function-calling#models-supporting-function-calling
if (model.toLowerCase().startsWith("gpt-4")) {
return true;
}
},