struct Turquoise::Eloquent::Chat::Completion
- Turquoise::Eloquent::Chat::Completion
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
turquoise/eloquent/api.crConstructors
Instance Method Summary
- #choices : Array(NamedTuple(index: Int32, message: Message, finish_reason: String))
- #choices=(choices : Array(NamedTuple(index: Int32, message: Message, finish_reason: String)))
- #created : Int32
- #created=(created : Int32)
- #id : String
- #id=(id : String)
- #model : String
- #model=(model : String)
- #object : String
- #object=(object : String)
- #usage : NamedTuple(prompt_tokens: Int32, completion_tokens: Int32, total_tokens: Int32)
- #usage=(usage : NamedTuple(prompt_tokens: Int32, completion_tokens: Int32, total_tokens: Int32))
Constructor Detail
Instance Method Detail
def usage : NamedTuple(prompt_tokens: Int32, completion_tokens: Int32, total_tokens: Int32)
#
def usage=(usage : NamedTuple(prompt_tokens: Int32, completion_tokens: Int32, total_tokens: Int32))
#