Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/audio_response_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/image_response_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
18 changes: 18 additions & 0 deletions google/genai/_interactions/types/video_response_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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.
"""
19 changes: 18 additions & 1 deletion google/genai/_interactions/types/video_response_format_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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.
"""
Loading