From 40eeffe089816915c6e7f4e760c7fcbb154a1325 Mon Sep 17 00:00:00 2001 From: Chesars Date: Sat, 25 Apr 2026 16:09:59 -0300 Subject: [PATCH] test(vertex): use valid dimension (128) for multimodalembedding live test dimensions=1 was silently dropped before #24415 wired the param through to Vertex. Now that it's forwarded, Vertex rejects it (valid values: 128, 256, 512, 1408). Switch the test to a valid dimension. --- tests/local_testing/test_amazing_vertex_completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/local_testing/test_amazing_vertex_completion.py b/tests/local_testing/test_amazing_vertex_completion.py index a7128e30e57..9070a9feab5 100644 --- a/tests/local_testing/test_amazing_vertex_completion.py +++ b/tests/local_testing/test_amazing_vertex_completion.py @@ -2094,7 +2094,7 @@ def test_vertexai_multimodalembedding_embedding_latest(): response = embedding( model="vertex_ai/multimodalembedding@001", input=["hi"], - dimensions=1, + dimensions=128, auto_truncate=True, task_type="RETRIEVAL_QUERY", )