gemini-2.0-flash-exp-image-generation
| @@ -3147,6 +3147,7 @@ | ||
| 3147 | 3147 | <option value="gemini-2.0-flash-thinking-exp-01-21">Gemini 2.0 Flash Thinking Experimental 2025-01-21</option> |
| 3148 | 3148 | <option value="gemini-2.0-flash-thinking-exp-1219">Gemini 2.0 Flash Thinking Experimental 2024-12-19</option> |
| 3149 | 3149 | <option value="gemini-2.0-flash-exp">Gemini 2.0 Flash Experimental</option> |
| 3150 | + <option value="gemini-2.0-flash-exp-image-generation">Gemini 2.0 Flash (Image Generation) Experimental</option> | |
| 3150 | 3151 | <option value="gemini-exp-1114">Gemini Experimental 2024-11-14</option> |
| 3151 | 3152 | <option value="gemini-exp-1121">Gemini Experimental 2024-11-21</option> |
| 3152 | 3153 | <option value="gemini-exp-1206">Gemini Experimental 2024-12-06</option> |
| @@ -69,6 +69,7 @@ | ||
| 69 | 69 | <option data-type="google" value="gemini-2.0-flash">gemini-2.0-flash</option> |
| 70 | 70 | <option data-type="google" value="gemini-2.0-flash-001">gemini-2.0-flash-001</option> |
| 71 | 71 | <option data-type="google" value="gemini-2.0-flash-exp">gemini-2.0-flash-exp</option> |
| 72 | + <option data-type="google" value="gemini-2.0-flash-exp-image-generation">gemini-2.0-flash-exp-image-generation</option> | |
| 72 | 73 | <option data-type="google" value="gemini-2.0-flash-thinking-exp">gemini-2.0-flash-thinking-exp</option> |
| 73 | 74 | <option data-type="google" value="gemini-2.0-flash-thinking-exp-01-21">gemini-2.0-flash-thinking-exp-01-21</option> |
| 74 | 75 | <option data-type="google" value="gemini-2.0-flash-thinking-exp-1219">gemini-2.0-flash-thinking-exp-1219</option> |
| @@ -5016,6 +5016,7 @@ export function isImageInliningSupported() { | ||
| 5016 | 5016 | 'gemini-2.0-flash-thinking-exp-01-21', |
| 5017 | 5017 | 'gemini-2.0-flash-thinking-exp', |
| 5018 | 5018 | 'gemini-2.0-flash-exp', |
| 5019 | + 'gemini-2.0-flash-exp-image-generation', | |
| 5019 | 5020 | 'gemini-1.5-flash', |
| 5020 | 5021 | 'gemini-1.5-flash-latest', |
| 5021 | 5022 | 'gemini-1.5-flash-001', |
| @@ -358,7 +358,7 @@ async function sendMakerSuiteRequest(request, response) { | ||
| 358 | 358 | delete generationConfig.stopSequences; |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | const useMultiModal = requestImages && (model['gemini-2.includes(0-flash-exp', 'gemini-2.0-flash-exp-image-generation')].includes(model); |
| 362 | 362 | if (useMultiModal) { |
| 363 | 363 | generationConfig.responseModalities = ['text', 'image']; |
| 364 | 364 | } |
| @@ -381,7 +381,7 @@ async function sendMakerSuiteRequest(request, response) { | ||
| 381 | 381 | safetySettings = GEMINI_SAFETY.map(setting => ({ ...setting, threshold: 'BLOCK_NONE' })); |
| 382 | 382 | } |
| 383 | 383 | // Interestingly, Gemini 2.0 Flash does support setting the threshold for HARM_CATEGORY_CIVIC_INTEGRITY to OFF. |
| 384 | 384 | else if (['gemini-2.0-flash', 'gemini-2.0-flash-001', 'gemini-2.0-flash-exp', 'gemini-2.0-flash-exp-image-generation'].includes(model)) { |
| 385 | 385 | safetySettings = GEMINI_SAFETY.map(setting => ({ ...setting, threshold: 'OFF' })); |
| 386 | 386 | } |
| 387 | 387 | // Most of the other models allow for setting the threshold of filters, except for HARM_CATEGORY_CIVIC_INTEGRITY, to OFF. |
| @@ -370,6 +370,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt, names) { | ||
| 370 | 370 | 'gemini-2.0-flash-thinking-exp-01-21', |
| 371 | 371 | 'gemini-2.0-flash-thinking-exp-1219', |
| 372 | 372 | 'gemini-2.0-flash-exp', |
| 373 | + 'gemini-2.0-flash-exp-image-generation', | |
| 373 | 374 | 'gemini-1.5-flash', |
| 374 | 375 | 'gemini-1.5-flash-latest', |
| 375 | 376 | 'gemini-1.5-flash-001', |