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
+15 -54
View File
@@ -1,79 +1,40 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from .streamlogprob import StreamLogprob, StreamLogprobTypedDict
from openrouter.types import BaseModel
import pydantic
from typing import List, Literal, Optional
from typing_extensions import Annotated, NotRequired, TypedDict
from typing import List, Literal
from typing_extensions import TypedDict
TextDoneEventType = Literal["response.output_text.done",]
class TextDoneEventTopLogprobTypedDict(TypedDict):
r"""Alternative token with its log probability"""
token: NotRequired[str]
logprob: NotRequired[float]
bytes_: NotRequired[List[float]]
class TextDoneEventTopLogprob(BaseModel):
r"""Alternative token with its log probability"""
token: Optional[str] = None
logprob: Optional[float] = None
bytes_: Annotated[Optional[List[float]], pydantic.Field(alias="bytes")] = None
class TextDoneEventLogprobTypedDict(TypedDict):
r"""Log probability information for a token"""
logprob: float
token: str
top_logprobs: NotRequired[List[TextDoneEventTopLogprobTypedDict]]
bytes_: NotRequired[List[float]]
class TextDoneEventLogprob(BaseModel):
r"""Log probability information for a token"""
logprob: float
token: str
top_logprobs: Optional[List[TextDoneEventTopLogprob]] = None
bytes_: Annotated[Optional[List[float]], pydantic.Field(alias="bytes")] = None
class TextDoneEventTypedDict(TypedDict):
r"""Event emitted when text streaming is complete"""
type: TextDoneEventType
output_index: float
content_index: int
item_id: str
content_index: float
logprobs: List[StreamLogprobTypedDict]
output_index: int
sequence_number: int
text: str
sequence_number: float
logprobs: List[TextDoneEventLogprobTypedDict]
type: TextDoneEventType
class TextDoneEvent(BaseModel):
r"""Event emitted when text streaming is complete"""
type: TextDoneEventType
output_index: float
content_index: int
item_id: str
content_index: float
logprobs: List[StreamLogprob]
output_index: int
sequence_number: int
text: str
sequence_number: float
logprobs: List[TextDoneEventLogprob]
type: TextDoneEventType