Almost done with Google pruning * Put back 1.5-latest * Put back missing flash 002 (same deal about safetySettings like pro 001 vs 002) * Remove dead models and gemma from BLOCK_NONE check
| @@ -3153,22 +3153,21 @@ | ||
| 3153 | 3153 | <option value="gemini-2.0-flash-001">gemini-2.0-flash-001</option> |
| 3154 | 3154 | <option value="gemini-2.0-flash-exp-image-generation">gemini-2.0-flash-exp-image-generation</option> |
| 3155 | 3155 | <option value="gemini-2.0-flash-lite-001">gemini-2.0-flash-lite-001</option> |
| 3156 | + <option value="gemini-1.5-pro-latest">gemini-1.5-pro-latest</option> | |
| 3156 | 3157 | <option value="gemini-1.5-pro-002">gemini-1.5-pro-002</option> |
| 3158 | + <option value="gemini-1.5-pro-001">gemini-1.5-pro-001</option> | |
| 3159 | + <option value="gemini-1.5-flash-latest">gemini-1.5-flash-latest</option> | |
| 3160 | + <option value="gemini-1.5-flash-002">gemini-1.5-flash-002</option> | |
| 3157 | 3161 | <option value="gemini-1.5-flash-001">gemini-1.5-flash-001</option> |
| 3158 | 3162 | <option value="gemini-1.5-flash-8b-001">gemini-1.5-flash-8b-001</option> |
| 3159 | 3163 | </optgroup> |
| 3160 | - <!-- When a model updates, add NEW version to ABOVE and move OLD to BELOW --> | |
| 3161 | - <optgroup label="Previous"> | |
| 3162 | - <option value="gemini-1.5-pro-001">gemini-1.5-pro-001</option> | |
| 3163 | - </optgroup> | |
| 3164 | - <!-- Updates to Gemma and Preview groups will be handled differently --> | |
| 3165 | 3164 | <optgroup label="Gemma"> |
| 3166 | 3165 | <option value="gemma-3-27b-it">gemma-3-27b-it</option> |
| 3167 | 3166 | <option value="gemma-3-12b-it">gemma-3-12b-it</option> |
| 3168 | 3167 | <option value="gemma-3-4b-it">gemma-3-4b-it</option> |
| 3169 | 3168 | <option value="gemma-3-1b-it">gemma-3-1b-it</option> |
| 3170 | 3169 | </optgroup> |
| 3171 | 3170 | <optgroup label="PreviewLearnLM"> |
| 3172 | 3171 | <option value="learnlm-2.0-flash-experimental">learnlm-2.0-flash-experimental</option> |
| 3173 | 3172 | <option value="learnlm-1.5-pro-experimental">learnlm-1.5-pro-experimental</option> |
| 3174 | 3173 | </optgroup> |
| @@ -83,8 +83,11 @@ | ||
| 83 | 83 | <option data-type="google" value="gemini-2.0-flash-001">gemini-2.0-flash-001</option> |
| 84 | 84 | <option data-type="google" value="gemini-2.0-flash-exp-image-generation">gemini-2.0-flash-exp-image-generation</option> |
| 85 | 85 | <option data-type="google" value="gemini-2.0-flash-lite-001">gemini-2.0-flash-lite-001</option> |
| 86 | + <option data-type="google" value="gemini-1.5-pro-latest">gemini-1.5-pro-latest</option> | |
| 86 | 87 | <option data-type="google" value="gemini-1.5-pro-002">gemini-1.5-pro-002</option> |
| 87 | 88 | <option data-type="google" value="gemini-1.5-pro-001">gemini-1.5-pro-001</option> |
| 89 | + <option data-type="google" value="gemini-1.5-flash-latest">gemini-1.5-flash-latest</option> | |
| 90 | + <option data-type="google" value="gemini-1.5-flash-002">gemini-1.5-flash-002</option> | |
| 88 | 91 | <option data-type="google" value="gemini-1.5-flash-001">gemini-1.5-flash-001</option> |
| 89 | 92 | <option data-type="google" value="gemini-1.5-flash-8b-001">gemini-1.5-flash-8b-001</option> |
| 90 | 93 | <option data-type="google" value="learnlm-2.0-flash-experimental">learnlm-2.0-flash-experimental</option> |
| @@ -384,7 +384,7 @@ async function sendMakerSuiteRequest(request, response) { | ||
| 384 | 384 | let safetySettings = GEMINI_SAFETY; |
| 385 | 385 | |
| 386 | 386 | // These models do not support setting the threshold to OFF at all. |
| 387 | 387 | if (['gemini-1.5-pro-001', 'gemini-1.5-flash-001', 'gemini-1.5-flash-8b-exp-0827', 'gemini-1.5-flash-8b-exp-0924', 'gemini-pro', 'gemini-1.0-pro', 'gemini-1.0-pro-001', 'gemma-3-27b-it'].includes(model)) { |
| 388 | 388 | safetySettings = GEMINI_SAFETY.map(setting => ({ ...setting, threshold: 'BLOCK_NONE' })); |
| 389 | 389 | } |
| 390 | 390 | // Interestingly, Gemini 2.0 Flash does support setting the threshold for HARM_CATEGORY_CIVIC_INTEGRITY to OFF. |