mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +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
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user