choonkeat/elm-openai/2.1.0

NOTE: the latest version is 3.0.0

OpenAI.Model

The OpenAI API is powered by a family of models with different capabilities and price points. You can also customize our base models for your specific use case with fine-tuning.

See https://beta.openai.com/docs/models

getModel : ModelID -> TaskInput (Error String) Model

https://beta.openai.com/docs/api-reference/models/retrieve

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

listModels : TaskInput (Error String) (List Model)

https://beta.openai.com/docs/api-reference/models/list

Lists the currently available models, and provides basic information about each one such as the owner and availability.

type alias Model =
{ id : String
, object : String
, owned_by : String
, permission : List Permission
}

You can refer to the Models documentation to understand what models are available and the differences between them.

https://platform.openai.com/docs/models

type alias Permission =
{ id : String
, object : String
, created : Posix
, allow_create_engine : Bool
, allow_sampling : Bool
, allow_logprobs : Bool
, allow_search_indices : Bool
, allow_view : Bool
, allow_fine_tuning : Bool
, organization : String
, group : Maybe String
, is_blocking : Bool
}