mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel
|
|
import pydantic
|
|
from typing import Literal
|
|
from typing_extensions import Annotated, TypedDict
|
|
|
|
|
|
class ChatContentAudioInputAudioTypedDict(TypedDict):
|
|
data: str
|
|
r"""Base64 encoded audio data"""
|
|
format_: str
|
|
r"""Audio format (e.g., wav, mp3, flac, m4a, ogg, aiff, aac, pcm16, pcm24). Supported formats vary by provider."""
|
|
|
|
|
|
class ChatContentAudioInputAudio(BaseModel):
|
|
data: str
|
|
r"""Base64 encoded audio data"""
|
|
|
|
format_: Annotated[str, pydantic.Field(alias="format")]
|
|
r"""Audio format (e.g., wav, mp3, flac, m4a, ogg, aiff, aac, pcm16, pcm24). Supported formats vary by provider."""
|
|
|
|
|
|
ChatContentAudioType = Literal["input_audio",]
|
|
|
|
|
|
class ChatContentAudioTypedDict(TypedDict):
|
|
r"""Audio input content part. Supported audio formats vary by provider."""
|
|
|
|
input_audio: ChatContentAudioInputAudioTypedDict
|
|
type: ChatContentAudioType
|
|
|
|
|
|
class ChatContentAudio(BaseModel):
|
|
r"""Audio input content part. Supported audio formats vary by provider."""
|
|
|
|
input_audio: ChatContentAudioInputAudio
|
|
|
|
type: ChatContentAudioType
|
|
|
|
|
|
try:
|
|
ChatContentAudioInputAudio.model_rebuild()
|
|
except NameError:
|
|
pass
|