Files
k8sgpt/pkg/ai
Anas Khan 60a9794363 fix: correct Vertex AI legacy model ids by removing stray asterisk (#1684)
The two Vertex AI "Legacy Stable Model" constants carried a trailing '*'
that leaked in from the footnote marker in Google's model-versions table:
ModelGeminiProV1_5 was "gemini-1.5-pro-002*" and ModelGeminiFlashV1_5 was
"gemini-1.5-flash-002*". The '*' is not part of the model id.

GetVertexAIModelOrDefault does an exact-match lookup and otherwise silently
returns VERTEXAI_MODELS[0]. Because VERTEXAI_MODELS held the asterisked
values, a user who correctly configured --model gemini-1.5-pro-002 failed
the exact match and was silently switched to the default model, so the two
legacy models could never be selected.

Remove the trailing '*' from both literals and add a unit test covering the
model and region resolvers.

Closes #1516

Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
2026-07-07 12:36:48 +01:00
..
2025-06-20 16:30:50 +01:00
2024-01-14 20:22:00 +00:00
2026-01-05 12:05:17 +00:00
2024-07-03 21:16:06 +01:00