ExBifrost.Api.TextCompletions (ex_bifrost v0.1.0)

Copy Markdown View Source

API calls for all endpoints tagged TextCompletions.

Summary

Functions

Create a text completion Creates a completion for the provided prompt. Supports streaming via SSE.

Functions

create_text_completion(connection, text_completion_request, opts \\ [])

Create a text completion Creates a completion for the provided prompt. Supports streaming via SSE.

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • text_completion_request (TextCompletionRequest):
  • opts (keyword): Optional parameters

Returns

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