From 63b73f57d474ee10007b7030e059786c3a819ca5 Mon Sep 17 00:00:00 2001 From: robert-j-y <212159665+robert-j-y@users.noreply.github.com> Date: Wed, 27 May 2026 23:21:46 -0700 Subject: [PATCH] chore: update OpenAPI spec from monorepo (#276) Co-authored-by: OpenRouter SDK Bot --- .speakeasy/in.openapi.yaml | 138 ++++++++++++++++++++++++++++++++++++- 1 file changed, 136 insertions(+), 2 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 4d50019..22e9a9a 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -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