Skip to content

Commit 29d6f6d

Browse files
fix: always show tool protocol selector for openai-compatible (#9966)
1 parent ada7411 commit 29d6f6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,9 @@ const ApiOptions = ({
423423
// 3. XML fallback
424424
const defaultProtocol = selectedModelInfo?.defaultToolProtocol || TOOL_PROTOCOL.XML
425425

426-
// Show the tool protocol selector when model supports native tools
427-
const showToolProtocolSelector = selectedModelInfo?.supportsNativeTools === true
426+
// Show the tool protocol selector when model supports native tools.
427+
// For OpenAI Compatible providers we always show it so users can force XML/native explicitly.
428+
const showToolProtocolSelector = selectedProvider === "openai" || selectedModelInfo?.supportsNativeTools === true
428429

429430
// Convert providers to SearchableSelect options
430431
const providerOptions = useMemo(() => {

0 commit comments

Comments
 (0)