You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6e73e14
Browse filesBrowse the repository at this point in the historyBrowse files
fix(models): route tagged ollama names that share a cloud prefix to ollama (#10351)
* fix(models): route tagged ollama names that share a cloud prefix to ollama
findProviderFromModel matched provider patterns (/^gpt/, /^mistral/, /^claude/,
...) against any id that no namespace or catalog entry claimed. The browser
registers the installed Ollama list, so the editor resolved a local model such
as gpt-oss:20b or mistral:latest to Ollama, but the server never holds that
list: execution fell through to the cloud pattern and sent the request to
OpenAI or Mistral with the user's key, or failed on a missing one.
Ollama lists every installed model as name:tag, and no cloud model id carries
an Ollama tag, so a bare tagged name is now left unclaimed before patterns
run and getProviderFromModel defaults it to Ollama, the same as every other
local name. Namespaces and exact catalog ids still win first, so
bedrock/...:0 and openrouter/...:free are unaffected. Saved workflows heal
without a migration, and the editor, execution, permission checks and the
editing validator now agree on the provider.
getModelCapabilities re-implemented the pattern scan and kept reporting a
cloud provider's capabilities for these names; it now falls back to
findProviderFromModel so the two cannot disagree.
* improvement(models): share the ollama model-name rule between the resolver and the validator
0 commit comments