ExBifrost.Api.ChatCompletions (ex_bifrost v0.1.0)

Copy Markdown View Source

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

create_chat_completion(connection, chat_completion_request, opts \\ [])

Create a chat completion Creates a completion for the provided messages. Supports streaming via SSE.

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • chat_completion_request (ChatCompletionRequest):
  • opts (keyword): Optional parameters

Returns

  • {:ok, ExBifrost.Model.ChatCompletionResponse.t} on success
  • {:error, Tesla.Env.t} on failure