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)


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

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:



200
201
202
# File 'sig/types.rbs', line 200

def choices
  @choices
end

#createdInteger (readonly)

Returns the value of attribute created.

Returns:

  • (Integer)


198
199
200
# File 'sig/types.rbs', line 198

def created
  @created
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


196
197
198
# File 'sig/types.rbs', line 196

def id
  @id
end

#modelString (readonly)

Returns the value of attribute model.

Returns:

  • (String)


199
200
201
# File 'sig/types.rbs', line 199

def model
  @model
end

#objectString (readonly)

Returns the value of attribute object.

Returns:

  • (String)


197
198
199
# File 'sig/types.rbs', line 197

def object
  @object
end

#service_tierString? (readonly)

Returns the value of attribute service_tier.

Returns:

  • (String, nil)


203
204
205
# File 'sig/types.rbs', line 203

def service_tier
  @service_tier
end

#system_fingerprintString? (readonly)

Returns the value of attribute system_fingerprint.

Returns:

  • (String, nil)


202
203
204
# File 'sig/types.rbs', line 202

def system_fingerprint
  @system_fingerprint
end

#usageUsage? (readonly)

Returns the value of attribute usage.

Returns:



201
202
203
# File 'sig/types.rbs', line 201

def usage
  @usage
end