fix: add overlay to remove nullable from pagination offset params (#121)

This commit is contained in:
Matt Apperson
2026-04-14 12:48:15 -04:00
committed by GitHub
parent 2bba049182
commit b2386114cd
440 changed files with 36150 additions and 32168 deletions
+11 -25
View File
@@ -1,6 +1,7 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from .reasoningformat import ReasoningFormat
from .reasoningsummarytext import ReasoningSummaryText, ReasoningSummaryTextTypedDict
from .reasoningtextcontent import ReasoningTextContent, ReasoningTextContentTypedDict
from openrouter.types import (
@@ -9,7 +10,6 @@ from openrouter.types import (
OptionalNullable,
UNSET,
UNSET_SENTINEL,
UnrecognizedStr,
)
from openrouter.utils import validate_open_enum
import pydantic
@@ -19,9 +19,6 @@ from typing import List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
ReasoningItemType = Literal["reasoning",]
ReasoningItemStatusInProgress = Literal["in_progress",]
@@ -51,67 +48,56 @@ ReasoningItemStatusUnion = TypeAliasType(
)
ReasoningItemFormat = Union[
Literal[
"unknown",
"openai-responses-v1",
"azure-openai-responses-v1",
"xai-responses-v1",
"anthropic-claude-v1",
"google-gemini-v1",
],
UnrecognizedStr,
]
ReasoningItemType = Literal["reasoning",]
class ReasoningItemTypedDict(TypedDict):
r"""Reasoning output item with signature and format extensions"""
type: ReasoningItemType
id: str
summary: List[ReasoningSummaryTextTypedDict]
type: ReasoningItemType
content: NotRequired[Nullable[List[ReasoningTextContentTypedDict]]]
encrypted_content: NotRequired[Nullable[str]]
status: NotRequired[ReasoningItemStatusUnionTypedDict]
format_: NotRequired[Nullable[ReasoningFormat]]
signature: NotRequired[Nullable[str]]
format_: NotRequired[Nullable[ReasoningItemFormat]]
class ReasoningItem(BaseModel):
r"""Reasoning output item with signature and format extensions"""
type: ReasoningItemType
id: str
summary: List[ReasoningSummaryText]
type: ReasoningItemType
content: OptionalNullable[List[ReasoningTextContent]] = UNSET
encrypted_content: OptionalNullable[str] = UNSET
status: Optional[ReasoningItemStatusUnion] = None
signature: OptionalNullable[str] = UNSET
format_: Annotated[
Annotated[
OptionalNullable[ReasoningItemFormat],
PlainValidator(validate_open_enum(False)),
OptionalNullable[ReasoningFormat], PlainValidator(validate_open_enum(False))
],
pydantic.Field(alias="format"),
] = UNSET
signature: OptionalNullable[str] = UNSET
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = [
"content",
"encrypted_content",
"status",
"signature",
"format",
"signature",
]
nullable_fields = ["content", "encrypted_content", "signature", "format"]
nullable_fields = ["content", "encrypted_content", "format", "signature"]
null_default_fields = []
serialized = handler(self)