From 31943dbac4bd7679ec8bfe6351a712802b0f0064 Mon Sep 17 00:00:00 2001 From: Jason Dai Date: Tue, 21 Apr 2026 12:23:17 -0700 Subject: [PATCH] chore: GenAI Client - Update example Gemini model name in error message. PiperOrigin-RevId: 903364953 --- vertexai/_genai/_evals_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertexai/_genai/_evals_common.py b/vertexai/_genai/_evals_common.py index 4bbd3d35b9..6aff133733 100644 --- a/vertexai/_genai/_evals_common.py +++ b/vertexai/_genai/_evals_common.py @@ -838,7 +838,7 @@ def _run_inference_internal( # Unsupported model string raise TypeError( f"Unsupported string model name: {model}. Expecting a Gemini model" - " name (e.g., 'gemini-1.5-pro', 'projects/.../models/...') or a" + " name (e.g., 'gemini-2.5-pro', 'projects/.../models/...') or a" " LiteLLM supported model name (e.g., 'openai/gpt-4o')." " If using a third-party model via LiteLLM, ensure the" " necessary environment variables are set (e.g., for OpenAI:"