Supports GEMINI EXP
| @@ -2979,6 +2979,7 @@ | |||
| 2979 | <option value="chat-bison-001">PaLM 2 Chat (Legacy)</option> | 2979 | <option value="chat-bison-001">PaLM 2 Chat (Legacy)</option> |
| 2980 | </optgroup> | 2980 | </optgroup> |
| 2981 | <optgroup label="Subversions"> | 2981 | <optgroup label="Subversions"> |
| 2982 | <option value="gemini-exp-1114">Gemini Experimental 2024-11-14</option> | ||
| 2982 | <option value="gemini-1.5-pro-exp-0801">Gemini 1.5 Pro Experiment 2024-08-01</option> | 2983 | <option value="gemini-1.5-pro-exp-0801">Gemini 1.5 Pro Experiment 2024-08-01</option> |
| 2983 | <option value="gemini-1.5-pro-exp-0827">Gemini 1.5 Pro Experiment 2024-08-27</option> | 2984 | <option value="gemini-1.5-pro-exp-0827">Gemini 1.5 Pro Experiment 2024-08-27</option> |
| 2984 | <option value="gemini-1.5-pro-latest">Gemini 1.5 Pro [latest]</option> | 2985 | <option value="gemini-1.5-pro-latest">Gemini 1.5 Pro [latest]</option> |
| @@ -58,6 +58,7 @@ | |||
| 58 | <option data-type="google" value="gemini-1.5-flash-exp-0827">gemini-1.5-flash-exp-0827</option> | 58 | <option data-type="google" value="gemini-1.5-flash-exp-0827">gemini-1.5-flash-exp-0827</option> |
| 59 | <option data-type="google" value="gemini-1.5-flash-8b-exp-0827">gemini-1.5-flash-8b-exp-0827</option> | 59 | <option data-type="google" value="gemini-1.5-flash-8b-exp-0827">gemini-1.5-flash-8b-exp-0827</option> |
| 60 | <option data-type="google" value="gemini-1.5-flash-8b-exp-0924">gemini-1.5-flash-8b-exp-0924</option> | 60 | <option data-type="google" value="gemini-1.5-flash-8b-exp-0924">gemini-1.5-flash-8b-exp-0924</option> |
| 61 | <option data-type="google" value="gemini-exp-1114">gemini-exp-1114</option> | ||
| 61 | <option data-type="google" value="gemini-1.5-pro">gemini-1.5-pro</option> | 62 | <option data-type="google" value="gemini-1.5-pro">gemini-1.5-pro</option> |
| 62 | <option data-type="google" value="gemini-1.5-pro-latest">gemini-1.5-pro-latest</option> | 63 | <option data-type="google" value="gemini-1.5-pro-latest">gemini-1.5-pro-latest</option> |
| 63 | <option data-type="google" value="gemini-1.5-pro-001">gemini-1.5-pro-001</option> | 64 | <option data-type="google" value="gemini-1.5-pro-001">gemini-1.5-pro-001</option> |
| @@ -4056,6 +4056,8 @@ async function onModelChange() { | |||
| 4056 | if (oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE) { | 4056 | if (oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE) { |
| 4057 | if (oai_settings.max_context_unlocked) { | 4057 | if (oai_settings.max_context_unlocked) { |
| 4058 | $('#openai_max_context').attr('max', max_2mil); | 4058 | $('#openai_max_context').attr('max', max_2mil); |
| 4059 | } else if (value.match('gemini-exp-1114')){ | ||
| 4060 | $('#openai_max_context').attr('max', max_32k); | ||
| 4059 | } else if (value.includes('gemini-1.5-pro')) { | 4061 | } else if (value.includes('gemini-1.5-pro')) { |
| 4060 | $('#openai_max_context').attr('max', max_2mil); | 4062 | $('#openai_max_context').attr('max', max_2mil); |
| 4061 | } else if (value.includes('gemini-1.5-flash')) { | 4063 | } else if (value.includes('gemini-1.5-flash')) { |
| @@ -4742,6 +4744,7 @@ export function isImageInliningSupported() { | |||
| 4742 | 'gemini-1.5-flash-8b', | 4744 | 'gemini-1.5-flash-8b', |
| 4743 | 'gemini-1.5-flash-8b-exp-0827', | 4745 | 'gemini-1.5-flash-8b-exp-0827', |
| 4744 | 'gemini-1.5-flash-8b-exp-0924', | 4746 | 'gemini-1.5-flash-8b-exp-0924', |
| 4747 | 'gemini-exp-1114', | ||
| 4745 | 'gemini-1.0-pro-vision-latest', | 4748 | 'gemini-1.0-pro-vision-latest', |
| 4746 | 'gemini-1.5-pro', | 4749 | 'gemini-1.5-pro', |
| 4747 | 'gemini-1.5-pro-latest', | 4750 | 'gemini-1.5-pro-latest', |
| @@ -267,7 +267,7 @@ async function sendMakerSuiteRequest(request, response) { | |||
| 267 | delete generationConfig.stopSequences; | 267 | delete generationConfig.stopSequences; |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | const should_use_system_prompt = (model.includes('gemini-1.5-flash') || model.includes('gemini-1.5-pro')) && request.body.use_makersuite_sysprompt; | 270 | const should_use_system_prompt = (model.includes('gemini-1.5-flash') || model.includes('gemini-1.5-pro') || model.match('gemini-exp-1114')) && request.body.use_makersuite_sysprompt; |
| 271 | const prompt = convertGooglePrompt(request.body.messages, model, should_use_system_prompt, request.body.char_name, request.body.user_name); | 271 | const prompt = convertGooglePrompt(request.body.messages, model, should_use_system_prompt, request.body.char_name, request.body.user_name); |
| 272 | let body = { | 272 | let body = { |
| 273 | contents: prompt.contents, | 273 | contents: prompt.contents, |
| @@ -346,6 +346,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt = false, charN | |||
| 346 | 'gemini-1.5-flash-8b', | 346 | 'gemini-1.5-flash-8b', |
| 347 | 'gemini-1.5-flash-8b-exp-0827', | 347 | 'gemini-1.5-flash-8b-exp-0827', |
| 348 | 'gemini-1.5-flash-8b-exp-0924', | 348 | 'gemini-1.5-flash-8b-exp-0924', |
| 349 | 'gemini-exp-1114', | ||
| 349 | 'gemini-1.5-pro', | 350 | 'gemini-1.5-pro', |
| 350 | 'gemini-1.5-pro-latest', | 351 | 'gemini-1.5-pro-latest', |
| 351 | 'gemini-1.5-pro-001', | 352 | 'gemini-1.5-pro-001', |