Skip to content

Commit a95178f

Browse files
robert-j-yOpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#277)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 63b73f5 commit a95178f

1 file changed

Lines changed: 121 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26279,6 +26279,127 @@ paths:
2627926279
summary: Create a preset from a messages request body
2628026280
tags:
2628126281
- Presets
26282+
/presets/{slug}/responses:
26283+
post:
26284+
description: >-
26285+
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap
26286+
with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
26287+
operationId: createPresetsResponses
26288+
parameters:
26289+
- description: URL-safe slug identifying the preset. Created if it does not exist.
26290+
in: path
26291+
name: slug
26292+
required: true
26293+
schema:
26294+
description: URL-safe slug identifying the preset. Created if it does not exist.
26295+
example: my-preset
26296+
minLength: 1
26297+
type: string
26298+
requestBody:
26299+
content:
26300+
application/json:
26301+
example:
26302+
input: Hello!
26303+
instructions: You are a helpful assistant.
26304+
model: openai/gpt-5.4
26305+
schema:
26306+
$ref: '#/components/schemas/ResponsesRequest'
26307+
required: true
26308+
responses:
26309+
'200':
26310+
content:
26311+
application/json:
26312+
example:
26313+
data:
26314+
created_at: '2026-04-20T10:00:00Z'
26315+
creator_user_id: user_2dHFtVWx2n56w6HkM0000000000
26316+
description: null
26317+
designated_version:
26318+
config:
26319+
model: openai/gpt-5.4
26320+
created_at: '2026-04-20T10:00:00Z'
26321+
creator_id: user_2dHFtVWx2n56w6HkM0000000000
26322+
id: 550e8400-e29b-41d4-a716-446655440000
26323+
preset_id: 650e8400-e29b-41d4-a716-446655440001
26324+
system_prompt: You are a helpful assistant.
26325+
updated_at: '2026-04-20T10:00:00Z'
26326+
version: 1
26327+
designated_version_id: 550e8400-e29b-41d4-a716-446655440000
26328+
id: 650e8400-e29b-41d4-a716-446655440001
26329+
name: my-preset
26330+
slug: my-preset
26331+
status: active
26332+
status_updated_at: null
26333+
updated_at: '2026-04-20T10:00:00Z'
26334+
workspace_id: 750e8400-e29b-41d4-a716-446655440002
26335+
schema:
26336+
$ref: '#/components/schemas/CreatePresetFromInferenceResponse'
26337+
description: Preset created or updated successfully.
26338+
'400':
26339+
content:
26340+
application/json:
26341+
example:
26342+
error:
26343+
code: 400
26344+
message: Invalid request parameters
26345+
schema:
26346+
$ref: '#/components/schemas/BadRequestResponse'
26347+
description: Bad Request - Invalid request parameters or malformed input
26348+
'401':
26349+
content:
26350+
application/json:
26351+
example:
26352+
error:
26353+
code: 401
26354+
message: Missing Authentication header
26355+
schema:
26356+
$ref: '#/components/schemas/UnauthorizedResponse'
26357+
description: Unauthorized - Authentication required or invalid credentials
26358+
'403':
26359+
content:
26360+
application/json:
26361+
example:
26362+
error:
26363+
code: 403
26364+
message: Only management keys can perform this operation
26365+
schema:
26366+
$ref: '#/components/schemas/ForbiddenResponse'
26367+
description: Forbidden - Authentication successful but insufficient permissions
26368+
'404':
26369+
content:
26370+
application/json:
26371+
example:
26372+
error:
26373+
code: 404
26374+
message: Resource not found
26375+
schema:
26376+
$ref: '#/components/schemas/NotFoundResponse'
26377+
description: Not Found - Resource does not exist
26378+
'409':
26379+
content:
26380+
application/json:
26381+
example:
26382+
error:
26383+
code: 409
26384+
message: Resource conflict. Please try again later.
26385+
schema:
26386+
$ref: '#/components/schemas/ConflictResponse'
26387+
description: Conflict - Resource conflict or concurrent modification
26388+
'500':
26389+
content:
26390+
application/json:
26391+
example:
26392+
error:
26393+
code: 500
26394+
message: Internal Server Error
26395+
schema:
26396+
$ref: '#/components/schemas/InternalServerResponse'
26397+
description: Internal Server Error - Unexpected server error
26398+
security:
26399+
- apiKey: []
26400+
summary: Create a preset from a responses request body
26401+
tags:
26402+
- Presets
2628226403
/providers:
2628326404
get:
2628426405
operationId: listProviders

0 commit comments

Comments
 (0)