Skip to content

feat(providers): add Gemini 3.8 Flash - #7402

Merged
waleedlatif1 merged 1 commit into
stagingfrom
feat/gemini-3-8-flash
Sep 2, 2026
Merged

feat(providers): add Gemini 3.8 Flash#7402
waleedlatif1 merged 1 commit into
stagingfrom
feat/gemini-3-8-flash

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Add gemini-3.8-flash to the Google provider catalog and make it the recommended Google model (moved off gemini-3.6-flash)
  • Regenerated the agent-block streamed-thinking docs table

Every field was verified against Google's docs and the live Gemini API using a staging key:

Field Value Source
id gemini-3.8-flash live GET /v1beta/models + API docs
contextWindow 1,048,576 live API inputTokenLimit + OpenRouter
maxOutputTokens 65,536 live API outputTokenLimit + OpenRouter
input $0.75/M pricing + OpenRouter
cachedInput $0.075/M pricing + OpenRouter cache-read
output $3.75/M pricing + OpenRouter
temperature 0–2 live API rejects 2.1 with "must be in the range [0.0, 2.0]"
thinking.levels low/medium/high live API: minimal is rejected for this model
releaseDate 2026-09-02 launch post

Two things worth a reviewer's attention:

  • minimal is not a valid thinking level here. Every sibling Gemini 3.x Flash entry declares ['minimal','low','medium','high'], but 3.8 Flash returns Thinking level MINIMAL is not supported for this model. Copying the sibling shape would have put a dead option in the agent-block dropdown, so this entry declares only ['low','medium','high'].
  • Introductory pricing expires. $0.75/$3.75 is Google's introductory rate through 2026-12-31; it doubles to $1.50/$7.50 on 2027-01-01. Google models are hosted and billed to the workspace, so this entry needs a pricing update before then or we under-bill.

Not included:

  • Gemini 3.8 Flash Cyber is not on the public Gemini API — Google gates it to trusted defenders via the Fairwind Program. gemini-3.8-flash-cyber, -preview, and -latest all return "Model is not found for api version v1beta". Adding an entry would put a permanently-failing option in the model dropdown, so it is left out until we have access.
  • The sim-auto router pool still pins gemini-3.6-flash for tier-1 image/file tasks. That is a curated routing choice with its own cost/quality tradeoff, so I left it alone rather than swapping it in this PR.

Type of Change

  • New feature

Testing

Executed gemini-3.8-flash end-to-end through Sim's own Google provider with a live key:

  • plain completion at temperature: 2.0 → correct output
  • thinkingLevel low/medium/high all accepted, with thinking budget scaling as expected (37 → 106 → 180 output tokens)
  • tool calling → model emitted the expected get_weather call through the provider tool loop
  • structured output → returned schema-conforming JSON
  • cost calculation resolved against the new pricing entry

Also ran: bun run lint, bun run type-check (clean), bun run check:audits (45/45 pass), bun run agent-stream-docs:check (up to date), and the provider/model-router test suites (256 tests pass).

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKqTj3FNr4iS5jMy1gZe2D

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKqTj3FNr4iS5jMy1gZe2D
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 2, 2026 6:31pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds Gemini 3.8 Flash to the Google provider catalog and promotes it as the recommended Google model.

  • Defines pricing, context and output limits, temperature range, and supported thinking levels.
  • Removes the recommendation marker from Gemini 3.6 Flash.
  • Regenerates the streamed-thinking documentation to list Gemini 3.8 Flash under Google summary streaming.

Confidence Score: 5/5

The PR appears safe to merge with no actionable correctness or security issues identified.

The new model metadata conforms to existing provider contracts, supported thinking-level mappings, recommendation consumers, and generated documentation behavior.

Important Files Changed

Filename Overview
apps/sim/providers/models.ts Adds internally consistent Gemini 3.8 Flash catalog metadata and transfers the Google recommendation marker from Gemini 3.6 Flash.
apps/docs/content/docs/workflows/blocks/agent.mdx Updates the generated streamed-thinking table consistently with the new model’s Google summary-streaming behavior.

Reviews (1): Last reviewed commit: "feat(providers): add Gemini 3.8 Flash" | Re-trigger Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit d6e083e into staging Sep 2, 2026
29 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/gemini-3-8-flash branch September 2, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant