API calls for all endpoints tagged ChatCompletions.
Summary
Functions
Create a chat completion Creates a completion for the provided messages. Supports streaming via SSE.
Functions
@spec create_chat_completion( Tesla.Env.client(), ExBifrost.Model.ChatCompletionRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.ChatCompletionResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create a chat completion Creates a completion for the provided messages. Supports streaming via SSE.
Parameters
connection(ExBifrost.Connection): Connection to serverchat_completion_request(ChatCompletionRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.ChatCompletionResponse.t}on success{:error, Tesla.Env.t}on failure