Skip to content

Commit 9c9f26f

Browse files
committed
feat: default to Gemini on OpenRouter; drop model-format paragraph
Default OpenRouter runs to google/gemini-3-flash-preview (agent) and google/gemini-3.1-flash-lite-preview (parsing) when the user doesn't pin a model. Gated on provider==openrouter, so other providers still defer to their own engine default (multi-provider intact). Both slugs verified to exist on OpenRouter. Remove the 'Model format on OpenRouter ...' README paragraph and update the Inputs table.
1 parent 3690d78 commit 9c9f26f

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ Models are optional. Omit `agent_model` and `parsing_model` to use the engine's
107107
parsing_model: google/gemini-3-flash-preview # optional
108108
```
109109
110-
Model format on OpenRouter is a bare slug (e.g. `anthropic/claude-sonnet-4`): exactly one `/`, with no `openrouter/` prefix (that is the LiteLLM form, which the action rejects early). Other providers use their own native model ids.
111-
112110
## Bring your own LLM provider
113111
114112
OpenRouter is the default, but you can use any provider the engine supports. Set `llm_provider` and pass that provider's key:
@@ -159,8 +157,8 @@ The command needs the `issue_comment` trigger and runs from your default branch
159157
| `render_depth` | `1` | Display depth for the PR diagram. Keep `1` for a clean top-level view. |
160158
| `diagram_direction` | `LR` | Mermaid direction: `LR`, `TD`, `TB`, `RL`, or `BT`. |
161159
| `changed_only` | `false` | Render only changed components and incident edges. |
162-
| `agent_model` | engine default | Analysis model. Bare OpenRouter slug (e.g. `anthropic/claude-sonnet-4`); empty uses the engine's per-provider default. |
163-
| `parsing_model` | engine default | Parsing model. Bare OpenRouter slug; empty uses the engine's per-provider default. |
160+
| `agent_model` | `google/gemini-3-flash-preview` | Analysis model. OpenRouter default shown; other providers use their own engine default. |
161+
| `parsing_model` | `google/gemini-3.1-flash-lite-preview` | Parsing model. OpenRouter default shown; other providers use their own engine default. |
164162
| `comment_header` | `Architecture review` | Heading for the PR comment. |
165163
| `trigger_command` | `/codeboarding` | Slash command for trusted on-demand runs. |
166164
| `cta_base_url` | empty | Optional click-proxy base URL for editor and extension links. |

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ inputs:
2727
required: false
2828
default: '1'
2929
agent_model:
30-
description: 'Analysis model (AGENT_MODEL env var). A bare OpenRouter slug, e.g. anthropic/claude-sonnet-4. Empty (default) uses the engine''s own per-provider default.'
30+
description: 'Analysis model (AGENT_MODEL env var). A bare OpenRouter slug. Defaults to google/gemini-3-flash-preview on OpenRouter; for other providers, empty uses the engine''s per-provider default.'
3131
required: false
3232
default: ''
3333
parsing_model:
34-
description: 'Parsing model (PARSING_MODEL env var). A bare OpenRouter slug. Empty (default) uses the engine''s own per-provider default.'
34+
description: 'Parsing model (PARSING_MODEL env var). A bare OpenRouter slug. Defaults to google/gemini-3.1-flash-lite-preview on OpenRouter; for other providers, empty uses the engine''s per-provider default.'
3535
required: false
3636
default: ''
3737
comment_header:
@@ -282,6 +282,10 @@ runs:
282282
echo "Provider: $PROVIDER -> $PROVIDER_ENV; key length: ${#KEY}"
283283
284284
if [ "$PROVIDER" = "openrouter" ]; then
285+
# Default models on OpenRouter when the user didn't pin one (cheap Gemini).
286+
# Other providers fall through to the engine's own per-provider default.
287+
AGENT_MODEL="${AGENT_MODEL:-google/gemini-3-flash-preview}"
288+
PARSING_MODEL="${PARSING_MODEL:-google/gemini-3.1-flash-lite-preview}"
285289
# OpenRouter-only checks. The litellm 'openrouter/...' model prefix 400s
286290
# the engine's native OpenRouter call; other providers use native ids.
287291
for M in "$AGENT_MODEL" "$PARSING_MODEL"; do

0 commit comments

Comments
 (0)