# Add thinking budget for Gemini custom models \(\#31251\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cf931247d0addf2d44d166d4c06dad3245de75fd

Requested commit: cf931247d0addf2d44d166d4c06dad3245de75fd

Commit: cf931247d0addf2d44d166d4c06dad3245de75fd

Tree: b428383d6c6c9f56e49bda23d55431e7cf33bc5f

Author: 90aca

Committer: GitHub

## Message

```
Add thinking budget for Gemini custom models (#31251)

Closes #31243

As described in my issue, the [thinking
budget](https://ai.google.dev/gemini-api/docs/thinking) gets
automatically chosen by Gemini unless it is specifically set to
something. In order to have fast responses (inline assistant) I prefer
to set it to 0.

Release Notes:

- ai: Added `thinking` mode for custom Google models with configurable
token budget

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
```

## Parents

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

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