Class: LiterLlm::ChatCompletionChunk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChatCompletionChunk

Returns a new instance of ChatCompletionChunk.

Parameters:

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


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

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

Instance Attribute Details

#choicesArray[StreamChoice] (readonly)

Returns the value of attribute choices.

Returns:



222
223
224
# File 'sig/types.rbs', line 222

def choices
  @choices
end

#createdInteger (readonly)

Returns the value of attribute created.

Returns:

  • (Integer)


220
221
222
# File 'sig/types.rbs', line 220

def created
  @created
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


218
219
220
# File 'sig/types.rbs', line 218

def id
  @id
end

#modelString (readonly)

Returns the value of attribute model.

Returns:

  • (String)


221
222
223
# File 'sig/types.rbs', line 221

def model
  @model
end

#objectString (readonly)

Returns the value of attribute object.

Returns:

  • (String)


219
220
221
# File 'sig/types.rbs', line 219

def object
  @object
end

#service_tierString? (readonly)

Returns the value of attribute service_tier.

Returns:

  • (String, nil)


225
226
227
# File 'sig/types.rbs', line 225

def service_tier
  @service_tier
end

#system_fingerprintString? (readonly)

Returns the value of attribute system_fingerprint.

Returns:

  • (String, nil)


224
225
226
# File 'sig/types.rbs', line 224

def system_fingerprint
  @system_fingerprint
end

#usageUsage? (readonly)

Returns the value of attribute usage.

Returns:



223
224
225
# File 'sig/types.rbs', line 223

def usage
  @usage
end