mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-05 13:10:31 +08:00
chore: update OpenAPI spec from monorepo (#353)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
713dd5c71a
commit
5cefd3a108
@@ -2188,6 +2188,38 @@ components:
|
|||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
|
ApiErrorType:
|
||||||
|
description: Canonical OpenRouter error type, stable across all API formats
|
||||||
|
enum:
|
||||||
|
- context_length_exceeded
|
||||||
|
- max_tokens_exceeded
|
||||||
|
- token_limit_exceeded
|
||||||
|
- string_too_long
|
||||||
|
- authentication
|
||||||
|
- permission_denied
|
||||||
|
- payment_required
|
||||||
|
- rate_limit_exceeded
|
||||||
|
- provider_overloaded
|
||||||
|
- provider_unavailable
|
||||||
|
- invalid_request
|
||||||
|
- invalid_prompt
|
||||||
|
- not_found
|
||||||
|
- precondition_failed
|
||||||
|
- payload_too_large
|
||||||
|
- unprocessable
|
||||||
|
- content_policy_violation
|
||||||
|
- refusal
|
||||||
|
- invalid_image
|
||||||
|
- image_too_large
|
||||||
|
- image_too_small
|
||||||
|
- unsupported_image_format
|
||||||
|
- image_not_found
|
||||||
|
- image_download_failed
|
||||||
|
- server
|
||||||
|
- timeout
|
||||||
|
- unmapped
|
||||||
|
example: rate_limit_exceeded
|
||||||
|
type: string
|
||||||
ApplyPatchCallItem:
|
ApplyPatchCallItem:
|
||||||
description: >-
|
description: >-
|
||||||
A tool call emitted by the model requesting a V4A patch operation. The client applies the patch and echoes an
|
A tool call emitted by the model requesting a V4A patch operation. The client applies the patch and echoes an
|
||||||
@@ -5076,6 +5108,8 @@ components:
|
|||||||
example:
|
example:
|
||||||
code: 429
|
code: 429
|
||||||
message: Rate limit exceeded
|
message: Rate limit exceeded
|
||||||
|
metadata:
|
||||||
|
error_type: rate_limit_exceeded
|
||||||
properties:
|
properties:
|
||||||
code:
|
code:
|
||||||
description: Error code
|
description: Error code
|
||||||
@@ -5086,6 +5120,17 @@ components:
|
|||||||
description: Error message
|
description: Error message
|
||||||
example: Rate limit exceeded
|
example: Rate limit exceeded
|
||||||
type: string
|
type: string
|
||||||
|
metadata:
|
||||||
|
description: Structured error metadata
|
||||||
|
properties:
|
||||||
|
error_type:
|
||||||
|
$ref: '#/components/schemas/ApiErrorType'
|
||||||
|
provider_code:
|
||||||
|
description: Upstream provider-specific error code, when available
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- error_type
|
||||||
|
type: object
|
||||||
required:
|
required:
|
||||||
- message
|
- message
|
||||||
- code
|
- code
|
||||||
@@ -11472,9 +11517,12 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
MessagesErrorDetail:
|
MessagesErrorDetail:
|
||||||
example:
|
example:
|
||||||
|
error_type: invalid_request
|
||||||
message: Invalid request parameters
|
message: Invalid request parameters
|
||||||
type: invalid_request_error
|
type: invalid_request_error
|
||||||
properties:
|
properties:
|
||||||
|
error_type:
|
||||||
|
$ref: '#/components/schemas/ApiErrorType'
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
@@ -11487,12 +11535,15 @@ components:
|
|||||||
description: Error event in the stream
|
description: Error event in the stream
|
||||||
example:
|
example:
|
||||||
error:
|
error:
|
||||||
|
error_type: provider_overloaded
|
||||||
message: Overloaded
|
message: Overloaded
|
||||||
type: overloaded_error
|
type: overloaded_error
|
||||||
type: error
|
type: error
|
||||||
properties:
|
properties:
|
||||||
error:
|
error:
|
||||||
properties:
|
properties:
|
||||||
|
error_type:
|
||||||
|
$ref: '#/components/schemas/ApiErrorType'
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
@@ -11501,6 +11552,8 @@ components:
|
|||||||
- type
|
- type
|
||||||
- message
|
- message
|
||||||
type: object
|
type: object
|
||||||
|
openrouter_metadata:
|
||||||
|
$ref: '#/components/schemas/OpenRouterMetadata'
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
- error
|
- error
|
||||||
@@ -15574,6 +15627,8 @@ components:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/BaseResponsesResult'
|
- $ref: '#/components/schemas/BaseResponsesResult'
|
||||||
- properties:
|
- properties:
|
||||||
|
error_type:
|
||||||
|
$ref: '#/components/schemas/ApiErrorType'
|
||||||
openrouter_metadata:
|
openrouter_metadata:
|
||||||
$ref: '#/components/schemas/OpenRouterMetadata'
|
$ref: '#/components/schemas/OpenRouterMetadata'
|
||||||
output:
|
output:
|
||||||
|
|||||||
Reference in New Issue
Block a user