diff --git a/google/genai/_interactions/types/audio_response_format.py b/google/genai/_interactions/types/audio_response_format.py index 5d212d1d9..80dccaf0d 100644 --- a/google/genai/_interactions/types/audio_response_format.py +++ b/google/genai/_interactions/types/audio_response_format.py @@ -34,7 +34,7 @@ class AudioResponseFormat(BaseModel): Only applicable for compressed formats (MP3, Opus). """ - delivery: Optional[Literal["inline", "url"]] = None + delivery: Optional[Literal["inline", "uri"]] = None """The delivery mode for the audio output.""" mime_type: Optional[ diff --git a/google/genai/_interactions/types/audio_response_format_param.py b/google/genai/_interactions/types/audio_response_format_param.py index 484f25e68..0664d03c8 100644 --- a/google/genai/_interactions/types/audio_response_format_param.py +++ b/google/genai/_interactions/types/audio_response_format_param.py @@ -33,7 +33,7 @@ class AudioResponseFormatParam(TypedDict, total=False): Only applicable for compressed formats (MP3, Opus). """ - delivery: Literal["inline", "url"] + delivery: Literal["inline", "uri"] """The delivery mode for the audio output.""" mime_type: Literal["audio/mp3", "audio/ogg_opus", "audio/l16", "audio/wav", "audio/alaw", "audio/mulaw"] diff --git a/google/genai/_interactions/types/image_response_format.py b/google/genai/_interactions/types/image_response_format.py index 4fdcdd51f..27ce056fd 100644 --- a/google/genai/_interactions/types/image_response_format.py +++ b/google/genai/_interactions/types/image_response_format.py @@ -33,7 +33,7 @@ class ImageResponseFormat(BaseModel): ] = None """The aspect ratio for the image output.""" - delivery: Optional[Literal["inline", "url"]] = None + delivery: Optional[Literal["inline", "uri"]] = None """The delivery mode for the image output.""" image_size: Optional[Literal["512", "1K", "2K", "4K"]] = None diff --git a/google/genai/_interactions/types/image_response_format_param.py b/google/genai/_interactions/types/image_response_format_param.py index cd893f76b..149b6b582 100644 --- a/google/genai/_interactions/types/image_response_format_param.py +++ b/google/genai/_interactions/types/image_response_format_param.py @@ -32,7 +32,7 @@ class ImageResponseFormatParam(TypedDict, total=False): ] """The aspect ratio for the image output.""" - delivery: Literal["inline", "url"] + delivery: Literal["inline", "uri"] """The delivery mode for the image output.""" image_size: Literal["512", "1K", "2K", "4K"] diff --git a/google/genai/_interactions/types/video_response_format.py b/google/genai/_interactions/types/video_response_format.py index 3729a5007..fc18b745a 100644 --- a/google/genai/_interactions/types/video_response_format.py +++ b/google/genai/_interactions/types/video_response_format.py @@ -15,8 +15,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Optional from typing_extensions import Literal +from pydantic import Field as FieldInfo + from .._models import BaseModel __all__ = ["VideoResponseFormat"] @@ -26,3 +29,18 @@ class VideoResponseFormat(BaseModel): """Configuration for video output format.""" type: Literal["video"] + + aspect_ratio: Optional[Literal["16:9", "9:16"]] = FieldInfo(alias="aspectRatio", default=None) + """The aspect ratio for the video output.""" + + delivery: Optional[Literal["inline", "uri"]] = None + """The delivery mode for the video output.""" + + duration: Optional[str] = None + """The duration for the video output.""" + + gcs_uri: Optional[str] = FieldInfo(alias="gcsUri", default=None) + """The GCS URI to store the video output. + + Required for Vertex if delivery mode is URI. + """ diff --git a/google/genai/_interactions/types/video_response_format_param.py b/google/genai/_interactions/types/video_response_format_param.py index f53b1643f..71b74d9d0 100644 --- a/google/genai/_interactions/types/video_response_format_param.py +++ b/google/genai/_interactions/types/video_response_format_param.py @@ -17,7 +17,9 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import Literal, Required, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["VideoResponseFormatParam"] @@ -26,3 +28,18 @@ class VideoResponseFormatParam(TypedDict, total=False): """Configuration for video output format.""" type: Required[Literal["video"]] + + aspect_ratio: Annotated[Literal["16:9", "9:16"], PropertyInfo(alias="aspectRatio")] + """The aspect ratio for the video output.""" + + delivery: Literal["inline", "uri"] + """The delivery mode for the video output.""" + + duration: str + """The duration for the video output.""" + + gcs_uri: Annotated[str, PropertyInfo(alias="gcsUri")] + """The GCS URI to store the video output. + + Required for Vertex if delivery mode is URI. + """