# Objective
Add Gemini 3.8 Flash to Zed's built-in Google AI provider so it can be
selected from the model dropdown.
## Solution
Register `gemini-3.8-flash` with its 1 million token context window, 64k
output limit, and Low, Medium, and High thinking levels. Medium is the
default, and Low is used when thinking is disabled because the model
rejects Minimal.
Add tests covering the model metadata, serialization, token limits,
thinking levels, and disabled-thinking behavior.
## Testing
Tested on Windows using Rust 1.98 GNU:
- `cargo test -p google_ai` — 23 passed
- `cargo fmt --all --check`
- `cargo +stable-x86_64-pc-windows-gnu clippy -p google_ai --release
--all-targets --all-features -- --deny warnings`
Reviewers can run `cargo test -p google_ai`. The pinned MSVC toolchain
was not tested locally because `link.exe` was unavailable.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Added Gemini 3.8 Flash to the Google AI models
c91e24a971Ayush committed on 9/4/2026, 4:24:18 PM· committed by GitHubparente0ae50d