We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Gemini 2.0 Flash API now supports native image generation: Experiment with Gemini 2.0 Flash native image generation
response_modalities: ['Text', 'Image'] is required in the API request:
config=types.GenerateContentConfig( response_modalities=["Text", "Image"] ),
Now NextChat lacks a setting to enable this,it would be great to add this feature.
Add a setting in model configuration for Gemini models to enable/disable native image generation, like Output Format.
Output Format
No response
The text was updated successfully, but these errors were encountered:
I've tested the payload below locally and can confirm that I'm successfully receiving image responses (base64):
// app/client/platforms/google.ts const requestPayload = { contents: messages, generationConfig: { responseModalities: ['Text', 'Image'], // added a property here temperature: modelConfig.temperature, // ........ }, // ...... };
{ "candidates": [ { "content": { "parts": [ { "inlineData": { "mimeType": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAABAAAAAKkCAIAAAARItoWAAAgAElEQVR4...." } } ], "role": "model" }, "index": 0 } ], "usageMetadata": { "promptTokenCount": 8, "totalTokenCount": 8, "promptTokensDetails": [ { "modality": "TEXT", "tokenCount": 8 } ] }, "modelVersion": "gemini-2.0-flash-exp" }
However, it seems that NextChat currently doesn't support displaying these images.
Sorry, something went wrong.
No branches or pull requests
🥰 Feature Description
The Gemini 2.0 Flash API now supports native image generation:
Experiment with Gemini 2.0 Flash native image generation
response_modalities: ['Text', 'Image'] is required in the API request:
Now NextChat lacks a setting to enable this,it would be great to add this feature.
🧐 Proposed Solution
Add a setting in model configuration for Gemini models to enable/disable native image generation, like
Output Format
.📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: