GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add Gemini 4 Argon to Agents and AI Gateway by ibetitsmike · Pull Request #30780 · coder/coder

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Oct 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Add Gemini 4 Argon to the Agents 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

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).

Testing

  • Live requests to 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.
  • Live 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.
  • Red-green: removing the argon token fails TestGoogleSupportedThinkingLevels/gemini-4-argon (expected LOW, MEDIUM, HIGH; got nil).
  • Regenerating from the saved models.dev snapshot reproduces both generated files byte for byte; with the new pin, only the google Argon output limit changes and 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.

Review record

  • Frontend review: the only site/ change is the generated knownModelsGenerated.json, so the FE1 to FE10 checklist does not apply; no hand-written frontend code changed.
  • Codex round 1 (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.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@ibetitsmike
feat: add Gemini 4 Argon to Agents and AI Gateway
be2c236
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.
@github-actions github-actions Bot assigned ibetitsmike Oct 14, 2026
@ibetitsmike

ibetitsmike commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

chatgpt-codex-connector[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T20:28:54.426917Z cc0f220 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ibetitsmike
ibetitsmike marked this pull request as ready for review October 14, 2026 19:56
@ibetitsmike
ibetitsmike requested review from SasSwart, johnstcn and ssncferreira as code owners October 14, 2026 19:56
@ibetitsmike
ibetitsmike enabled auto-merge (squash) October 14, 2026 20:00
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 14, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: be2c236f0c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread site/src/modules/aiModels/knownModels/knownModelsGenerated.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread site/src/modules/aiModels/knownModels/knownModelsGenerated.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread scripts/aibridgepricesgen/curation.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ibetitsmike
fix: raise Gemini 4 Argon's Google output limit to 65,536
cc0f220
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.
@ibetitsmike

ibetitsmike commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: cc0f220311

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dylanhuff-at-coder
dylanhuff-at-coder approved these changes Oct 14, 2026
View reviewed changes
@ibetitsmike
ibetitsmike merged commit e7c2fd5 into main Oct 14, 2026
33 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ibetitsmike
ibetitsmike deleted the mike/gemini-argon-known-model branch October 14, 2026 20:39
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@dylanhuff-at-coder dylanhuff-at-coder dylanhuff-at-coder approved these changes
@ssncferreira ssncferreira Awaiting requested review from ssncferreira ssncferreira is a code owner
@johnstcn johnstcn Awaiting requested review from johnstcn johnstcn is a code owner
@SasSwart SasSwart Awaiting requested review from SasSwart SasSwart is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@ibetitsmike ibetitsmike

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ibetitsmike @dylanhuff-at-coder
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.