ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.617.1

This commit is contained in:
speakeasybot
2025-09-17 00:08:51 +00:00
parent 80fd801021
commit 9a908e26d3
13 changed files with 57 additions and 31 deletions
+4 -2
View File
@@ -1,6 +1,7 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from dataclasses import dataclass, field
import httpx
from openrouter.errors import OpenRouterError
from openrouter.models import chatcompletionerror as models_chatcompletionerror
@@ -13,10 +14,11 @@ class ChatCompletionErrorData(BaseModel):
r"""Error object structure"""
@dataclass(frozen=True)
class ChatCompletionError(OpenRouterError):
r"""Chat completion error response"""
data: ChatCompletionErrorData
data: ChatCompletionErrorData = field(hash=False)
def __init__(
self,
@@ -27,4 +29,4 @@ class ChatCompletionError(OpenRouterError):
fallback = body or raw_response.text
message = str(data.error.message) or fallback
super().__init__(message, raw_response, body)
self.data = data
object.__setattr__(self, "data", data)