mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: always show tool protocol selector for openai-compatible (#9966)
This commit is contained in:
parent
ada7411cd3
commit
29d6f6d281
1 changed files with 3 additions and 2 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue