mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
chore: update OpenAPI specification from openrouter-web (#8)
Co-authored-by: mattapperson <192433+mattapperson@users.noreply.github.com>
This commit is contained in:
co-authored by
mattapperson
parent
a8eb01c8b9
commit
1eeecdae96
+97
-22
@@ -4872,7 +4872,13 @@ paths:
|
|||||||
prompt_tokens: 50
|
prompt_tokens: 50
|
||||||
completion_tokens: 125
|
completion_tokens: 125
|
||||||
reasoning_tokens: 25
|
reasoning_tokens: 25
|
||||||
default:
|
4XX:
|
||||||
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
description: Error Response
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -4917,8 +4923,14 @@ paths:
|
|||||||
data:
|
data:
|
||||||
total_credits: 100.5
|
total_credits: 100.5
|
||||||
total_usage: 25.75
|
total_usage: 25.75
|
||||||
default:
|
4XX:
|
||||||
description: Internal server error
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -5035,7 +5047,13 @@ paths:
|
|||||||
- web3_data
|
- web3_data
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
default:
|
4XX:
|
||||||
|
description: Error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
description: Error
|
description: Error
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -5256,8 +5274,14 @@ paths:
|
|||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
description: Generation response
|
description: Generation response
|
||||||
default:
|
4XX:
|
||||||
description: Error
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -5267,6 +5291,7 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Models
|
- Models
|
||||||
|
x-speakeasy-name-override: count
|
||||||
summary: Get total count of available models
|
summary: Get total count of available models
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
@@ -5304,6 +5329,7 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Models
|
- Models
|
||||||
|
x-speakeasy-name-override: list
|
||||||
summary: List all models and their properties
|
summary: List all models and their properties
|
||||||
parameters:
|
parameters:
|
||||||
- schema:
|
- schema:
|
||||||
@@ -5355,6 +5381,7 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Models
|
- Models
|
||||||
|
x-speakeasy-name-override: listForUser
|
||||||
summary: List models filtered by user provider preferences
|
summary: List models filtered by user provider preferences
|
||||||
security:
|
security:
|
||||||
- bearer: []
|
- bearer: []
|
||||||
@@ -5470,8 +5497,14 @@ paths:
|
|||||||
- endpoints
|
- endpoints
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
default:
|
4XX:
|
||||||
description: Error
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -5661,8 +5694,14 @@ paths:
|
|||||||
- temperature
|
- temperature
|
||||||
- top_p
|
- top_p
|
||||||
- max_tokens
|
- max_tokens
|
||||||
default:
|
4XX:
|
||||||
description: Data not found
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -5926,8 +5965,14 @@ paths:
|
|||||||
byok_usage_monthly: 17.38
|
byok_usage_monthly: 17.38
|
||||||
created_at: '2025-08-24T10:30:00Z'
|
created_at: '2025-08-24T10:30:00Z'
|
||||||
updated_at: '2025-08-24T15:45:00Z'
|
updated_at: '2025-08-24T15:45:00Z'
|
||||||
default:
|
4XX:
|
||||||
description: Error response
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -6130,8 +6175,14 @@ paths:
|
|||||||
created_at: '2025-08-24T10:30:00Z'
|
created_at: '2025-08-24T10:30:00Z'
|
||||||
updated_at: null
|
updated_at: null
|
||||||
key: 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
|
key: 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
|
||||||
default:
|
4XX:
|
||||||
description: Error response
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -6340,8 +6391,14 @@ paths:
|
|||||||
byok_usage_monthly: 17.38
|
byok_usage_monthly: 17.38
|
||||||
created_at: '2025-08-24T10:30:00Z'
|
created_at: '2025-08-24T10:30:00Z'
|
||||||
updated_at: '2025-08-24T16:00:00Z'
|
updated_at: '2025-08-24T16:00:00Z'
|
||||||
default:
|
4XX:
|
||||||
description: Error response
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -6377,8 +6434,14 @@ paths:
|
|||||||
- deleted
|
- deleted
|
||||||
example:
|
example:
|
||||||
deleted: true
|
deleted: true
|
||||||
default:
|
4XX:
|
||||||
description: Error response
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -6546,8 +6609,14 @@ paths:
|
|||||||
byok_usage_monthly: 17.38
|
byok_usage_monthly: 17.38
|
||||||
created_at: '2025-08-24T10:30:00Z'
|
created_at: '2025-08-24T10:30:00Z'
|
||||||
updated_at: '2025-08-24T15:45:00Z'
|
updated_at: '2025-08-24T15:45:00Z'
|
||||||
default:
|
4XX:
|
||||||
description: Error response
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -6720,8 +6789,14 @@ paths:
|
|||||||
requests: 1000
|
requests: 1000
|
||||||
interval: 1h
|
interval: 1h
|
||||||
note: This field is deprecated and safe to ignore.
|
note: This field is deprecated and safe to ignore.
|
||||||
default:
|
4XX:
|
||||||
description: Error response
|
description: Error Response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
5XX:
|
||||||
|
description: Error Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
Reference in New Issue
Block a user