mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
feat: regenerate SDK with updated OpenAPI spec
Speakeasy regeneration with latest schema changes including type renames and new server tool models.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
"""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
|
||||
|
||||
|
||||
ChatContentAudioType = Literal["input_audio",]
|
||||
|
||||
|
||||
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."""
|
||||
|
||||
|
||||
class ChatContentAudioTypedDict(TypedDict):
|
||||
r"""Audio input content part. Supported audio formats vary by provider."""
|
||||
|
||||
type: ChatContentAudioType
|
||||
input_audio: ChatContentAudioInputAudioTypedDict
|
||||
|
||||
|
||||
class ChatContentAudio(BaseModel):
|
||||
r"""Audio input content part. Supported audio formats vary by provider."""
|
||||
|
||||
type: ChatContentAudioType
|
||||
|
||||
input_audio: ChatContentAudioInputAudio
|
||||
Reference in New Issue
Block a user