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
-5
View File
@@ -24,7 +24,6 @@ if TYPE_CHECKING:
ForbiddenResponseError,
ForbiddenResponseErrorData,
)
from .goneresponse_error import GoneResponseError, GoneResponseErrorData
from .internalserverresponse_error import (
InternalServerResponseError,
InternalServerResponseErrorData,
@@ -77,8 +76,6 @@ __all__ = [
"EdgeNetworkTimeoutResponseErrorData",
"ForbiddenResponseError",
"ForbiddenResponseErrorData",
"GoneResponseError",
"GoneResponseErrorData",
"InternalServerResponseError",
"InternalServerResponseErrorData",
"NoResponseError",
@@ -116,8 +113,6 @@ _dynamic_imports: dict[str, str] = {
"EdgeNetworkTimeoutResponseErrorData": ".edgenetworktimeoutresponse_error",
"ForbiddenResponseError": ".forbiddenresponse_error",
"ForbiddenResponseErrorData": ".forbiddenresponse_error",
"GoneResponseError": ".goneresponse_error",
"GoneResponseErrorData": ".goneresponse_error",
"InternalServerResponseError": ".internalserverresponse_error",
"InternalServerResponseErrorData": ".internalserverresponse_error",
"NoResponseError": ".no_response_error",
@@ -1,35 +0,0 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from dataclasses import dataclass, field
import httpx
from openrouter.components import (
goneresponseerrordata as components_goneresponseerrordata,
)
from openrouter.errors import OpenRouterError
from openrouter.types import BaseModel, OptionalNullable, UNSET
from typing import Optional
class GoneResponseErrorData(BaseModel):
error: components_goneresponseerrordata.GoneResponseErrorData
r"""Error data for GoneResponse"""
user_id: OptionalNullable[str] = UNSET
@dataclass(unsafe_hash=True)
class GoneResponseError(OpenRouterError):
r"""Gone - Endpoint has been permanently removed or deprecated"""
data: GoneResponseErrorData = field(hash=False)
def __init__(
self,
data: GoneResponseErrorData,
raw_response: httpx.Response,
body: Optional[str] = None,
):
fallback = body or raw_response.text
message = str(data.error.message) or fallback
super().__init__(message, raw_response, body)
object.__setattr__(self, "data", data)