fix: always show tool protocol selector for openai-compatible (#9966)

This commit is contained in:
Hannes Rudolph 2025-12-09 17:22:58 -07:00 committed by GitHub
parent ada7411cd3
commit 29d6f6d281
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -423,8 +423,9 @@ const ApiOptions = ({
// 3. XML fallback
const defaultProtocol = selectedModelInfo?.defaultToolProtocol || TOOL_PROTOCOL.XML
// Show the tool protocol selector when model supports native tools
const showToolProtocolSelector = selectedModelInfo?.supportsNativeTools === true
// Show the tool protocol selector when model supports native tools.
// For OpenAI Compatible providers we always show it so users can force XML/native explicitly.
const showToolProtocolSelector = selectedProvider === "openai" || selectedModelInfo?.supportsNativeTools === true
// Convert providers to SearchableSelect options
const providerOptions = useMemo(() => {