OpenAi.Models (OpenAI REST API Client v0.2.1)
Provides API endpoints related to models
Summary
Functions
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Functions
Link to this function
delete_model(model, opts \\ [])
@spec delete_model( String.t(), keyword() ) :: {:ok, OpenAi.Model.DeleteResponse.t()} | {:error, OpenAi.Error.error()}
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
Link to this function
list_models(opts \\ [])
@spec list_models(keyword()) :: {:ok, OpenAi.Model.ListResponse.t()} | {:error, OpenAi.Error.error()}
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Link to this function
retrieve_model(model, opts \\ [])
@spec retrieve_model( String.t(), keyword() ) :: {:ok, OpenAi.Model.t()} | {:error, OpenAi.Error.error()}
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.