Skip to content

fix(templates): drop hardcoded ollama_cloud model default from infer workflow - #394

Merged
edenreich merged 2 commits into
mainfrom
fix/remove-ollama-cloud-default-model
Sep 4, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/remove-ollama-cloud-default-model

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes the hardcoded ollama_cloud/deepseek-v4-flash:preview fallback from the model default of the generated infer-action workflow. The model input in .github/workflows/infer.yml now comes only from the INFER_MODEL repository 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/name override 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' }} becomes model: ${{ vars.INFER_MODEL }}.
  • Updated the template header comment: the model now comes from the INFER_MODEL repository 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, no ollama_cloud/deepseek default in the generated workflow).

Verification

  • task ci passes (fmt, golangci-lint, full test suite, build, verify-schema).
  • The requested model name "ollama_cloud/deepseek-v4-preview" matches the only ollama_cloud default in the repo: ollama_cloud/deepseek-v4-flash:preview (the actual string in the template).

Downstream impact

  • Regenerated projects will no longer default to the ollama_cloud DeepSeek preview model; projects that rely on the old default should set the INFER_MODEL repository variable (or keep a per-run /model override). Existing committed workflows are untouched until regeneration.
  • Docs ticket: [DOCS] Generated infer.yml no longer defaults to the ollama_cloud deepseek model docs#654 (no docs page currently references INFER_MODEL or the old default; the generated workflow header comment itself is updated by this PR).

…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
edenreich marked this pull request as ready for review September 4, 2026 00:14
@edenreich
edenreich requested a review from a team as a code owner September 4, 2026 00:14
@edenreich
edenreich merged commit 723cd37 into main Sep 4, 2026
1 check passed
@edenreich
edenreich deleted the fix/remove-ollama-cloud-default-model branch September 4, 2026 00:15
inference-gateway-releaser Bot added a commit that referenced this pull request Sep 4, 2026
## [0.62.7](v0.62.6...v0.62.7) (2026-09-04)

### 🐛 Bug Fixes

* **templates:** drop hardcoded ollama_cloud model default from infer workflow ([#394](#394)) ([723cd37](723cd37))

### 🔧 Miscellaneous

* **deps:** bump docker/setup-qemu-action from v4.2.0 to v4.3.0 ([#393](#393)) ([2e19f6a](2e19f6a))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.62.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant