Skip to content

Commit e13c180

Browse files
committed
fix: update comment to clarify XML is returned immediately when experiment enabled but model unsupported
1 parent 80e7550 commit e13c180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ const ApiOptions = ({
425425
if (selectedModelInfo?.supportsNativeTools === true) {
426426
return TOOL_PROTOCOL.NATIVE
427427
}
428-
// If experiment is enabled but model doesn't support it, fall back to XML
428+
// If experiment is enabled but model doesn't support it, return XML immediately
429+
// This matches resolveToolProtocol.ts behavior (lines 53-57)
429430
return TOOL_PROTOCOL.XML
430431
}
431432

0 commit comments

Comments
 (0)