mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
chore: 🐝 Update SDK - Generate 0.9.2 (#205)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
0c735989c1
commit
0f116c9792
@@ -0,0 +1,74 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .provideroptions import ProviderOptions, ProviderOptionsTypedDict
|
||||
from openrouter.types import BaseModel, UnrecognizedStr
|
||||
from openrouter.utils import validate_open_enum
|
||||
from pydantic.functional_validators import PlainValidator
|
||||
from typing import Literal, Optional, Union
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
|
||||
|
||||
class SpeechRequestProviderTypedDict(TypedDict):
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
|
||||
options: NotRequired[ProviderOptionsTypedDict]
|
||||
r"""Provider-specific options keyed by provider slug. The options for the matched provider are spread into the upstream request body."""
|
||||
|
||||
|
||||
class SpeechRequestProvider(BaseModel):
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
|
||||
options: Optional[ProviderOptions] = None
|
||||
r"""Provider-specific options keyed by provider slug. The options for the matched provider are spread into the upstream request body."""
|
||||
|
||||
|
||||
ResponseFormatEnum = Union[
|
||||
Literal[
|
||||
"mp3",
|
||||
"pcm",
|
||||
],
|
||||
UnrecognizedStr,
|
||||
]
|
||||
r"""Audio output format"""
|
||||
|
||||
|
||||
class SpeechRequestTypedDict(TypedDict):
|
||||
r"""Text-to-speech request input"""
|
||||
|
||||
input: str
|
||||
r"""Text to synthesize"""
|
||||
model: str
|
||||
r"""TTS model identifier"""
|
||||
voice: str
|
||||
r"""Voice identifier (provider-specific)."""
|
||||
provider: NotRequired[SpeechRequestProviderTypedDict]
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
response_format: NotRequired[ResponseFormatEnum]
|
||||
r"""Audio output format"""
|
||||
speed: NotRequired[float]
|
||||
r"""Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers."""
|
||||
|
||||
|
||||
class SpeechRequest(BaseModel):
|
||||
r"""Text-to-speech request input"""
|
||||
|
||||
input: str
|
||||
r"""Text to synthesize"""
|
||||
|
||||
model: str
|
||||
r"""TTS model identifier"""
|
||||
|
||||
voice: str
|
||||
r"""Voice identifier (provider-specific)."""
|
||||
|
||||
provider: Optional[SpeechRequestProvider] = None
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
|
||||
response_format: Annotated[
|
||||
Optional[ResponseFormatEnum], PlainValidator(validate_open_enum(False))
|
||||
] = "pcm"
|
||||
r"""Audio output format"""
|
||||
|
||||
speed: Optional[float] = None
|
||||
r"""Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers."""
|
||||
Reference in New Issue
Block a user