GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — feat: add Gemini 4 Argon to Agents and AI Gateway by ibetitsmike · Pull Request #30780 · coder/coder Conversation
|
| Provider | Model ID | Placed before |
|---|---|---|
gemini-4-argon |
gemini-3.1-pro-preview |
|
| openrouter, vercel | google/gemini-4-argon |
google/gemini-3.8-flash |
Pricing. The price book carries Google's launch rates on google, openrouter, vercel, and copilot: $2 per 1M input tokens, $10 per 1M output tokens, and $0.10 per 1M cached input tokens. Google doubles them on 2026-12-01 ($4, $20, $0.20); the weekly refresh picks that up once models.dev changes.
Output limit. overrides.jq raises the google entry from models.dev's 32,768 output tokens to 65,536, Google's documented default synchronous limit, because the limit includes thinking tokens. Its guards fail if the model or its upstream value changes. OpenRouter (65,536) and Vercel (1,000,000) keep their published values.
Thinking levels. googleSupportedThinkingLevels did not recognize the argon name token and failed closed, so chatd sent Argon no thinking_level and no include_thoughts: the native Google path dropped the reasoning effort, and neither path showed thought summaries. Argon accepts LOW, MEDIUM, and HIGH like Gemini 3.1 Pro and rejects MINIMAL, so the map now treats it like the Pro family.
Upstream drift. prices.json covers every model of its 8 providers, so the regeneration also brings the changes since the last weekly refresh, all on OpenRouter and Vercel: 14 other new entries, 26 entries models.dev delisted, and 51 price changes. The catalog picks up the same changes for 8 curated OpenRouter entries (DeepSeek, Kimi, Qwen, and GLM).
gemini-4-argon through the AI Gateway's Google provider (Google's OpenAI-compatible endpoint): reasoning_effort and thinking_level values low, medium, and high return 200 and minimal returns 400; include_thoughts returns thought text in streaming and non-streaming responses.max_tokens requests through the AI Gateway return 200: Google at 65,536 (streaming and non-streaming) and 98,304 (streaming, the compaction headroom); Vercel at 1,000,000, also with a 70,044-token prompt.argon token fails TestGoogleSupportedThinkingLevels/gemini-4-argon (expected LOW, MEDIUM, HIGH; got nil).prices.json stays identical.go test ./scripts/aibridgepricesgen/... ./coderd/aibridge/prices/... ./coderd/x/chatd/chatprovider/... and pnpm exec vitest run --project=unit src/modules/aiModels/ pass. The pre-commit hook passed; local pre-push checks were skipped, so CI is the first full run.site/ change is the generated knownModelsGenerated.json, so the FE1 to FE10 checklist does not apply; no hand-written frontend code changed.be2c236, 3 findings): fixed the google output limit in cc0f220; declined the Vercel output limit (live requests at 1,000,000 succeed) and a curated Google reasoning effort (thought summaries already work without one, and no Google entry curates one).Xum opened this PR on behalf of @ibetitsmike.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Add Gemini 4 Argon to the known models catalog, so it appears as a suggestion when an admin adds a chat model, and regenerate the AI Gateway price book from models.dev. | Provider | Model ID | Placed before | |---|---|---| | google | `gemini-4-argon` | `gemini-3.1-pro-preview` | | openrouter, vercel | `google/gemini-4-argon` | `google/gemini-3.8-flash` | Google lists $2 per 1M input tokens, $10 per 1M output tokens, and $0.10 per 1M cached input tokens through 2026-11-30, then $4, $20, and $0.20. The price book carries the current rates; the weekly refresh picks up the change once models.dev does. The google entry keeps the upstream 32,768 max output tokens, which matches the cap Google enforces on non-streaming generateContent calls (larger values return HTTP 400 there). chatd's Gemini thinking-level map did not recognize the "argon" name token and failed closed, so Argon requests carried no thinking_level and no include_thoughts: the native path dropped the reasoning effort, and neither path showed thought summaries. Argon accepts LOW, MEDIUM, and HIGH like Gemini 3.1 Pro and rejects MINIMAL with HTTP 400 (Google's docs, and live probes through the AI Gateway's Google route), so the map now treats it like the Pro family. The regeneration also brings upstream drift since the last weekly refresh, all on OpenRouter and Vercel: 14 other new rows, 26 rows models.dev delisted, and 51 price changes.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: be2c236f0c
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
models.dev lists 32,768 output tokens for google/gemini-4-argon, but Google documents 65,536 as the default synchronous limit and recommends it for long coding and agentic tasks. The limit includes thinking tokens, so the catalog default cut long chat turns short. Pin the value in overrides.jq with guards that fail when the model leaves upstream or its upstream limit changes, and regenerate the known models catalog. prices.json carries no limits and is unchanged.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.