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 4c7ad8c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(models): accept models ollama can serve and refuse a denied sim-auto (#10341)
* fix(models): accept models ollama can serve and refuse a denied sim-auto
The editing validator rejected any model id outside the static catalog on the
router, evaluator, translate and guardrails blocks. At runtime an id that no
provider claims runs on Ollama, so a locally installed model (llama3.1:8b,
user/model library names) could not be written by an edit, the workflow-state
API or workflow-as-code, and replacing a workflow that already used one
failed outright. Where Ollama can serve a model (reachable and not
blacklisted), the validator now accepts an Ollama-shaped name that no
provider claims, mirroring the runtime. Ids a provider claims, free text,
and sim-auto are still rejected.
Whether this deployment can reach Ollama is now one helper,
isOllamaReachable, used by the chat and embedding model lists, the embedding
client and the access-request catalog, which each restated it.
resolveAutoModel now checks the configured sim-auto against the workspace's
permission group before routing. A group that denied sim-auto still ran it as
whichever pool or default model it allowed; the editor already hid Auto for
such a group, and execution now refuses it the same way it refuses any other
denied model.
* fix(models): keep the ollama url check private and import mocks directly
0 commit comments