# google_ai: Refactor token count methods in Google AI \(\#45184\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 225a2a8a2045abadfa5a5d0eb330afd4244fc93c

Requested commit: 225a2a8a2045abadfa5a5d0eb330afd4244fc93c

Commit: 225a2a8a2045abadfa5a5d0eb330afd4244fc93c

Tree: e0aeb586418c0296a3a4c045d99f31ed7b8fdf83

Author: Xiaobo Liu

Committer: GitHub

## Message

```
google_ai: Refactor token count methods in Google AI (#45184)

The change simplifies the `max_token_count` and `max_output_tokens`
methods by grouping Gemini models with identical token limits.

Release Notes:

- N/A
```

## Parents

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

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