# google_ai: Support Gemini 3.5 Flash \(\#57299\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4558d14cf849786b914eb1cd0196c375d4e9cf71

Requested commit: 4558d14cf849786b914eb1cd0196c375d4e9cf71

Commit: 4558d14cf849786b914eb1cd0196c375d4e9cf71

Tree: d2dc14453bf1c8d9c8681bf71d43558642e790e7

Author: Tom Houlé

Committer: GitHub

## Message

```
google_ai: Support Gemini 3.5 Flash (#57299)

Implements the [official upgrade
instructions](https://ai.google.dev/gemini-api/docs/whats-new-gemini-3.5#migrate-from-3-flash-preview)
for Gemini 3.5 Flash, and adds BYOK support.

The changes about thinking_level and temperature apply to our situation,
but they are only recommendations, and we have to support older models,
so I preferred not trying to force the preferred / remove the
discouraged parameters for now.

`temperature` becomes optional - we don't fill in a default anymore,
since passing it is now discouraged.

This commit also adds support for `thinking_level`, since it is now
preferred to `thinking_budget`.

`FunctionCall` and `FunctionResponse` now support passing an `id` to
properly maintain chain-of-thought preservation and match execution IDs
across turns. When resolving incoming tool uses, the mapper prefers the
execution ID returned by Gemini, falling back to sequential naming in
other scenarios.

Release Notes:

- Added support for Gemini 3.5 Flash in the Google AI model provider.
```

## Parents

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

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