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 (spec change merged) 0.10.2 (#368)
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
f8e8ab669d
commit
08e796401a
@@ -52,26 +52,34 @@ class MaxPriceTypedDict(TypedDict):
|
||||
r"""The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion."""
|
||||
|
||||
audio: NotRequired[str]
|
||||
r"""Maximum price in USD per audio unit"""
|
||||
completion: NotRequired[str]
|
||||
r"""Maximum price in USD per million completion tokens"""
|
||||
image: NotRequired[str]
|
||||
r"""Maximum price in USD per image"""
|
||||
prompt: NotRequired[str]
|
||||
r"""Price per million prompt tokens"""
|
||||
r"""Maximum price in USD per million prompt tokens"""
|
||||
request: NotRequired[str]
|
||||
r"""Maximum price in USD per request"""
|
||||
|
||||
|
||||
class MaxPrice(BaseModel):
|
||||
r"""The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion."""
|
||||
|
||||
audio: Optional[str] = None
|
||||
r"""Maximum price in USD per audio unit"""
|
||||
|
||||
completion: Optional[str] = None
|
||||
r"""Maximum price in USD per million completion tokens"""
|
||||
|
||||
image: Optional[str] = None
|
||||
r"""Maximum price in USD per image"""
|
||||
|
||||
prompt: Optional[str] = None
|
||||
r"""Price per million prompt tokens"""
|
||||
r"""Maximum price in USD per million prompt tokens"""
|
||||
|
||||
request: Optional[str] = None
|
||||
r"""Maximum price in USD per request"""
|
||||
|
||||
|
||||
OnlyTypedDict = TypeAliasType("OnlyTypedDict", Union[ProviderName, str])
|
||||
|
||||
@@ -15,49 +15,77 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
|
||||
class PricingTypedDict(TypedDict):
|
||||
completion: str
|
||||
r"""Price in USD per token for completion (output) generation"""
|
||||
prompt: str
|
||||
r"""Price in USD per token for prompt (input) processing"""
|
||||
audio: NotRequired[str]
|
||||
r"""Price in USD per audio input token"""
|
||||
audio_output: NotRequired[str]
|
||||
r"""Price in USD per audio output token"""
|
||||
discount: NotRequired[float]
|
||||
r"""Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)"""
|
||||
image: NotRequired[str]
|
||||
r"""Price in USD per input image"""
|
||||
image_output: NotRequired[str]
|
||||
r"""Price in USD per output image"""
|
||||
image_token: NotRequired[str]
|
||||
r"""Price in USD per image token"""
|
||||
input_audio_cache: NotRequired[str]
|
||||
r"""Price in USD per cached audio input token"""
|
||||
input_cache_read: NotRequired[str]
|
||||
r"""Price in USD per cached input token (read)"""
|
||||
input_cache_write: NotRequired[str]
|
||||
r"""Price in USD per cached input token (write)"""
|
||||
internal_reasoning: NotRequired[str]
|
||||
r"""Price in USD per internal reasoning token"""
|
||||
request: NotRequired[str]
|
||||
r"""Price in USD per request"""
|
||||
web_search: NotRequired[str]
|
||||
r"""Price in USD per web search"""
|
||||
|
||||
|
||||
class Pricing(BaseModel):
|
||||
completion: str
|
||||
r"""Price in USD per token for completion (output) generation"""
|
||||
|
||||
prompt: str
|
||||
r"""Price in USD per token for prompt (input) processing"""
|
||||
|
||||
audio: Optional[str] = None
|
||||
r"""Price in USD per audio input token"""
|
||||
|
||||
audio_output: Optional[str] = None
|
||||
r"""Price in USD per audio output token"""
|
||||
|
||||
discount: Optional[float] = None
|
||||
r"""Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)"""
|
||||
|
||||
image: Optional[str] = None
|
||||
r"""Price in USD per input image"""
|
||||
|
||||
image_output: Optional[str] = None
|
||||
r"""Price in USD per output image"""
|
||||
|
||||
image_token: Optional[str] = None
|
||||
r"""Price in USD per image token"""
|
||||
|
||||
input_audio_cache: Optional[str] = None
|
||||
r"""Price in USD per cached audio input token"""
|
||||
|
||||
input_cache_read: Optional[str] = None
|
||||
r"""Price in USD per cached input token (read)"""
|
||||
|
||||
input_cache_write: Optional[str] = None
|
||||
r"""Price in USD per cached input token (write)"""
|
||||
|
||||
internal_reasoning: Optional[str] = None
|
||||
r"""Price in USD per internal reasoning token"""
|
||||
|
||||
request: Optional[str] = None
|
||||
r"""Price in USD per request"""
|
||||
|
||||
web_search: Optional[str] = None
|
||||
r"""Price in USD per web search"""
|
||||
|
||||
|
||||
PublicEndpointQuantization = Union[
|
||||
|
||||
@@ -10,48 +10,76 @@ class PublicPricingTypedDict(TypedDict):
|
||||
r"""Pricing information for the model"""
|
||||
|
||||
completion: str
|
||||
r"""Price in USD per token for completion (output) generation"""
|
||||
prompt: str
|
||||
r"""Price in USD per token for prompt (input) processing"""
|
||||
audio: NotRequired[str]
|
||||
r"""Price in USD per audio input token"""
|
||||
audio_output: NotRequired[str]
|
||||
r"""Price in USD per audio output token"""
|
||||
discount: NotRequired[float]
|
||||
r"""Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)"""
|
||||
image: NotRequired[str]
|
||||
r"""Price in USD per input image"""
|
||||
image_output: NotRequired[str]
|
||||
r"""Price in USD per output image"""
|
||||
image_token: NotRequired[str]
|
||||
r"""Price in USD per image token"""
|
||||
input_audio_cache: NotRequired[str]
|
||||
r"""Price in USD per cached audio input token"""
|
||||
input_cache_read: NotRequired[str]
|
||||
r"""Price in USD per cached input token (read)"""
|
||||
input_cache_write: NotRequired[str]
|
||||
r"""Price in USD per cached input token (write)"""
|
||||
internal_reasoning: NotRequired[str]
|
||||
r"""Price in USD per internal reasoning token"""
|
||||
request: NotRequired[str]
|
||||
r"""Price in USD per request"""
|
||||
web_search: NotRequired[str]
|
||||
r"""Price in USD per web search"""
|
||||
|
||||
|
||||
class PublicPricing(BaseModel):
|
||||
r"""Pricing information for the model"""
|
||||
|
||||
completion: str
|
||||
r"""Price in USD per token for completion (output) generation"""
|
||||
|
||||
prompt: str
|
||||
r"""Price in USD per token for prompt (input) processing"""
|
||||
|
||||
audio: Optional[str] = None
|
||||
r"""Price in USD per audio input token"""
|
||||
|
||||
audio_output: Optional[str] = None
|
||||
r"""Price in USD per audio output token"""
|
||||
|
||||
discount: Optional[float] = None
|
||||
r"""Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)"""
|
||||
|
||||
image: Optional[str] = None
|
||||
r"""Price in USD per input image"""
|
||||
|
||||
image_output: Optional[str] = None
|
||||
r"""Price in USD per output image"""
|
||||
|
||||
image_token: Optional[str] = None
|
||||
r"""Price in USD per image token"""
|
||||
|
||||
input_audio_cache: Optional[str] = None
|
||||
r"""Price in USD per cached audio input token"""
|
||||
|
||||
input_cache_read: Optional[str] = None
|
||||
r"""Price in USD per cached input token (read)"""
|
||||
|
||||
input_cache_write: Optional[str] = None
|
||||
r"""Price in USD per cached input token (write)"""
|
||||
|
||||
internal_reasoning: Optional[str] = None
|
||||
r"""Price in USD per internal reasoning token"""
|
||||
|
||||
request: Optional[str] = None
|
||||
r"""Price in USD per request"""
|
||||
|
||||
web_search: Optional[str] = None
|
||||
r"""Price in USD per web search"""
|
||||
|
||||
Reference in New Issue
Block a user