You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #47 fix: recursively remove additionalProperties from Gemini requests (valtzu)
This PR was merged into the main branch.
Discussion
----------
fix: recursively remove `additionalProperties` from Gemini requests
| 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.
```
Commits
-------
ea94f84 fix: recursively remove `additionalProperties` from Gemini requests (#351)
0 commit comments