feat: Report when Ollama models are excluded for not supporting tools #10915
+73
−35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR attempts to address Issue #10906.
Problem
Users experienced confusion when Ollama models that appeared in
ollama lswere not showing up in Roo Code's model picker, or when manually entered models produced the error "The model ID ... you provided is not available" without explaining why.The issue was that models without native tool calling support were being silently filtered out from the model list.
Solution
Added informational note to the Ollama settings UI: Below the model picker, users now see the message "Models that do not support native tool calling are excluded from this list." This addresses the user's suggestion for a simple explanatory sentence.
Improved error message for manually entered models: When a user manually enters a model that is not in the available list, the error message now explains: "The model ID ... you provided is not in the available models list. This may be because the model does not support native tool calling, which is required for Roo Code."
Updated all locale files with the new translation keys.
Changes
webview-ui/src/components/settings/providers/Ollama.tsx: Added the tools note display and updated error message keysettings.jsonfiles: Addedproviders.ollama.toolsNoteandvalidation.modelMayNotSupportToolstranslation keysFeedback and guidance are welcome!
Important
This PR adds UI notes and error messages in
Ollama.tsxto explain the exclusion of models without native tool support, and updates locale files for translation.Ollama.tsxUI: "Models that do not support native tool calling are excluded from this list."Ollama.tsxto explain model exclusion due to lack of tool support.providers.ollama.toolsNoteandvalidation.modelMayNotSupportToolskeys to all localesettings.jsonfiles for translation support.This description was created by
for b5c8f0e. You can customize this summary. It will automatically update as commits are pushed.