v5

latestOpenAPI 3.1.02026-08-04166362486.5 KB
completions

Create a chat completion

Create a chat completion using the provided parameters.

Generates a completion response based on the chat messages and model parameters provided. The response can be either a full completion or streamed chunks depending on the request parameters.

Args: params: Parameters for creating the chat completion including messages, model selection, and generation settings user: The authenticated user making the request

Returns: Either a ChatCompletion containing the full response, or ChatCompletionChunk for streaming

Raises: HTTPException: If there is an error creating the completion (500)

post/v1/chat/completions

Response

The generated chat completion response

{"stackTrail":"paths:/v1/chat/completions:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}