Class: LiterLlm::ChatCompletionChunk
- Inherits:
-
Object
- Object
- LiterLlm::ChatCompletionChunk
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#choices ⇒ Array[StreamChoice]
readonly
Returns the value of attribute choices.
-
#created ⇒ Integer
readonly
Returns the value of attribute created.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#model ⇒ String
readonly
Returns the value of attribute model.
-
#object ⇒ String
readonly
Returns the value of attribute object.
-
#service_tier ⇒ String?
readonly
Returns the value of attribute service_tier.
-
#system_fingerprint ⇒ String?
readonly
Returns the value of attribute system_fingerprint.
-
#usage ⇒ Usage?
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize ⇒ ChatCompletionChunk
constructor
A new instance of ChatCompletionChunk.
Constructor Details
#initialize ⇒ ChatCompletionChunk
Returns a new instance of ChatCompletionChunk.
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
#choices ⇒ Array[StreamChoice] (readonly)
Returns the value of attribute choices.
222 223 224 |
# File 'sig/types.rbs', line 222 def choices @choices end |
#created ⇒ Integer (readonly)
Returns the value of attribute created.
220 221 222 |
# File 'sig/types.rbs', line 220 def created @created end |
#id ⇒ String (readonly)
Returns the value of attribute id.
218 219 220 |
# File 'sig/types.rbs', line 218 def id @id end |
#model ⇒ String (readonly)
Returns the value of attribute model.
221 222 223 |
# File 'sig/types.rbs', line 221 def model @model end |
#object ⇒ String (readonly)
Returns the value of attribute object.
219 220 221 |
# File 'sig/types.rbs', line 219 def object @object end |
#service_tier ⇒ String? (readonly)
Returns the value of attribute service_tier.
225 226 227 |
# File 'sig/types.rbs', line 225 def service_tier @service_tier end |
#system_fingerprint ⇒ String? (readonly)
Returns the value of attribute system_fingerprint.
224 225 226 |
# File 'sig/types.rbs', line 224 def system_fingerprint @system_fingerprint end |
#usage ⇒ Usage? (readonly)
Returns the value of attribute usage.
223 224 225 |
# File 'sig/types.rbs', line 223 def usage @usage end |