Skip to content

Conversation

chr-hertel
Copy link
Member

Q A
Bug fix? yes
New feature? no
Docs? no
Issues
License MIT

Cherry picking php-llm/llm-chain#351

Tool parameters with nested objects cause 400 bad request from Gemini due to only removing the unsupported additionalProperties on top-level.

Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[0].parameters.properties[0].value': Cannot find field.

…351)

Tool parameters with nested objects cause 400 bad request from Gemini
due to only removing the unsupported `additionalProperties` on
top-level.

```
Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[0].parameters.properties[0].value': Cannot find field.
```
@chr-hertel chr-hertel requested a review from Nyholm as a code owner June 30, 2025 22:10
@chr-hertel chr-hertel added Platform Issues & PRs about the AI Platform component Bug Something isn't working labels Jun 30, 2025
@OskarStark
Copy link
Contributor

Thank you @chr-hertel.

@OskarStark OskarStark merged commit d5a0b5c into main Jul 1, 2025
24 checks passed
@OskarStark OskarStark deleted the gemini-additionalProperties-fix branch July 1, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform Issues & PRs about the AI Platform component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants