# gemini: Fix "invalid argument" error when request contains no tools \(\#28747\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e1c42315dc0747081bad3ed3e970a70214986cb4

Requested commit: e1c42315dc0747081bad3ed3e970a70214986cb4

Commit: e1c42315dc0747081bad3ed3e970a70214986cb4

Tree: 0287b90fd84d6504151e1edf1cb7e8bf56578d74

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
gemini: Fix "invalid argument" error when request contains no tools (#28747)

When we do not have any tools, we want to set the `tools` field to
`None`

Release Notes:

- Fixed an issue where Gemini requests would sometimes return a Bad
Request ("Invalid argument...")
```

## Parents

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

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