Content-Length: 272880 | pFad | https://github.com/googleapis/python-aiplatform/commit/df7269eebfab8fa41b18e718b9e70097bdec1201

28 fix: audio_timestamp is supported only for some of the models · googleapis/python-aiplatform@df7269e · GitHub
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

Lines changed: 2 additions & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-aiplatform/commit/df7269eebfab8fa41b18e718b9e70097bdec1201

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy