MCPcopy Create free account
hub / github.com/arctic-cli/interface / getFavoriteModel

Function getFavoriteModel

packages/arctic/src/cli/cmd/stats.ts:428–432  ·  view source on GitHub ↗
(stats: SessionStats)

Source from the content-addressed store, hash-verified

426}
427
428function getFavoriteModel(stats: SessionStats): string | undefined {
429 if (Object.keys(stats.modelUsage).length === 0) return undefined
430 const sorted = Object.entries(stats.modelUsage).sort(([, a], [, b]) => b.tokens - a.tokens)
431 return sorted[0]?.[0]
432}
433
434function getTokenComparison(stats: SessionStats): number | undefined {
435 const multiple = stats.totalTokens / WAR_AND_PEACE_TOKENS

Callers 1

displayStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected