ExOpenAI.Engines (ex_openai.ex v1.0.4) View Source

Modules for interacting with the engines group of OpenAI APIs

API Reference: https://platform.openai.com/docs/api-reference/engines

Link to this section Summary

Functions

Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability.

Retrieves a model instance, providing basic information about it such as the owner and availability.

Link to this section Functions

Link to this function

list_engines(opts \\ [])

View Source
This function is deprecated. Deprecated by OpenAI.

Specs

list_engines([]) ::
  {:ok, ExOpenAI.Components.ListEnginesResponse.t()} | {:error, any()}

Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability.

Endpoint: https://api.openai.com/v1/engines

Method: GET

Docs: https://platform.openai.com/docs/api-reference/engines


Required Arguments:

Optional Arguments:

Link to this function

retrieve_engine(engine_id, opts \\ [])

View Source
This function is deprecated. Deprecated by OpenAI.

Specs

retrieve_engine(String.t(), []) ::
  {:ok, ExOpenAI.Components.Engine.t()} | {:error, any()}

Retrieves a model instance, providing basic information about it such as the owner and availability.

Endpoint: https://api.openai.com/v1/engines/{engine_id}

Method: GET

Docs: https://platform.openai.com/docs/api-reference/engines


Required Arguments:

  • engine_id

Example: davinci

Optional Arguments: