mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: always show tool protocol selector for OpenAI Compatible and Ollama providers
- Tool protocol selector now appears for OpenAI Compatible and Ollama providers regardless of model configuration - Fixes issue where existing configurations wouldn't show the tool call protocol option - Users can now control tool format for local models without recreating configurations Fixes #9748
This commit is contained in:
parent
c91a19fbe7
commit
73d28a8daf
1 changed files with 5 additions and 1 deletions
|
|
@ -425,7 +425,11 @@ const ApiOptions = ({
|
|||
const defaultProtocol = selectedModelInfo?.defaultToolProtocol || TOOL_PROTOCOL.XML
|
||||
|
||||
// Show the tool protocol selector when model supports native tools
|
||||
const showToolProtocolSelector = selectedModelInfo?.supportsNativeTools === true
|
||||
// OR when using OpenAI Compatible/Ollama providers (to give users control regardless of model config)
|
||||
const showToolProtocolSelector =
|
||||
selectedModelInfo?.supportsNativeTools === true ||
|
||||
selectedProvider === "openai" ||
|
||||
selectedProvider === "ollama"
|
||||
|
||||
// Convert providers to SearchableSelect options
|
||||
const providerOptions = useMemo(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue