chore: 🐝 Update SDK - Generate (spec change merged) 0.11.29 (#446)

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:
github-actions[bot]
2026-07-14 14:53:50 +00:00
committed by GitHub
co-authored by speakeasybot speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent 44313b0aa3
commit 2a65de50d3
14 changed files with 128 additions and 90 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
import importlib.metadata
__title__: str = "openrouter"
__version__: str = "0.11.28"
__version__: str = "0.11.29"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0"
__user_agent__: str = "speakeasy-sdk/python 0.11.28 2.914.0 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 0.11.29 2.914.0 1.0.0 openrouter"
try:
if __package__ is not None:
+14 -2
View File
@@ -8,7 +8,7 @@ from typing_extensions import NotRequired, TypedDict
class PricingOverrideTypedDict(TypedDict):
r"""A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price."""
r"""A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price."""
audio: NotRequired[str]
r"""Overridden price in USD per audio input token"""
@@ -26,10 +26,14 @@ class PricingOverrideTypedDict(TypedDict):
r"""Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold"""
prompt: NotRequired[str]
r"""Overridden price in USD per token for prompt (input) processing"""
utc_end: NotRequired[float]
r"""Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00)"""
utc_start: NotRequired[float]
r"""Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window [utc_start, utc_end), which may wrap past midnight (utc_start > utc_end)."""
class PricingOverride(BaseModel):
r"""A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price."""
r"""A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price."""
audio: Optional[str] = None
r"""Overridden price in USD per audio input token"""
@@ -55,6 +59,12 @@ class PricingOverride(BaseModel):
prompt: Optional[str] = None
r"""Overridden price in USD per token for prompt (input) processing"""
utc_end: Optional[float] = None
r"""Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00)"""
utc_start: Optional[float] = None
r"""Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window [utc_start, utc_end), which may wrap past midnight (utc_start > utc_end)."""
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(
@@ -67,6 +77,8 @@ class PricingOverride(BaseModel):
"input_cache_write_1h",
"min_prompt_tokens",
"prompt",
"utc_end",
"utc_start",
]
)
serialized = handler(self)
+2 -2
View File
@@ -40,7 +40,7 @@ class PricingTypedDict(TypedDict):
internal_reasoning: NotRequired[str]
r"""Price in USD per internal reasoning token"""
overrides: NotRequired[List[PricingOverrideTypedDict]]
r"""Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
r"""Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
request: NotRequired[str]
r"""Price in USD per request"""
web_search: NotRequired[str]
@@ -88,7 +88,7 @@ class Pricing(BaseModel):
r"""Price in USD per internal reasoning token"""
overrides: Optional[List[PricingOverride]] = None
r"""Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
r"""Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
request: Optional[str] = None
r"""Price in USD per request"""
+2 -2
View File
@@ -38,7 +38,7 @@ class PublicPricingTypedDict(TypedDict):
internal_reasoning: NotRequired[str]
r"""Price in USD per internal reasoning token"""
overrides: NotRequired[List[PricingOverrideTypedDict]]
r"""Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
r"""Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
request: NotRequired[str]
r"""Price in USD per request"""
web_search: NotRequired[str]
@@ -88,7 +88,7 @@ class PublicPricing(BaseModel):
r"""Price in USD per internal reasoning token"""
overrides: Optional[List[PricingOverride]] = None
r"""Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
r"""Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."""
request: Optional[str] = None
r"""Price in USD per request"""