Repository navigation
fix(models): accept local ollama models in fallback rows like the model field - #10360
Merged
Merged
Conversation
…el field Editing validation accepted an installed Ollama model (an unclaimed Ollama-shaped name where Ollama is reachable) in a block's model field but still rejected the same name in its fallback rows, although the fallback picker offers it and execution runs it on Ollama. Writing back a workflow saved with such a fallback through the workflow-state API failed outright, and editing or re-sending the rows failed through mothership edits and workflow-as-code. Both sites now ask one isRunnableModelId predicate. Also tidies follow-ups from the same changes: the MODEL_OPTION_SOURCES note no longer cites bare Ollama names, the browser-only Ollama check in blocks/utils is renamed so it no longer shares a name with the server's isOllamaAvailable, the model combobox uses DEFAULT_BLOCK_MODEL instead of its own copy, and two comments are reflowed.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryFallback rows now accept local Ollama names through the same check used by catalog-backed model fields.
No actionable issues found. This assessment is based on code inspection; tests were not run. Reviews (1) · Last reviewed commit: "fix(models): accept local ollama models ..." · Reviewed by Greptile |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
mistral:latestthrough the workflow-state API failed outright, because it re-validates every stored field. Editing or re-sending the rows failed through mothership edits and workflow-as-codeisRunnableModelIdpredicate: a catalogued or namespaced id, or a local Ollama name. Hosted Sim without Ollama, a blacklisted Ollama,sim-auto, evaluation models and free text are still refusedMODEL_OPTION_SOURCESnote no longer cites bare Ollama names;blocks/utils.tsis renamedhasOllamaInstance, so it no longer shares a name with the server'sisOllamaAvailable;DEFAULT_BLOCK_MODELinstead of its own copy;Type of Change
Testing
validation-models.test.ts: fallback rows on the real agent, router and evaluator blocks acceptmistral:latestwhere Ollama is reachable, and reject it on hosted without Ollama or when Ollama is blacklisted.sim-autoand free text are still refused. The acceptance cases fail on the previous codevalidation.test.ts: the unknown-fallback case now asserts on hosted, where no Ollama can serve the name. On self-hosted that name is a possible local model, as it already was for the model fieldtsc --noEmitandbun run lintclean; vitest over workflows, blocks, model router, mothership request and the editor sub-blocks passes; test-pattern, test-type and audit checks passChecklist