Shared
Models
class APIErrorObject: type: "api_error"; message
class APIErrorObject: type: "api_error"; message
type: Literal["api_error"]
type: Literal["api_error"]
defaultapi_error
message: str
message: str
defaultInternal server error
class AuthenticationError: type: "authentication_error"; message
class AuthenticationError: type: "authentication_error"; message
type: Literal["authentication_error"]
type: Literal["authentication_error"]
defaultauthentication_error
message: str
message: str
defaultAuthentication error
class BillingError: type: "billing_error"; message
class BillingError: type: "billing_error"; message
type: Literal["billing_error"]
type: Literal["billing_error"]
defaultbilling_error
message: str
message: str
defaultBilling error
type ErrorObject = ...
type ErrorObject = ...
One of the following:
class ErrorResponse: type: "error"; error; request_id
class ErrorResponse: type: "error"; error; request_id
type: Literal["error"]
type: Literal["error"]
defaulterror
error: ErrorObject
error: ErrorObject
One of the following:
request_id: Optional[str]
type ErrorType = Literal["invalid_request_error", "authentication_error", "permission_error", 6 more]
type ErrorType = Literal["invalid_request_error", "authentication_error", "permission_error", 6 more]
One of the following:
"invalid_request_error"
"authentication_error"
"permission_error"
"not_found_error"
"rate_limit_error"
"timeout_error"
"overloaded_error"
"api_error"
"billing_error"
class GatewayTimeoutError: type: "timeout_error"; message
class GatewayTimeoutError: type: "timeout_error"; message
type: Literal["timeout_error"]
type: Literal["timeout_error"]
defaulttimeout_error
message: str
message: str
defaultRequest timeout
class InvalidRequestError: type: "invalid_request_error"; message
class InvalidRequestError: type: "invalid_request_error"; message
type: Literal["invalid_request_error"]
type: Literal["invalid_request_error"]
defaultinvalid_request_error
message: str
message: str
defaultInvalid request
class NotFoundError: type: "not_found_error"; message
class NotFoundError: type: "not_found_error"; message
type: Literal["not_found_error"]
type: Literal["not_found_error"]
defaultnot_found_error
message: str
message: str
defaultNot found
class OverloadedError: type: "overloaded_error"; message
class OverloadedError: type: "overloaded_error"; message
type: Literal["overloaded_error"]
type: Literal["overloaded_error"]
defaultoverloaded_error
message: str
message: str
defaultOverloaded
class PermissionError: type: "permission_error"; message
class PermissionError: type: "permission_error"; message
type: Literal["permission_error"]
type: Literal["permission_error"]
defaultpermission_error
message: str
message: str
defaultPermission denied
class RateLimitError: type: "rate_limit_error"; message
class RateLimitError: type: "rate_limit_error"; message
type: Literal["rate_limit_error"]
type: Literal["rate_limit_error"]
defaultrate_limit_error
message: str
message: str
defaultRate limited