struct

Smith::Stats::ModelStat

Inherits Struct < Value < Object

One provider/model combination as it appears in the breakdown.

Constructors

new(provider : String, model : String)
Source

Instance methods

add(usage : LLM::Usage, rate_cost : Float64 | Nil) : Nil
Source
cost

nil when the rate is unknown — tokens still count, cost says n/a, never a guess (the Pricing rule applies to aggregates too).

Source
label
Source
model
Source
provider
Source
sessions
Source
tokens
Source