Merge pull request #2945 from M0ch0/staging Support new gemini-1.5-flash-8B model, and flash-002's context reduction.
Signed| @@ -2888,6 +2888,7 @@ | ||
| 2888 | 2888 | <option value="gemini-1.5-pro-latest">Gemini 1.5 Pro [latest]</option> |
| 2889 | 2889 | <option value="gemini-1.5-pro-001">Gemini 1.5 Pro [001]</option> |
| 2890 | 2890 | <option value="gemini-1.5-pro-002">Gemini 1.5 Pro [002]</option> |
| 2891 | + <option value="gemini-1.5-flash-8b">Gemini 1.5 Flash 8B</option> | |
| 2891 | 2892 | <option value="gemini-1.5-flash-exp-0827">Gemini 1.5 Flash Experiment 2024-08-27</option> |
| 2892 | 2893 | <option value="gemini-1.5-flash-8b-exp-0827">Gemini 1.5 Flash 8B Experiment 2024-08-27</option> |
| 2893 | 2894 | <option value="gemini-1.5-flash-8b-exp-0924">Gemini 1.5 Flash 8B Experiment 2024-09-24</option> |
| @@ -4009,8 +4009,6 @@ async function onModelChange() { | ||
| 4009 | 4009 | $('#openai_max_context').attr('max', max_2mil); |
| 4010 | 4010 | } else if (value.includes('gemini-1.5-pro')) { |
| 4011 | 4011 | $('#openai_max_context').attr('max', max_2mil); |
| 4012 | - } else if (value.match('gemini-1.5-flash-002')) { | |
| 4013 | - $('#openai_max_context').attr('max', max_2mil); | |
| 4014 | 4012 | } else if (value.includes('gemini-1.5-flash')) { |
| 4015 | 4013 | $('#openai_max_context').attr('max', max_1mil); |
| 4016 | 4014 | } else if (value.includes('gemini-1.0-pro-vision') || value === 'gemini-pro-vision') { |
| @@ -4662,6 +4660,7 @@ export function isImageInliningSupported() { | ||
| 4662 | 4660 | 'gemini-1.5-flash-001', |
| 4663 | 4661 | 'gemini-1.5-flash-002', |
| 4664 | 4662 | 'gemini-1.5-flash-exp-0827', |
| 4663 | + 'gemini-1.5-flash-8b', | |
| 4665 | 4664 | 'gemini-1.5-flash-8b-exp-0827', |
| 4666 | 4665 | 'gemini-1.5-flash-8b-exp-0924', |
| 4667 | 4666 | 'gemini-1.0-pro-vision-latest', |
| @@ -269,6 +269,7 @@ function convertGooglePrompt(messages, model, useSysPrompt = false, charName = ' | ||
| 269 | 269 | 'gemini-1.5-flash-001', |
| 270 | 270 | 'gemini-1.5-flash-002', |
| 271 | 271 | 'gemini-1.5-flash-exp-0827', |
| 272 | + 'gemini-1.5-flash-8b', | |
| 272 | 273 | 'gemini-1.5-flash-8b-exp-0827', |
| 273 | 274 | 'gemini-1.5-flash-8b-exp-0924', |
| 274 | 275 | 'gemini-1.5-pro', |