hyperhive/nix
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris cc8f58fb24 feat(stats): make ST4TS model price table operator-tunable
The hive-wide cost estimate on the dashboard's ST4TS tab used a
hard-coded model->price table in hive_stats.rs. Anthropic list pricing
drifts, so move the table to a nix option operators can keep current
without a code change.

- New `services.hyperhive.modelPrices` option: attrset of model-family
  short name -> { input, output, cache_read, cache_write } USD per
  million tokens. Passed to `hive-c0re serve --model-prices <json>`.
- hive_stats: `Prices` is now public + Deserialize; add `PriceTable`
  type and `resolve_prices` (longest case-insensitive substring key
  wins) with the old hard-coded table preserved as `builtin_prices`
  fallback for any model not covered.
- Coordinator holds the parsed table (hive-c0re-local, not injected
  into containers, so not part of HiveEnv); `/api/stats-hive` reads it.
- Docs: dashboard.md ST4TS cost note updated; option self-documents
  via nixosOptionsDoc.

Closes #1434
2026-06-08 20:02:31 +02:00
..
docs docs(options): emit markdown only, render HTML in website 2026-06-05 19:36:54 +02:00
forge-theme forge: use branding/hyperhive.svg for logo and favicon 2026-05-21 17:50:46 +02:00
modules feat(stats): make ST4TS model price table operator-tunable 2026-06-08 20:02:31 +02:00
packages chore: scrub #NNN issue references from code comments and nix descriptions 2026-06-01 13:30:52 +02:00
templates feat: add hyperhive.availableModels option for configurable model picker 2026-06-05 13:47:33 +02:00
assets.nix docs/gotchas.md: extract nix/{assets,docs,templates/weston-vnc} prose (#718 batch 3) 2026-05-31 15:24:39 +02:00
frontend.nix docs(nix): refresh the stale dashboard output-layout comment in frontend.nix 2026-06-07 21:52:37 +02:00