mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
44 lines
983 B
Python
44 lines
983 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel, UnrecognizedStr
|
|
from typing import Literal, Union
|
|
from typing_extensions import TypedDict
|
|
|
|
|
|
class FrameImageImageURLTypedDict(TypedDict):
|
|
url: str
|
|
|
|
|
|
class FrameImageImageURL(BaseModel):
|
|
url: str
|
|
|
|
|
|
FrameImageType = Literal["image_url",]
|
|
|
|
|
|
FrameType = Union[
|
|
Literal[
|
|
"first_frame",
|
|
"last_frame",
|
|
],
|
|
UnrecognizedStr,
|
|
]
|
|
r"""Whether this image represents the first or last frame of the video"""
|
|
|
|
|
|
class FrameImageTypedDict(TypedDict):
|
|
image_url: FrameImageImageURLTypedDict
|
|
type: FrameImageType
|
|
frame_type: FrameType
|
|
r"""Whether this image represents the first or last frame of the video"""
|
|
|
|
|
|
class FrameImage(BaseModel):
|
|
image_url: FrameImageImageURL
|
|
|
|
type: FrameImageType
|
|
|
|
frame_type: FrameType
|
|
r"""Whether this image represents the first or last frame of the video"""
|