mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-06 13:20:23 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.11.15 (#418)
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
a2e9c97855
commit
3f1ab05c95
@@ -1,6 +1,7 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .reasoningcontext import ReasoningContext
|
||||
from .reasoningeffort import ReasoningEffort
|
||||
from .reasoningmode import ReasoningMode
|
||||
from .reasoningsummaryverbosity import ReasoningSummaryVerbosity
|
||||
@@ -16,6 +17,8 @@ from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
class BaseReasoningConfigTypedDict(TypedDict):
|
||||
context: NotRequired[Nullable[ReasoningContext]]
|
||||
r"""Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer."""
|
||||
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."""
|
||||
@@ -23,6 +26,9 @@ class BaseReasoningConfigTypedDict(TypedDict):
|
||||
|
||||
|
||||
class BaseReasoningConfig(BaseModel):
|
||||
context: OptionalNullable[ReasoningContext] = UNSET
|
||||
r"""Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer."""
|
||||
|
||||
effort: OptionalNullable[ReasoningEffort] = UNSET
|
||||
|
||||
mode: OptionalNullable[ReasoningMode] = UNSET
|
||||
@@ -32,8 +38,8 @@ class BaseReasoningConfig(BaseModel):
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = set(["effort", "mode", "summary"])
|
||||
nullable_fields = set(["effort", "mode", "summary"])
|
||||
optional_fields = set(["context", "effort", "mode", "summary"])
|
||||
nullable_fields = set(["context", "effort", "mode", "summary"])
|
||||
serialized = handler(self)
|
||||
m = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user