mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.11.14 (#416)
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
c382f8fbc0
commit
1281ae62da
@@ -3,10 +3,10 @@
|
||||
import importlib.metadata
|
||||
|
||||
__title__: str = "openrouter"
|
||||
__version__: str = "0.11.13"
|
||||
__version__: str = "0.11.14"
|
||||
__openapi_doc_version__: str = "1.0.0"
|
||||
__gen_version__: str = "2.914.0"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.11.13 2.914.0 1.0.0 openrouter"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.11.14 2.914.0 1.0.0 openrouter"
|
||||
|
||||
try:
|
||||
if __package__ is not None:
|
||||
|
||||
@@ -2246,6 +2246,7 @@ if TYPE_CHECKING:
|
||||
ReasoningItemType,
|
||||
ReasoningItemTypedDict,
|
||||
)
|
||||
from .reasoningmode import ReasoningMode
|
||||
from .reasoningsummarypartaddedevent import (
|
||||
ReasoningSummaryPartAddedEvent,
|
||||
ReasoningSummaryPartAddedEventType,
|
||||
@@ -4282,6 +4283,7 @@ __all__ = [
|
||||
"ReasoningItemStatusUnionTypedDict",
|
||||
"ReasoningItemType",
|
||||
"ReasoningItemTypedDict",
|
||||
"ReasoningMode",
|
||||
"ReasoningSummaryPartAddedEvent",
|
||||
"ReasoningSummaryPartAddedEventType",
|
||||
"ReasoningSummaryPartAddedEventTypedDict",
|
||||
@@ -6419,6 +6421,7 @@ _dynamic_imports: dict[str, str] = {
|
||||
"ReasoningItemStatusUnionTypedDict": ".reasoningitem",
|
||||
"ReasoningItemType": ".reasoningitem",
|
||||
"ReasoningItemTypedDict": ".reasoningitem",
|
||||
"ReasoningMode": ".reasoningmode",
|
||||
"ReasoningSummaryPartAddedEvent": ".reasoningsummarypartaddedevent",
|
||||
"ReasoningSummaryPartAddedEventType": ".reasoningsummarypartaddedevent",
|
||||
"ReasoningSummaryPartAddedEventTypedDict": ".reasoningsummarypartaddedevent",
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
from .reasoningeffort import ReasoningEffort
|
||||
from .reasoningmode import ReasoningMode
|
||||
from .reasoningsummaryverbosity import ReasoningSummaryVerbosity
|
||||
from openrouter.types import (
|
||||
BaseModel,
|
||||
@@ -16,18 +17,23 @@ from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
class BaseReasoningConfigTypedDict(TypedDict):
|
||||
effort: NotRequired[Nullable[ReasoningEffort]]
|
||||
mode: NotRequired[Nullable[ReasoningMode]]
|
||||
r"""Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer."""
|
||||
summary: NotRequired[Nullable[ReasoningSummaryVerbosity]]
|
||||
|
||||
|
||||
class BaseReasoningConfig(BaseModel):
|
||||
effort: OptionalNullable[ReasoningEffort] = UNSET
|
||||
|
||||
mode: OptionalNullable[ReasoningMode] = UNSET
|
||||
r"""Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer."""
|
||||
|
||||
summary: OptionalNullable[ReasoningSummaryVerbosity] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = set(["effort", "summary"])
|
||||
nullable_fields = set(["effort", "summary"])
|
||||
optional_fields = set(["effort", "mode", "summary"])
|
||||
nullable_fields = set(["effort", "mode", "summary"])
|
||||
serialized = handler(self)
|
||||
m = {}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
from .reasoningeffort import ReasoningEffort
|
||||
from .reasoningmode import ReasoningMode
|
||||
from .reasoningsummaryverbosity import ReasoningSummaryVerbosity
|
||||
from openrouter.types import (
|
||||
BaseModel,
|
||||
@@ -18,6 +19,8 @@ class ReasoningConfigTypedDict(TypedDict):
|
||||
r"""Configuration for reasoning mode in the response"""
|
||||
|
||||
effort: NotRequired[Nullable[ReasoningEffort]]
|
||||
mode: NotRequired[Nullable[ReasoningMode]]
|
||||
r"""Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer."""
|
||||
summary: NotRequired[Nullable[ReasoningSummaryVerbosity]]
|
||||
enabled: NotRequired[Nullable[bool]]
|
||||
max_tokens: NotRequired[Nullable[int]]
|
||||
@@ -28,6 +31,9 @@ class ReasoningConfig(BaseModel):
|
||||
|
||||
effort: OptionalNullable[ReasoningEffort] = UNSET
|
||||
|
||||
mode: OptionalNullable[ReasoningMode] = UNSET
|
||||
r"""Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer."""
|
||||
|
||||
summary: OptionalNullable[ReasoningSummaryVerbosity] = UNSET
|
||||
|
||||
enabled: OptionalNullable[bool] = UNSET
|
||||
@@ -36,8 +42,8 @@ class ReasoningConfig(BaseModel):
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = set(["effort", "summary", "enabled", "max_tokens"])
|
||||
nullable_fields = set(["effort", "summary", "enabled", "max_tokens"])
|
||||
optional_fields = set(["effort", "mode", "summary", "enabled", "max_tokens"])
|
||||
nullable_fields = set(["effort", "mode", "summary", "enabled", "max_tokens"])
|
||||
serialized = handler(self)
|
||||
m = {}
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import UnrecognizedStr
|
||||
from typing import Literal, Union
|
||||
|
||||
|
||||
ReasoningMode = Union[
|
||||
Literal[
|
||||
"standard",
|
||||
"pro",
|
||||
],
|
||||
UnrecognizedStr,
|
||||
]
|
||||
r"""Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer."""
|
||||
Reference in New Issue
Block a user