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

34 lines
1.0 KiB
YAML

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