mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
fix: add overlay to remove nullable from pagination offset params (#121)
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import BaseModel, UnrecognizedStr
|
||||
from openrouter.utils import validate_open_enum
|
||||
from pydantic.functional_validators import PlainValidator
|
||||
from typing import Literal, Union
|
||||
from typing_extensions import Annotated, 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: Annotated[FrameType, PlainValidator(validate_open_enum(False))]
|
||||
r"""Whether this image represents the first or last frame of the video"""
|
||||
Reference in New Issue
Block a user