Repository navigation
fix(templates): drop hardcoded ollama_cloud model default from infer workflow - #394
Merged
Merged
Conversation
…workflow The generated .github/workflows/infer.yml pinned model to vars.INFER_MODEL || 'ollama_cloud/deepseek-v4-flash:preview'. Remove the hardcoded fallback so the model comes only from the INFER_MODEL repository variable; when unset, infer-action applies its own default (its own example workflows pass an empty model). A /model provider/name override in the triggering issue or comment still wins per-run.
edenreich
marked this pull request as ready for review
September 4, 2026 00:14
Contributor
|
🎉 This PR is included in version 0.62.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
Removes the hardcoded
ollama_cloud/deepseek-v4-flash:previewfallback from the model default of the generated infer-action workflow. Themodelinput in.github/workflows/infer.ymlnow comes only from theINFER_MODELrepository variable; when it is unset, infer-action applies its own default model (its own example workflows pass an empty model, so that path is supported). The per-run/model provider/nameoverride from the triggering issue or comment is unchanged.Changes
internal/templates/common/github/workflows/ai-infer.yaml.tmpl:model: ${{ vars.INFER_MODEL || 'ollama_cloud/deepseek-v4-flash:preview' }}becomesmodel: ${{ vars.INFER_MODEL }}.INFER_MODELrepository variable (with the matching provider API key secret); when unset, infer-action uses its own default.internal/generator/ai_test.go: added assertions locking the new behavior (model: ${{ vars.INFER_MODEL }}present, noollama_cloud/deepseekdefault in the generated workflow).Verification
task cipasses (fmt, golangci-lint, full test suite, build, verify-schema).ollama_cloud/deepseek-v4-flash:preview(the actual string in the template).Downstream impact
INFER_MODELrepository variable (or keep a per-run/modeloverride). Existing committed workflows are untouched until regeneration.INFER_MODELor the old default; the generated workflow header comment itself is updated by this PR).