chore: update OpenAPI spec from monorepo (#276)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-05-27 23:21:46 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 6ceb25ca84
commit 63b73f57d4
+136 -2
View File
@@ -3637,6 +3637,7 @@ components:
- cloudflare
- cohere
- crusoe
- darkbloom
- deepinfra
- deepseek
- dekallm
@@ -10408,6 +10409,7 @@ components:
- Cohere
- Crucible
- Crusoe
- Darkbloom
- DeepInfra
- DeepSeek
- DekaLLM
@@ -15515,6 +15517,7 @@ components:
- Cohere
- Crucible
- Crusoe
- Darkbloom
- DeepInfra
- DeepSeek
- DekaLLM
@@ -15701,6 +15704,10 @@ components:
additionalProperties:
nullable: true
type: object
darkbloom:
additionalProperties:
nullable: true
type: object
deepinfra:
additionalProperties:
nullable: true
@@ -16296,6 +16303,7 @@ components:
- Cohere
- Crucible
- Crusoe
- Darkbloom
- DeepInfra
- DeepSeek
- DekaLLM
@@ -20599,6 +20607,7 @@ paths:
- cloudflare
- cohere
- crusoe
- darkbloom
- deepinfra
- deepseek
- dekallm
@@ -26044,7 +26053,7 @@ paths:
role: system
- content: Hello!
role: user
model: openai/gpt-4o
model: openai/gpt-5.4
temperature: 0.7
schema:
$ref: '#/components/schemas/ChatRequest'
@@ -26060,7 +26069,7 @@ paths:
description: null
designated_version:
config:
model: openai/gpt-4o
model: openai/gpt-5.4
temperature: 0.7
created_at: '2026-04-20T10:00:00Z'
creator_id: user_2dHFtVWx2n56w6HkM0000000000
@@ -26145,6 +26154,131 @@ paths:
summary: Create a preset from a chat-completions request body
tags:
- 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:
get:
operationId: listProviders