diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index 93d72751a..889c98c91 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -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; } },