Artifact 5d6085efae2caeaf1ba8453ccad7cb680fb92858c03377ffed089ec701409361:
- File
src/models.c
-
2026-11-19 23:24:39
— part of check-in
[fe63b75bbd]
on branch cost
— Model prices and real costs, as Pi's
The catalog snapshot (regenerated from pi.dev) keeps each model's per-Mtok prices and tiers, as do the pi.dev overlay and models.json. Each reply is priced as Pi's calculateCost does: tiers, 1-hour cache writes, per-API usage normalisation, OpenRouter's billed total. The cost and Pi's normalised token counts are stored with the generation and appear in usage events, the Pi export, pic models --json and, per conversation, pic sessions --json. (user: dmestas, size: 31054) [annotate] [blame] [check-ins using]
- 2026-11-20 00:37:51 — part of check-in [d23959e47c] on branch trunk — CI green on facfe0d2409e; Fil-C pass (213) (user: dmestas, size: 31054) [annotate] [blame] [check-ins using]
-
2026-11-19 23:24:39
— part of check-in
[fe63b75bbd]
on branch cost
— Model prices and real costs, as Pi's