Skip to content

Commit df7269e

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: audio_timestamp is supported only for some of the models
PiperOrigin-RevId: 691168285
1 parent 9e01a84 commit df7269e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/system/vertexai/test_generative_models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
GEMINI_15_MODEL_NAME = "gemini-1.5-pro-preview-0409"
4242
GEMINI_15_PRO_MODEL_NAME = "gemini-1.5-pro-001"
4343
SMART_ROUTER_NAME = "smart-router-001"
44+
GEMINI_15_PRO_2_MODEL_NAME = "gemini-1.5-pro-002"
4445

4546
STAGING_API_ENDPOINT = "STAGING_ENDPOINT"
4647
PROD_API_ENDPOINT = "PROD_ENDPOINT"
@@ -413,7 +414,7 @@ def test_generate_content_from_text_and_remote_video(
413414
def test_generate_content_from_text_and_remote_audio(
414415
self, api_endpoint_env_name, api_transport
415416
):
416-
vision_model = generative_models.GenerativeModel(GEMINI_VISION_MODEL_NAME)
417+
vision_model = generative_models.GenerativeModel(GEMINI_15_PRO_2_MODEL_NAME)
417418
audio_part = generative_models.Part.from_uri(
418419
uri="gs://cloud-samples-data/audio/speech_16k.wav",
419420
mime_type="audio/wav",

0 commit comments

Comments
 (0)