Skip to content

Handle nullable tool parameter types for Gemini gateway#386

Merged
taylorotwell merged 8 commits into0.xfrom
gemini-nullable-tool-params
Apr 13, 2026
Merged

Handle nullable tool parameter types for Gemini gateway#386
taylorotwell merged 8 commits into0.xfrom
gemini-nullable-tool-params

Conversation

@pushpak1300
Copy link
Copy Markdown
Member

Gemini's API rejects JSON Schema nullable types (["string", "null"]) in tool definitions, requiring OpenAPI-style nullable: true instead. This causes tool calls with nullable parameters to fail.

@pushpak1300 pushpak1300 self-assigned this Apr 13, 2026
@pushpak1300 pushpak1300 marked this pull request as ready for review April 13, 2026 09:36
@pushpak1300 pushpak1300 linked an issue Apr 13, 2026 that may be closed by this pull request
@taylorotwell taylorotwell merged commit aa3a739 into 0.x Apr 13, 2026
5 checks passed
@taylorotwell taylorotwell deleted the gemini-nullable-tool-params branch April 13, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gemini missing gateway for Chat Completions API

2 participants