gemini: Fix "invalid argument" error when request contains no tools (cherry-pick #28747) (#28749)
gcp-cherry-pick-bot[bot]
and
Bennet Bo Fenner
created
Cherry-picked 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...")
Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>