mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +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,56 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .provideroptions import ProviderOptions, ProviderOptionsTypedDict
|
||||
from .sttinputaudio import STTInputAudio, STTInputAudioTypedDict
|
||||
from openrouter.types import BaseModel
|
||||
from typing import Optional
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
class STTRequestProviderTypedDict(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 STTRequestProvider(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."""
|
||||
|
||||
|
||||
class STTRequestTypedDict(TypedDict):
|
||||
r"""Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio."""
|
||||
|
||||
input_audio: STTInputAudioTypedDict
|
||||
r"""Base64-encoded audio to transcribe"""
|
||||
model: str
|
||||
r"""STT model identifier"""
|
||||
language: NotRequired[str]
|
||||
r"""ISO-639-1 language code (e.g., \"en\", \"ja\"). Auto-detected if omitted."""
|
||||
provider: NotRequired[STTRequestProviderTypedDict]
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
temperature: NotRequired[float]
|
||||
r"""Sampling temperature for transcription"""
|
||||
|
||||
|
||||
class STTRequest(BaseModel):
|
||||
r"""Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio."""
|
||||
|
||||
input_audio: STTInputAudio
|
||||
r"""Base64-encoded audio to transcribe"""
|
||||
|
||||
model: str
|
||||
r"""STT model identifier"""
|
||||
|
||||
language: Optional[str] = None
|
||||
r"""ISO-639-1 language code (e.g., \"en\", \"ja\"). Auto-detected if omitted."""
|
||||
|
||||
provider: Optional[STTRequestProvider] = None
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
|
||||
temperature: Optional[float] = None
|
||||
r"""Sampling temperature for transcription"""
|
||||
Reference in New Issue
Block a user