portal: budget notices by email, off by default

Warns a member at 80% of their monthly cap and again when it is exhausted, using the welcome email's template shell. Spend and budget come from LiteLLM's Postgres, the same source the dashboard shows. One notice per level per budget cycle. BUDGET_NOTICES=off|dryrun|on gates sending; POST /admin/budget-notices previews at any time and refuses to send unless the flag is on. Rides the existing sweep cron, wrapped so it cannot break reconciliation.
This commit is contained in:
inference-bot committed 2026-10-31 16:25:36 +00:00
1 parent 76d59b3fb6
commit 87e7c5b30e
2 files changed
+240 -1

No files matched your search

+1 -1
View File
@@ -31,5 +31,5 @@
"manifestVersion": 2,
"website": "https://inference.coop",
"contactEmail": "info@inference.coop",
"dockerImage": "registry.inference.coop/co-op/member-portal:20261030-6475a51"
"dockerImage": "registry.inference.coop/co-op/member-portal:20261031-76d59b3"
}