From 759fc5d9a7113e7660052506a53615346cec30a2 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 6 Jan 2026 08:56:58 +0000 Subject: [PATCH] feat: add supportsNativeTools toggle to OpenAI-compatible custom model info This allows users to disable native tool calling for OpenAI-compatible models that do not properly support the OpenAI function calling format. Users can now set supportsNativeTools: false in the custom model info settings to fall back to XML-based tool definitions. Closes #10477 --- .../settings/providers/OpenAICompatible.tsx | 26 +++++++++++++++++++ webview-ui/src/i18n/locales/en/settings.json | 4 +++ 2 files changed, 30 insertions(+) diff --git a/webview-ui/src/components/settings/providers/OpenAICompatible.tsx b/webview-ui/src/components/settings/providers/OpenAICompatible.tsx index ad338d342ab..0d644db2dce 100644 --- a/webview-ui/src/components/settings/providers/OpenAICompatible.tsx +++ b/webview-ui/src/components/settings/providers/OpenAICompatible.tsx @@ -420,6 +420,32 @@ export const OpenAICompatible = ({ +
+
+ { + return { + ...(apiConfiguration?.openAiCustomModelInfo || openAiModelInfoSaneDefaults), + supportsNativeTools: checked, + } + })}> + + {t("settings:providers.customModel.nativeToolCalling.label")} + + + + + +
+
+ {t("settings:providers.customModel.nativeToolCalling.description")} +
+
+