BUG: Always defaults to openrouter Gemini #434

Closed
opened 2026-02-16 17:26:42 -05:00 by yindo · 1 comment
Owner

Originally created by @GratefulDave on GitHub (Jul 2, 2025).

Originally assigned to: @thdxr on GitHub.

I have both a GEMINI_API_KEY and OPENROUTER_API_KEY. Model defaults only to openrouter options with no option for direct google gemini api key usage.

Originally created by @GratefulDave on GitHub (Jul 2, 2025). Originally assigned to: @thdxr on GitHub. I have both a `GEMINI_API_KEY` and `OPENROUTER_API_KEY`. Model defaults only to openrouter options with no option for direct google gemini api key usage.
yindo closed this issue 2026-02-16 17:26:42 -05:00
Author
Owner

@thdxr commented on GitHub (Jul 2, 2025):

env key we respect for google is https://github.com/sst/models.dev/blob/dev/providers/google/provider.toml#L2

@thdxr commented on GitHub (Jul 2, 2025): env key we respect for google is [https://github.com/sst/models.dev/blob/dev/providers/google/provider.toml#L2](https://github.com/sst/models.dev/blob/dev/providers/google/provider.toml#L2)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#434