struct

Crig::Providers::OpenAI::Chat::CompletionResponse

Inherits Crig::Telemetry::ProviderResponseExt < JSON::Serializable < Struct < Value < Object

Constructors

from_json_value(value : JSON::Any) : self
Source
new(id : String, object : String, created : Int64, model : String, choices : Array(Choice), usage : 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
output_messages
Source
response_id
Source
response_model_name
Source
system_fingerprint
Source
text_response
Source
to_completion_response(raw_response : JSON::Any) : Crig::Completion::CompletionResponse(JSON::Any)
Source
usage
Source