struct

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

choices
Source
created
Source
model
Source
object
Source
system_fingerprint
Source
usage
Source