ExOpenAI.Engines.retrieve_engine

You're seeing just the function retrieve_engine, go back to ExOpenAI.Engines module for more information.
Link to this function

retrieve_engine(engine_id, opts \\ [])

View Source
This function is deprecated. Deprecated by OpenAI.

Specs

retrieve_engine(String.t(),
  openai_organization_key: String.t(),
  openai_api_key: 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:

  • openai_api_key: OpenAI API key to pass directly. If this is specified, it will override the api_key config value.

  • openai_organization_key: OpenAI API key to pass directly. If this is specified, it will override the organization_key config value.