Class: LiterLlm::ChatCompletionResponse

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChatCompletionResponse

Returns a new instance of ChatCompletionResponse.

Parameters:

  • id: (String)
  • object: (String)
  • created: (Integer)
  • model: (String)
  • choices: (Array[Choice])
  • usage: (Usage)
  • system_fingerprint: (String)
  • service_tier: (String)


194
# File 'sig/types.rbs', line 194

def initialize: (?id: String, ?object: String, ?created: Integer, ?model: String, ?choices: Array[Choice], ?usage: Usage, ?system_fingerprint: String, ?service_tier: String) -> void

Instance Attribute Details

#choicesArray[Choice]?

Returns the value of attribute choices.

Returns:



189
190
191
# File 'sig/types.rbs', line 189

def choices
  @choices
end

#createdInteger?

Returns the value of attribute created.

Returns:

  • (Integer, nil)


187
188
189
# File 'sig/types.rbs', line 187

def created
  @created
end

#idString?

Returns the value of attribute id.

Returns:

  • (String, nil)


185
186
187
# File 'sig/types.rbs', line 185

def id
  @id
end

#modelString?

Returns the value of attribute model.

Returns:

  • (String, nil)


188
189
190
# File 'sig/types.rbs', line 188

def model
  @model
end

#objectString?

Returns the value of attribute object.

Returns:

  • (String, nil)


186
187
188
# File 'sig/types.rbs', line 186

def object
  @object
end

#service_tierString?

Returns the value of attribute service_tier.

Returns:

  • (String, nil)


192
193
194
# File 'sig/types.rbs', line 192

def service_tier
  @service_tier
end

#system_fingerprintString?

Returns the value of attribute system_fingerprint.

Returns:

  • (String, nil)


191
192
193
# File 'sig/types.rbs', line 191

def system_fingerprint
  @system_fingerprint
end

#usageUsage?

Returns the value of attribute usage.

Returns:



190
191
192
# File 'sig/types.rbs', line 190

def usage
  @usage
end