View Source
ExOpenAi.Completion
(ex_open_ai v0.1.3)
Represents a completion request to the OpenAI API.
TODO: EXAMPLES
TODO: ENFORCE REQUIRED FIELDS
@spec do_new(
%ExOpenAi.Completion{
choices: term(),
created: term(),
id: term(),
model: term(),
object: term(),
usage: term()
},
attributes :: list()
) :: %ExOpenAi.Completion{
choices: term(),
created: term(),
id: term(),
model: term(),
object: term(),
usage: term()
}
@spec new() :: %ExOpenAi.Completion{
choices: term(),
created: term(),
id: term(),
model: term(),
object: term(),
usage: term()
}
@spec new(attributes :: list()) :: %ExOpenAi.Completion{
choices: term(),
created: term(),
id: term(),
model: term(),
object: term(),
usage: term()
}