From 0ef8ee8cc0f0eddf403458245c036ff1479edf89 Mon Sep 17 00:00:00 2001 From: Slipstream Date: Fri, 6 Jun 2025 21:13:57 -0600 Subject: [PATCH] Updates Gemini Pro model version Updates the Gemini 2.5 Pro model from `gemini-2.5-pro-preview-05-06` to `gemini-2.5-pro-preview-06-05` across configurations. This ensures the use of the more recent preview version of the model. --- cogs/ai_code_agent_cog.py | 4 ++-- gurt/commands.py | 2 +- gurt/config.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/ai_code_agent_cog.py b/cogs/ai_code_agent_cog.py index 6991573..a0d58ab 100644 --- a/cogs/ai_code_agent_cog.py +++ b/cogs/ai_code_agent_cog.py @@ -389,10 +389,10 @@ class AICodeAgentCog(commands.Cog): # AI Model Configuration self._ai_model: str = "gemini-2.5-flash-preview-05-20" # Default model self._available_models: Dict[str, str] = { - "pro": "gemini-2.5-pro-preview-05-06", # Assuming this is the intended Pro model + "pro": "gemini-2.5-pro-preview-06-05", # Assuming this is the intended Pro model "flash": "gemini-2.5-flash-preview-05-20", } - # User mentioned "gemini-2.5-pro-preview-05-06" and "gemini-2.5-flash-preview-05-20" + # User mentioned "gemini-2.5-pro-preview-06-05" and "gemini-2.5-flash-preview-05-20" # Updating to reflect those if they are the correct ones, otherwise the 1.5 versions are common. # For now, sticking to what was in the plan based on common Gemini models. # If 2.5 models are indeed what's intended and available, these strings should be updated. diff --git a/gurt/commands.py b/gurt/commands.py index 5d56035..111fdfc 100644 --- a/gurt/commands.py +++ b/gurt/commands.py @@ -17,7 +17,7 @@ try: except (ImportError, AttributeError): AVAILABLE_AI_MODELS = { "google/gemini-2.5-flash-preview-05-20": "Gemini 2.5 Flash Preview", - "google/gemini-2.5-pro-preview-05-06": "Gemini 2.5 Pro Preview", + "google/gemini-2.5-pro-preview-06-05": "Gemini 2.5 Pro Preview", "claude-sonnet-4@20250514": "Claude Sonnet 4", "llama-4-maverick-17b-128e-instruct-maas": "Llama 4 Maverick Instruct", "google/gemini-2.0-flash-001": "Gemini 2.0 Flash", diff --git a/gurt/config.py b/gurt/config.py index 45d8120..2083315 100644 --- a/gurt/config.py +++ b/gurt/config.py @@ -41,7 +41,7 @@ EMOJI_STICKER_DESCRIPTION_MODEL = ( # Available AI Models for dynamic switching AVAILABLE_AI_MODELS = { "google/gemini-2.5-flash-preview-05-20": "Gemini 2.5 Flash Preview", - "google/gemini-2.5-pro-preview-05-06": "Gemini 2.5 Pro Preview", + "google/gemini-2.5-pro-preview-06-05": "Gemini 2.5 Pro Preview", "claude-sonnet-4@20250514": "Claude Sonnet 4", "llama-4-maverick-17b-128e-instruct-maas": "Llama 4 Maverick Instruct", "google/gemini-2.0-flash-001": "Gemini 2.0 Flash",