Uh oh!
There was an error while loading. Please reload this page.
Add OpenRouter free model support to Strix and OpenCode review - #614
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR extends the org’s CI review/scanning infrastructure to explicitly support OpenRouter’s free endpoint (openrouter/free) across both OpenCode review model selection and Strix model gating, updating workflow wiring and contract/self-test assertions so the new provider/model surface is treated as first-class.
Changes:
- Added
openrouteras an enabled provider in the OpenCode review workflow configuration and declared theopenrouter/freemodel withOPENROUTER_API_KEY. - Updated the OpenCode model-pool runner to skip OpenRouter candidates when
OPENROUTER_API_KEYis not configured (mirroring existing provider-qualified skip behavior). - Extended Strix workflow gating to accept
openrouter/free/openrouter/openrouter/free, requireOPENROUTER_API_KEY, and write an OpenRouter API base input file; updated related contract/self-test strings.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_opencode_agent_contract.py | Updates OpenCode workflow contract expectations to include the OpenRouter provider and candidate model. |
| scripts/ci/test_strix_quick_gate.sh | Updates Strix/OpenCode workflow self-test assertions to include OpenRouter wording and model candidates. |
| scripts/ci/run_opencode_review_model_pool.sh | Adds OpenRouter candidate detection and skip-on-missing-key behavior. |
| scripts/ci/emit_opencode_failed_check_fallback_findings.sh | Updates known-missing-string findings to match expanded Strix unsupported-model contract text. |
| .github/workflows/strix.yml | Adds OpenRouter model gating, key requirements, API base preparation, and provider-mode routing for Strix. |
| .github/workflows/opencode-review.yml | Enables the OpenRouter provider and adds openrouter/free to the OpenCode model candidate pool and secrets environment. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Write trimmed provider API keys to llm_api_key_file in Strix workflow and lock this behavior in the workflow contract self-test. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Why
OpenCode review and Strix model gating only supported GitHub Models, direct OpenAI, and approved Vertex inputs. We need explicit support for OpenRouter's free endpoint (
openrouter/free) so CI review/scanning can route through it when configured.What changed
openrouterhttps://openrouter.ai/api/v1withOPENROUTER_API_KEYopenrouter/freemodel and insertedopenrouter/openrouter/freeintoOPENCODE_MODEL_CANDIDATESOPENROUTER_API_KEYis absent, matching existing provider-qualified skip behavior.openrouter/free(andopenrouter/openrouter/free), route it throughprovider_mode=openrouter, requireOPENROUTER_API_KEY, and prepare OpenRouter API base input files.Notes for reviewers