Skip to content

Commit

Permalink
Fixed Gemini Model Alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaki-1052 committed Feb 27, 2024
1 parent a739f9d commit e020bda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/portal.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<button id="model-gpt-4-32k" data-value="gpt-4-32k">GPT-4-32k</button>
<button id="model-gpt-4-turbo" data-value="gpt-4-turbo-preview">GPT-4-Turbo</button>
<button id="model-gpt-3.5" data-value="gpt-3.5-turbo-0125">GPT-3.5-Turbo</button>
<button id="model-gemini-pro" data-value="gemini-1.0-pro">Gemini Pro</button>
<button id="model-gemini-pro" data-value="gemini-pro">Gemini Pro</button>
<button id="model-gemini-pro-vision" data-value="gemini-pro-vision">Gemini Pro Vision</button>
<button id="model-gemini-1.5-pro" data-value="gemini-1.5-pro">Gemini-1.5 Pro</button>
<button id="model-gemini-ultra" data-value="gemini-1.0-ultra">Gemini Ultra</button>
Expand Down
10 changes: 5 additions & 5 deletions public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fetchConfig();
"GPT-4-32k": "gpt-4-32k",
"GPT-4-Turbo": "gpt-4-turbo-preview",
"GPT-3.5-Turbo": "gpt-3.5-turbo-0125",
"Gemini-Pro": "gemini-1.0-pro",
"Gemini-Pro": "gemini-pro",
"Gemini-Pro-Vision": "gemini-pro-vision",
"Gemini-1.5-Pro": "gemini-1.5-pro",
"Gemini-Ultra": "gemini-1.0-ultra",
Expand All @@ -53,7 +53,7 @@ fetchConfig();
"gpt-4-32k": "GPT-4-32k",
"gpt-4-turbo-preview": "GPT-4-Turbo",
"gpt-3.5-turbo-0125": "GPT-3.5-Turbo",
"gemini-1.0-pro": "Gemini-Pro",
"gemini-pro": "Gemini-Pro",
"gemini-pro-vision": "Gemini-Pro-Vision",
"gemini-1.5-pro": "Gemini-1.5-Pro",
"gemini-1.0-ultra": "Gemini-Ultra",
Expand Down Expand Up @@ -223,7 +223,7 @@ const selectedModelDisplayName = document.getElementById('selected-model').textC
"gpt-4-32k": "GPT-4-32k: Longer Context Window — Higher Price",
"gpt-4-turbo-preview": "GPT-4-Turbo: ChatGPT-Plus Model — 128k Tokens",
"gpt-3.5-turbo-0125": "GPT-3.5-Turbo: Cheapest Option Available",
"gemini-1.0-pro": "Gemini-Pro: Google Bard Model — 3.5 Equivalent",
"gemini-pro": "Gemini-Pro: Google Bard Model — 3.5 Equivalent",
"gemini-pro-vision": "Gemini-Vision: View Images — One-Time Use",
"gemini-1.5-pro": "Gemini-Pro-1.5: Early Access — 1 Million Tokens",
"gemini-1.0-ultra": "Gemini-Ultra: Largest Google Model — Unreleased",
Expand Down Expand Up @@ -302,13 +302,13 @@ document.getElementById('model-gpt-4-turbo').addEventListener('mouseover', (even
document.getElementById('model-gpt-3.5').addEventListener('mouseover', (event) => showCustomTooltip(modelDescriptions["gpt-3.5-turbo-0125"], event.currentTarget));

// Event listeners for selecting Gemini models
document.getElementById('model-gemini-pro').addEventListener('click', () => selectModel('gemini-1.0-pro'));
document.getElementById('model-gemini-pro').addEventListener('click', () => selectModel('gemini-pro'));
document.getElementById('model-gemini-pro-vision').addEventListener('click', () => selectModel('gemini-pro-vision'));
document.getElementById('model-gemini-1.5-pro').addEventListener('click', () => selectModel('gemini-1.5-pro'));
document.getElementById('model-gemini-ultra').addEventListener('click', () => selectModel('gemini-1.0-ultra'));

// Event listeners for showing Gemini model descriptions on hover
document.getElementById('model-gemini-pro').addEventListener('mouseover', (event) => showCustomTooltip(modelDescriptions["gemini-1.0-pro"], event.currentTarget));
document.getElementById('model-gemini-pro').addEventListener('mouseover', (event) => showCustomTooltip(modelDescriptions["gemini-pro"], event.currentTarget));
document.getElementById('model-gemini-pro-vision').addEventListener('mouseover', (event) => showCustomTooltip(modelDescriptions["gemini-pro-vision"], event.currentTarget));
document.getElementById('model-gemini-1.5-pro').addEventListener('mouseover', (event) => showCustomTooltip(modelDescriptions["gemini-1.5-pro"], event.currentTarget));
document.getElementById('model-gemini-ultra').addEventListener('mouseover', (event) => showCustomTooltip(modelDescriptions["gemini-1.0-ultra"], event.currentTarget));
Expand Down

0 comments on commit e020bda

Please sign in to comment.