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)


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

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] (readonly)

Returns the value of attribute choices.

Returns:



174
175
176
# File 'sig/types.rbs', line 174

def choices
  @choices
end

#createdInteger (readonly)

Returns the value of attribute created.

Returns:

  • (Integer)


172
173
174
# File 'sig/types.rbs', line 172

def created
  @created
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


170
171
172
# File 'sig/types.rbs', line 170

def id
  @id
end

#modelString (readonly)

Returns the value of attribute model.

Returns:

  • (String)


173
174
175
# File 'sig/types.rbs', line 173

def model
  @model
end

#objectString (readonly)

Returns the value of attribute object.

Returns:

  • (String)


171
172
173
# File 'sig/types.rbs', line 171

def object
  @object
end

#service_tierString? (readonly)

Returns the value of attribute service_tier.

Returns:

  • (String, nil)


177
178
179
# File 'sig/types.rbs', line 177

def service_tier
  @service_tier
end

#system_fingerprintString? (readonly)

Returns the value of attribute system_fingerprint.

Returns:

  • (String, nil)


176
177
178
# File 'sig/types.rbs', line 176

def system_fingerprint
  @system_fingerprint
end

#usageUsage? (readonly)

Returns the value of attribute usage.

Returns:



175
176
177
# File 'sig/types.rbs', line 175

def usage
  @usage
end