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
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:
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