struct OpenAI::CompletionResponse

Included Modules

Extended Modules

Defined in:

openai/api/completion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def choices : Array(CompletionChoice) #

The list of completion choices the model generated for the input prompt.


[View source]
def created : Time #

[View source]
def id : String #

A unique identifier for the completion.


[View source]
def model : String #

The model used for the completion.


[View source]
def object : String #

The object type, which is always "text_completion"


[View source]
def usage : Usage | Nil #

Usage statistics for the completion request.


[View source]