Skip to content

Commit

Permalink
added gemini flash
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed May 25, 2024
1 parent d6258ee commit 8b5e0e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7154,7 +7154,7 @@
function togglepalmmodel()
{
let mdlname = document.getElementById("custom_palm_model").value;
if(mdlname=="gemini-1.5-pro-latest")
if(mdlname=="gemini-1.5-pro-latest" || mdlname=="gemini-1.5-flash-latest")
{
document.getElementById("gemini_system_instruction").classList.remove("hidden");
if(localsettings.saved_palm_jailbreak=="")
Expand Down Expand Up @@ -11113,7 +11113,7 @@
};

let sysinst = document.getElementById("gemini_system_instruction").value;
if(sysinst!="" && mdlname=="gemini-1.5-pro-latest")
if(sysinst!="" && (mdlname=="gemini-1.5-pro-latest" || mdlname=="gemini-1.5-flash-latest"))
{
payload["systemInstruction"] = {
"role": "system",
Expand Down Expand Up @@ -15076,6 +15076,7 @@
<select style="padding:4px;" class="form-control" id="custom_palm_model" onchange="togglepalmmodel()">
<option value="gemini-pro" selected="selected">gemini-pro</option>
<option value="gemini-1.5-pro-latest">gemini-1.5-pro-latest</option>
<option value="gemini-1.5-flash-latest">gemini-1.5-flash-latest</option>
<option value="text-bison-001">text-bison-001</option>
</select>
<span class="color_green" style="font-weight: bold;">Please input Gemini or PaLM API Key.</span><br><br>
Expand Down

0 comments on commit 8b5e0e7

Please sign in to comment.