Skip to content

fix: wrap Gemini request parts field in array per API spec#74

Merged
iam-vipin merged 1 commit intoRocketChat:mainfrom
amitb0ra:fix/gemini-parts-array
Mar 24, 2026
Merged

fix: wrap Gemini request parts field in array per API spec#74
iam-vipin merged 1 commit intoRocketChat:mainfrom
amitb0ra:fix/gemini-parts-array

Conversation

@amitb0ra
Copy link
Contributor

Description

The parts field in the Gemini API request body was being sent as a plain object instead of an array. This does not match the Gemini API specification, which expects parts to be an array of Part objects.

References

- Change parts from object to array format to match the Gemini API specification
@iam-vipin iam-vipin merged commit e9da89e into RocketChat:main Mar 24, 2026
1 check passed
@amitb0ra amitb0ra deleted the fix/gemini-parts-array branch March 24, 2026 18:56
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.

2 participants