# Fix Gemini function calling \(\#27905\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b158ee60cacc1e34c0244206938cd2232b28138f

Requested commit: b158ee60cacc1e34c0244206938cd2232b28138f

Commit: b158ee60cacc1e34c0244206938cd2232b28138f

Tree: 43bb4ef8bbff2ef203e0a969b1a4718ca7a0e14d

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
Fix Gemini function calling (#27905)

This seems to improve the performance of `gemini-2.5-pro-exp-03-25`
significantly.
We know define a single `Tool` that has multiple `FunctionDeclaration`s,
instead of defining multiple `Tool`s with a single
`FunctionDeclaration`.
Oddly enough the `flash` models seemed to work perfectly fine with the
multiple `Tool { ... }` definitions

Release Notes:

- N/A
```

## Parents

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

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