@@ -3637,6 +3637,7 @@ components:
36373637 - cloudflare
36383638 - cohere
36393639 - crusoe
3640+ - darkbloom
36403641 - deepinfra
36413642 - deepseek
36423643 - dekallm
@@ -10408,6 +10409,7 @@ components:
1040810409 - Cohere
1040910410 - Crucible
1041010411 - Crusoe
10412+ - Darkbloom
1041110413 - DeepInfra
1041210414 - DeepSeek
1041310415 - DekaLLM
@@ -15515,6 +15517,7 @@ components:
1551515517 - Cohere
1551615518 - Crucible
1551715519 - Crusoe
15520+ - Darkbloom
1551815521 - DeepInfra
1551915522 - DeepSeek
1552015523 - DekaLLM
@@ -15701,6 +15704,10 @@ components:
1570115704 additionalProperties:
1570215705 nullable: true
1570315706 type: object
15707+ darkbloom:
15708+ additionalProperties:
15709+ nullable: true
15710+ type: object
1570415711 deepinfra:
1570515712 additionalProperties:
1570615713 nullable: true
@@ -16296,6 +16303,7 @@ components:
1629616303 - Cohere
1629716304 - Crucible
1629816305 - Crusoe
16306+ - Darkbloom
1629916307 - DeepInfra
1630016308 - DeepSeek
1630116309 - DekaLLM
@@ -20599,6 +20607,7 @@ paths:
2059920607 - cloudflare
2060020608 - cohere
2060120609 - crusoe
20610+ - darkbloom
2060220611 - deepinfra
2060320612 - deepseek
2060420613 - dekallm
@@ -26044,7 +26053,7 @@ paths:
2604426053 role: system
2604526054 - content: Hello!
2604626055 role: user
26047- model: openai/gpt-4o
26056+ model: openai/gpt-5.4
2604826057 temperature: 0.7
2604926058 schema:
2605026059 $ref: '#/components/schemas/ChatRequest'
@@ -26060,7 +26069,7 @@ paths:
2606026069 description: null
2606126070 designated_version:
2606226071 config:
26063- model: openai/gpt-4o
26072+ model: openai/gpt-5.4
2606426073 temperature: 0.7
2606526074 created_at: '2026-04-20T10:00:00Z'
2606626075 creator_id: user_2dHFtVWx2n56w6HkM0000000000
@@ -26145,6 +26154,131 @@ paths:
2614526154 summary: Create a preset from a chat-completions request body
2614626155 tags:
2614726156 - Presets
26157+ /presets/{slug}/messages:
26158+ post:
26159+ description: >-
26160+ Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap
26161+ with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
26162+ operationId: createPresetsMessages
26163+ parameters:
26164+ - description: URL-safe slug identifying the preset. Created if it does not exist.
26165+ in: path
26166+ name: slug
26167+ required: true
26168+ schema:
26169+ description: URL-safe slug identifying the preset. Created if it does not exist.
26170+ example: my-preset
26171+ minLength: 1
26172+ type: string
26173+ requestBody:
26174+ content:
26175+ application/json:
26176+ example:
26177+ max_tokens: 1024
26178+ messages:
26179+ - content: Hello!
26180+ role: user
26181+ model: anthropic/claude-4.6-sonnet
26182+ system: You are a helpful assistant.
26183+ schema:
26184+ $ref: '#/components/schemas/MessagesRequest'
26185+ required: true
26186+ responses:
26187+ '200':
26188+ content:
26189+ application/json:
26190+ example:
26191+ data:
26192+ created_at: '2026-04-20T10:00:00Z'
26193+ creator_user_id: user_2dHFtVWx2n56w6HkM0000000000
26194+ description: null
26195+ designated_version:
26196+ config:
26197+ max_tokens: 1024
26198+ model: anthropic/claude-4.6-sonnet
26199+ created_at: '2026-04-20T10:00:00Z'
26200+ creator_id: user_2dHFtVWx2n56w6HkM0000000000
26201+ id: 550e8400-e29b-41d4-a716-446655440000
26202+ preset_id: 650e8400-e29b-41d4-a716-446655440001
26203+ system_prompt: You are a helpful assistant.
26204+ updated_at: '2026-04-20T10:00:00Z'
26205+ version: 1
26206+ designated_version_id: 550e8400-e29b-41d4-a716-446655440000
26207+ id: 650e8400-e29b-41d4-a716-446655440001
26208+ name: my-preset
26209+ slug: my-preset
26210+ status: active
26211+ status_updated_at: null
26212+ updated_at: '2026-04-20T10:00:00Z'
26213+ workspace_id: 750e8400-e29b-41d4-a716-446655440002
26214+ schema:
26215+ $ref: '#/components/schemas/CreatePresetFromInferenceResponse'
26216+ description: Preset created or updated successfully.
26217+ '400':
26218+ content:
26219+ application/json:
26220+ example:
26221+ error:
26222+ code: 400
26223+ message: Invalid request parameters
26224+ schema:
26225+ $ref: '#/components/schemas/BadRequestResponse'
26226+ description: Bad Request - Invalid request parameters or malformed input
26227+ '401':
26228+ content:
26229+ application/json:
26230+ example:
26231+ error:
26232+ code: 401
26233+ message: Missing Authentication header
26234+ schema:
26235+ $ref: '#/components/schemas/UnauthorizedResponse'
26236+ description: Unauthorized - Authentication required or invalid credentials
26237+ '403':
26238+ content:
26239+ application/json:
26240+ example:
26241+ error:
26242+ code: 403
26243+ message: Only management keys can perform this operation
26244+ schema:
26245+ $ref: '#/components/schemas/ForbiddenResponse'
26246+ description: Forbidden - Authentication successful but insufficient permissions
26247+ '404':
26248+ content:
26249+ application/json:
26250+ example:
26251+ error:
26252+ code: 404
26253+ message: Resource not found
26254+ schema:
26255+ $ref: '#/components/schemas/NotFoundResponse'
26256+ description: Not Found - Resource does not exist
26257+ '409':
26258+ content:
26259+ application/json:
26260+ example:
26261+ error:
26262+ code: 409
26263+ message: Resource conflict. Please try again later.
26264+ schema:
26265+ $ref: '#/components/schemas/ConflictResponse'
26266+ description: Conflict - Resource conflict or concurrent modification
26267+ '500':
26268+ content:
26269+ application/json:
26270+ example:
26271+ error:
26272+ code: 500
26273+ message: Internal Server Error
26274+ schema:
26275+ $ref: '#/components/schemas/InternalServerResponse'
26276+ description: Internal Server Error - Unexpected server error
26277+ security:
26278+ - apiKey: []
26279+ summary: Create a preset from a messages request body
26280+ tags:
26281+ - Presets
2614826282 /providers:
2614926283 get:
2615026284 operationId: listProviders
0 commit comments