From 8bb18fd2ee4a0fb81b2f24903e47fb1b0beade36 Mon Sep 17 00:00:00 2001 From: Muli Yulzary <8338082+muliyul@users.noreply.github.com> Date: Mon, 14 Apr 2025 19:02:39 +0300 Subject: [PATCH] feat: support o3/o4 as agents --- core/llm/toolSupport.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index 3d0d72cc8..64b604e6d 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -31,6 +31,14 @@ export const PROVIDER_TOOL_SUPPORT: Record< return true; } }, + azure: (model) => { + if ( + model.toLowerCase().startsWith("gpt-4") || + model.toLowerCase().startsWith("o3") + ) { + return true; + return false; + } openai: (model) => { // https://platform.openai.com/docs/guides/function-calling#models-supporting-function-calling if (