Crig::Providers::Copilot::ChatCompletionResponse
Inherits JSON::Serializable < Struct < Value < Object
Copilot-specific chat completion response (when not reusing OpenAI's directly)
Constructors
new(id : String, model : String, choices : Array(ChatChoice), object : String | Nil = nil, created : Int64 | Nil = nil, usage : Crig::Providers::OpenAI::OpenAIUsage | Nil = nil, system_fingerprint : String | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
choices
Sourcecreated
Sourceid
Sourcemodel
Sourceobject
Sourcesystem_fingerprint
Sourceusage
Source