hyperhive/nix/modules
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
..
hive-c0re.nix feat(stats): make ST4TS model price table operator-tunable 2026-06-08 20:02:31 +02:00
hive-ci.nix chore(ci): drop issue tag from hive-ci-prefetch 401 log string 2026-06-06 12:34:51 +02:00
hive-forge.nix fix(#981): enable Forgejo Actions so runner registration token API works 2026-06-01 18:38:44 +02:00
hive-gateway.nix refactor(gateway): extract the _ vhost agent + dashboard location groups 2026-06-07 21:52:23 +02:00
hive-matrix.nix fix(matrix): address argus review — drop in-code issue tag + dead nameservers 2026-06-08 18:06:20 +02:00
hive-network.nix refactor: remove hyperhive.role option — there is only one role: agent 2026-06-04 14:31:44 +02:00