Files
bifrost/docs/openapi/paths/inference/text-completions.yaml
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

34 lines
1023 B
YAML

text-completions:
post:
operationId: createTextCompletion
summary: Create a text completion
description: |
Creates a completion for the provided prompt. Supports streaming via SSE.
tags:
- Text Completions
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../schemas/inference/text.yaml#/TextCompletionRequest'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../schemas/inference/text.yaml#/TextCompletionResponse'
text/event-stream:
schema:
$ref: '../../schemas/inference/text.yaml#/TextCompletionStreamResponse'
'400':
$ref: '../../openapi.yaml#/components/responses/BadRequest'
'500':
$ref: '../../openapi.yaml#/components/responses/InternalError'
security:
- BearerAuth: []
- BasicAuth: []
- VirtualKeyAuth: []
- ApiKeyAuth: []