# google_ai: Add Gemini 3.8 Flash \(\#63643\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c91e24a97137fc90f6cd4b7eb80ca6efe47931f2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c91e24a97137fc90f6cd4b7eb80ca6efe47931f2

Requested commit: c91e24a97137fc90f6cd4b7eb80ca6efe47931f2

Commit: c91e24a97137fc90f6cd4b7eb80ca6efe47931f2

Tree: 9dabbbefb1bed261947edd1c325fde03294e2258

Author: Ayush

Committer: GitHub

## Message

```
google_ai: Add Gemini 3.8 Flash (#63643)

# 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
```

## Parents

- [e0ae50d1b19e2692d21027c3e93092aa95186c97](https://git.cafe/gitcafe/zed/commit/e0ae50d1b19e2692d21027c3e93092aa95186c97?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c91e24a97137fc90f6cd4b7eb80ca6efe47931f2?format=markdown)
