chore: clean up removed docs and update generated SDK files

Remove obsolete component documentation and update speakeasy-generated
files to match the latest OpenAPI spec regeneration.
This commit is contained in:
Matt Apperson
2026-04-02 10:21:41 -04:00
parent 5ab44f08f0
commit e6b0242969
478 changed files with 326 additions and 17219 deletions
+5
View File
@@ -24,6 +24,7 @@ if TYPE_CHECKING:
ForbiddenResponseError,
ForbiddenResponseErrorData,
)
from .goneresponse_error import GoneResponseError, GoneResponseErrorData
from .internalserverresponse_error import (
InternalServerResponseError,
InternalServerResponseErrorData,
@@ -76,6 +77,8 @@ __all__ = [
"EdgeNetworkTimeoutResponseErrorData",
"ForbiddenResponseError",
"ForbiddenResponseErrorData",
"GoneResponseError",
"GoneResponseErrorData",
"InternalServerResponseError",
"InternalServerResponseErrorData",
"NoResponseError",
@@ -113,6 +116,8 @@ _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",
@@ -0,0 +1,35 @@
"""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)