mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
58 lines
1.3 KiB
Python
58 lines
1.3 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel
|
|
from typing import Optional
|
|
from typing_extensions import NotRequired, TypedDict
|
|
|
|
|
|
class PublicPricingTypedDict(TypedDict):
|
|
r"""Pricing information for the model"""
|
|
|
|
completion: str
|
|
prompt: str
|
|
audio: NotRequired[str]
|
|
audio_output: NotRequired[str]
|
|
discount: NotRequired[float]
|
|
image: NotRequired[str]
|
|
image_output: NotRequired[str]
|
|
image_token: NotRequired[str]
|
|
input_audio_cache: NotRequired[str]
|
|
input_cache_read: NotRequired[str]
|
|
input_cache_write: NotRequired[str]
|
|
internal_reasoning: NotRequired[str]
|
|
request: NotRequired[str]
|
|
web_search: NotRequired[str]
|
|
|
|
|
|
class PublicPricing(BaseModel):
|
|
r"""Pricing information for the model"""
|
|
|
|
completion: str
|
|
|
|
prompt: str
|
|
|
|
audio: Optional[str] = None
|
|
|
|
audio_output: Optional[str] = None
|
|
|
|
discount: Optional[float] = None
|
|
|
|
image: Optional[str] = None
|
|
|
|
image_output: Optional[str] = None
|
|
|
|
image_token: Optional[str] = None
|
|
|
|
input_audio_cache: Optional[str] = None
|
|
|
|
input_cache_read: Optional[str] = None
|
|
|
|
input_cache_write: Optional[str] = None
|
|
|
|
internal_reasoning: Optional[str] = None
|
|
|
|
request: Optional[str] = None
|
|
|
|
web_search: Optional[str] = None
|