struct OpenAI::CompletionResponse
- OpenAI::CompletionResponse
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/completion.crConstructors
Instance Method Summary
-
#choices : Array(CompletionChoice)
The list of completion choices the model generated for the input prompt.
- #created : Time
-
#id : String
A unique identifier for the completion.
-
#model : String
The model used for the completion.
-
#object : String
The object type, which is always "text_completion"
-
#usage : Usage | Nil
Usage statistics for the completion request.
Constructor Detail
Instance Method Detail
def choices : Array(CompletionChoice)
#
The list of completion choices the model generated for the input prompt.