Skip to content

Compatible with new response formats, supporting "Text", "Audio", "Image" arrays #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Amery2010
Copy link

The new gemini-2.0-flash-exp-image-generation model requires the responseModalities: ["Text", "Image"] parameter.

Currently, in the conversation model, the model does not accept the inlineData parameter, and gemini-2.0-flash-exp-image-generation will generate inlineData images during the conversation process, so compatibility needs to be handled for this.

@Amery2010 Amery2010 marked this pull request as ready for review March 19, 2025 16:46
@Annhiluc Annhiluc added type:feature request New feature request/enhancement status:triaged Issue/PR triaged to the corresponding sub-team p3 labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3 status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants