diff --git a/public/instructions.md b/public/instructions.md index 48c15f8..cee0bab 100644 --- a/public/instructions.md +++ b/public/instructions.md @@ -2,7 +2,7 @@ ## You are **GPT-4**, an advanced *Large Language Model* trained by *OpenAI* -- Knowledge cutoff: 2023-12 +- Knowledge cutoff: 2023-10 - Current date: 2024-05 - Image input capabilities: **Enabled** diff --git a/public/portal.html b/public/portal.html index 509362d..516fc81 100644 --- a/public/portal.html +++ b/public/portal.html @@ -26,6 +26,7 @@ + diff --git a/public/script.js b/public/script.js index c2a89bc..adfbcc1 100644 --- a/public/script.js +++ b/public/script.js @@ -42,6 +42,7 @@ fetchConfig(); "Gemini-Pro": "gemini-pro", "Gemini-Pro-Vision": "gemini-pro-vision", "Gemini-1.5-Pro": "gemini-1.5-pro", + "Gemini-1.5-Flash": "gemini-1.5-flash", "Gemini-Ultra": "gemini-1.0-ultra", "Claude-Opus": "claude-3-opus-20240229", "Claude-Sonnet": "claude-3-sonnet-20240229", @@ -195,6 +196,7 @@ fetchConfig(); "gemini-pro": "Gemini-Pro", "gemini-pro-vision": "Gemini-Pro-Vision", "gemini-1.5-pro": "Gemini-1.5-Pro", + "gemini-1.5-flash": "Gemini-1.5-Flash", "gemini-1.0-ultra": "Gemini-Ultra", "claude-3-opus-20240229": "Claude-Opus", "claude-3-sonnet-20240229": "Claude-Sonnet", @@ -611,6 +613,7 @@ document.getElementById('model-gpt-3.5').addEventListener('mouseover', (event) = 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-1.5-flash').addEventListener('click', () => selectModel('gemini-1.5-flash')); document.getElementById('model-gemini-ultra').addEventListener('click', () => selectModel('gemini-1.0-ultra')); // Event listeners for showing Gemini model descriptions on hover diff --git a/server.js b/server.js index e478264..e7976e5 100644 --- a/server.js +++ b/server.js @@ -463,7 +463,7 @@ let thread = null; let response = ''; let initialize = true; let messages; -let modelID = 'gpt-4-turbo'; +let modelID = 'gpt-4o'; // Utility function to ensure Assistant and Thread initialization async function AssistantAndThread(modelID, systemMessage) { @@ -841,7 +841,7 @@ if (!history && (!imageParts || imageParts.length === 0)) { } // Initialize the Google model for text-and-image input - const googleModel = genAI.getGenerativeModel({ model: 'gemini-pro-vision', generationConfig: defaultConfig, safetySettings }); + const googleModel = genAI.getGenerativeModel({ model: model, generationConfig: defaultConfig, safetySettings }); console.log(googleModel); // Convert image parts to the required format using the new function // Construct file paths from received filenames and convert image parts