+ {`${format(statsData.range.from, RANGE_DISPLAY_FORMAT)} – ${format(statsData.range.to, RANGE_DISPLAY_FORMAT)}`} +
+ {isFiltered ? ( + <> ++ Prompts, streak, activity, tool reliability and sessions cannot be split per model, + so they are hidden while a model filter is active. +
+ > + ) : ( + <> +Choose a start and end time to see usage for a custom range.
+ } + if (stats.isPending) { + return ( +No model usage in this range.
+ ) : ( +| Model | +Steps | +Tokens | +Cost | +Share | +
|---|---|---|---|---|
| {modelUsageKey(model.model)} | +{String(model.steps)} | +{formatCompactTokens(totalTokens(model.tokens))} | +{formatUsd(model.cost)} | +{share} | +
+ Lifetime totals of sessions active in this range. +
+ {isLoading && sortedSessions.length === 0 ? ( +Loading sessions…
+ ) : sortedSessions.length === 0 ? ( +No sessions in this range.
+ ) : ( + <> +| + Session + | ++ Steps + | ++ Input + | ++ Output + | ++ Cache read + | ++ Avg tokens/s + | ++ Cost + | +
|---|---|---|---|---|---|---|
| {renderTitle(session)} | +{metrics.steps} | ++ {formatCompactTokens(session.tokens.input)} + | ++ {formatCompactTokens(session.tokens.output)} + | ++ {formatCompactTokens(session.tokens.cache.read)} + | +{metrics.throughput} | ++ {formatUsd(session.cost)} + | +
{stat.label}
+{stat.value}
+No tool calls in this range.
+ ) : ( +| Tool | +Calls | +Succeeded | +Failed | +Unfinished | +P50 | +
|---|---|---|---|---|---|
| {entry.name} | +{String(entry.calls)} | +{String(entry.succeeded)} | +{String(entry.failed)} | +{String(entry.unfinished)} | ++ {entry.durationP50 !== undefined ? `${Math.round(entry.durationP50)} ms` : '—'} + | +
| Total | +{String(totals.calls)} | +{String(totals.succeeded)} | +{String(totals.failed)} | +{String(totals.unfinished)} | +— | +