fix(cost): per-model pricing so pi/Paperclip report real spend

The omni provider's models.json entries carried no 'cost' field, so pi's
calculateCost() returned 0 for every run and Paperclip cost events/budgets
all read $0.00 despite real spend.

- scripts/omni-pricing.mjs: pulls authoritative prices (OmniRoute /api/pricing
  for deepseek/*, OpenRouter /api/v1/models for openrouter/*) and injects
  { cost: { input, output, cacheRead, cacheWrite } } USD per 1M tokens.
- Priced: deepseek-v4-flash, deepseek-v4-pro, gemini-3.1-flash-lite, gemini-2.5-flash.
- Must be re-run after every /omni sync, which rewrites models.json wholesale.
This commit is contained in:
2026-09-27 18:37:24 +10:00
parent 3f36f599ce
commit 3a8a6e98b1
2 changed files with 5478 additions and 5290 deletions

10604
models.json

File diff suppressed because it is too large Load Diff