mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
* `open_router.beta.responses.send()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `open_router.presets.create_presets_responses()`: `request` **Changed** **Breaking** ⚠️ * `open_router.presets.create_presets_chat_completions()`: `request` **Changed** **Breaking** ⚠️ * `open_router.chat.send()`: `request` **Changed** **Breaking** ⚠️ * `open_router.workspaces.set_budget()`: **Added** * `open_router.o_auth.create_auth_code()`: * `request.workspace_id` **Added** * `error.status[403]` **Added** * `open_router.files.download()`: **Added** * `open_router.models.get()`: **Added** * `open_router.workspaces.list_budgets()`: **Added** * `open_router.workspaces.delete_budget()`: **Added** * `open_router.datasets.get_benchmarks_artificial_analysis()`: **Added** * `open_router.beta.analytics.query_analytics()`: `response.data.warnings` **Added** * `open_router.files.delete()`: **Added** * `open_router.files.retrieve()`: **Added** * `open_router.files.upload()`: **Added** * `open_router.embeddings.list_models()`: `response.data.[].benchmarks` **Added** * `open_router.models.list()`: * `request` **Changed** * `response.data.[].benchmarks` **Added** * `open_router.models.list_for_user()`: `response.data.[].benchmarks` **Added** * `open_router.files.list()`: **Added** * `open_router.presets.create_presets_messages()`: `request` **Changed** * `open_router.datasets.get_benchmarks_design_arena()`: **Added**
57 lines
2.1 KiB
Python
57 lines
2.1 KiB
Python
"""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. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped."""
|
|
|
|
|
|
class STTRequestProvider(BaseModel):
|
|
r"""Provider-specific passthrough configuration"""
|
|
|
|
options: Optional[ProviderOptions] = None
|
|
r"""Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped."""
|
|
|
|
|
|
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"""
|