mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-11 05:48:37 +08:00
chore: update OpenAPI spec from monorepo (#276)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
6ceb25ca84
commit
63b73f57d4
+136
-2
@@ -3637,6 +3637,7 @@ components:
|
|||||||
- cloudflare
|
- cloudflare
|
||||||
- cohere
|
- cohere
|
||||||
- crusoe
|
- crusoe
|
||||||
|
- darkbloom
|
||||||
- deepinfra
|
- deepinfra
|
||||||
- deepseek
|
- deepseek
|
||||||
- dekallm
|
- dekallm
|
||||||
@@ -10408,6 +10409,7 @@ components:
|
|||||||
- Cohere
|
- Cohere
|
||||||
- Crucible
|
- Crucible
|
||||||
- Crusoe
|
- Crusoe
|
||||||
|
- Darkbloom
|
||||||
- DeepInfra
|
- DeepInfra
|
||||||
- DeepSeek
|
- DeepSeek
|
||||||
- DekaLLM
|
- DekaLLM
|
||||||
@@ -15515,6 +15517,7 @@ components:
|
|||||||
- Cohere
|
- Cohere
|
||||||
- Crucible
|
- Crucible
|
||||||
- Crusoe
|
- Crusoe
|
||||||
|
- Darkbloom
|
||||||
- DeepInfra
|
- DeepInfra
|
||||||
- DeepSeek
|
- DeepSeek
|
||||||
- DekaLLM
|
- DekaLLM
|
||||||
@@ -15701,6 +15704,10 @@ components:
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
nullable: true
|
nullable: true
|
||||||
type: object
|
type: object
|
||||||
|
darkbloom:
|
||||||
|
additionalProperties:
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
deepinfra:
|
deepinfra:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
nullable: true
|
nullable: true
|
||||||
@@ -16296,6 +16303,7 @@ components:
|
|||||||
- Cohere
|
- Cohere
|
||||||
- Crucible
|
- Crucible
|
||||||
- Crusoe
|
- Crusoe
|
||||||
|
- Darkbloom
|
||||||
- DeepInfra
|
- DeepInfra
|
||||||
- DeepSeek
|
- DeepSeek
|
||||||
- DekaLLM
|
- DekaLLM
|
||||||
@@ -20599,6 +20607,7 @@ paths:
|
|||||||
- cloudflare
|
- cloudflare
|
||||||
- cohere
|
- cohere
|
||||||
- crusoe
|
- crusoe
|
||||||
|
- darkbloom
|
||||||
- deepinfra
|
- deepinfra
|
||||||
- deepseek
|
- deepseek
|
||||||
- dekallm
|
- dekallm
|
||||||
@@ -26044,7 +26053,7 @@ paths:
|
|||||||
role: system
|
role: system
|
||||||
- content: Hello!
|
- content: Hello!
|
||||||
role: user
|
role: user
|
||||||
model: openai/gpt-4o
|
model: openai/gpt-5.4
|
||||||
temperature: 0.7
|
temperature: 0.7
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ChatRequest'
|
$ref: '#/components/schemas/ChatRequest'
|
||||||
@@ -26060,7 +26069,7 @@ paths:
|
|||||||
description: null
|
description: null
|
||||||
designated_version:
|
designated_version:
|
||||||
config:
|
config:
|
||||||
model: openai/gpt-4o
|
model: openai/gpt-5.4
|
||||||
temperature: 0.7
|
temperature: 0.7
|
||||||
created_at: '2026-04-20T10:00:00Z'
|
created_at: '2026-04-20T10:00:00Z'
|
||||||
creator_id: user_2dHFtVWx2n56w6HkM0000000000
|
creator_id: user_2dHFtVWx2n56w6HkM0000000000
|
||||||
@@ -26145,6 +26154,131 @@ paths:
|
|||||||
summary: Create a preset from a chat-completions request body
|
summary: Create a preset from a chat-completions request body
|
||||||
tags:
|
tags:
|
||||||
- Presets
|
- Presets
|
||||||
|
/presets/{slug}/messages:
|
||||||
|
post:
|
||||||
|
description: >-
|
||||||
|
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap
|
||||||
|
with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
|
||||||
|
operationId: createPresetsMessages
|
||||||
|
parameters:
|
||||||
|
- description: URL-safe slug identifying the preset. Created if it does not exist.
|
||||||
|
in: path
|
||||||
|
name: slug
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
description: URL-safe slug identifying the preset. Created if it does not exist.
|
||||||
|
example: my-preset
|
||||||
|
minLength: 1
|
||||||
|
type: string
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
max_tokens: 1024
|
||||||
|
messages:
|
||||||
|
- content: Hello!
|
||||||
|
role: user
|
||||||
|
model: anthropic/claude-4.6-sonnet
|
||||||
|
system: You are a helpful assistant.
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/MessagesRequest'
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
data:
|
||||||
|
created_at: '2026-04-20T10:00:00Z'
|
||||||
|
creator_user_id: user_2dHFtVWx2n56w6HkM0000000000
|
||||||
|
description: null
|
||||||
|
designated_version:
|
||||||
|
config:
|
||||||
|
max_tokens: 1024
|
||||||
|
model: anthropic/claude-4.6-sonnet
|
||||||
|
created_at: '2026-04-20T10:00:00Z'
|
||||||
|
creator_id: user_2dHFtVWx2n56w6HkM0000000000
|
||||||
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
preset_id: 650e8400-e29b-41d4-a716-446655440001
|
||||||
|
system_prompt: You are a helpful assistant.
|
||||||
|
updated_at: '2026-04-20T10:00:00Z'
|
||||||
|
version: 1
|
||||||
|
designated_version_id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
id: 650e8400-e29b-41d4-a716-446655440001
|
||||||
|
name: my-preset
|
||||||
|
slug: my-preset
|
||||||
|
status: active
|
||||||
|
status_updated_at: null
|
||||||
|
updated_at: '2026-04-20T10:00:00Z'
|
||||||
|
workspace_id: 750e8400-e29b-41d4-a716-446655440002
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/CreatePresetFromInferenceResponse'
|
||||||
|
description: Preset created or updated successfully.
|
||||||
|
'400':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 400
|
||||||
|
message: Invalid request parameters
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/BadRequestResponse'
|
||||||
|
description: Bad Request - Invalid request parameters or malformed input
|
||||||
|
'401':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 401
|
||||||
|
message: Missing Authentication header
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UnauthorizedResponse'
|
||||||
|
description: Unauthorized - Authentication required or invalid credentials
|
||||||
|
'403':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 403
|
||||||
|
message: Only management keys can perform this operation
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ForbiddenResponse'
|
||||||
|
description: Forbidden - Authentication successful but insufficient permissions
|
||||||
|
'404':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 404
|
||||||
|
message: Resource not found
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/NotFoundResponse'
|
||||||
|
description: Not Found - Resource does not exist
|
||||||
|
'409':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 409
|
||||||
|
message: Resource conflict. Please try again later.
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ConflictResponse'
|
||||||
|
description: Conflict - Resource conflict or concurrent modification
|
||||||
|
'500':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 500
|
||||||
|
message: Internal Server Error
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/InternalServerResponse'
|
||||||
|
description: Internal Server Error - Unexpected server error
|
||||||
|
security:
|
||||||
|
- apiKey: []
|
||||||
|
summary: Create a preset from a messages request body
|
||||||
|
tags:
|
||||||
|
- Presets
|
||||||
/providers:
|
/providers:
|
||||||
get:
|
get:
|
||||||
operationId: listProviders
|
operationId: listProviders
|
||||||
|
|||||||
Reference in New Issue
Block a user