Add OpenRouter free model support to Strix and OpenCode review#614
Merged
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.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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>
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.
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