{% extends "base.html" %} {% from "macros.html" import cost, pct %} {% block title %}Budgets ยท LLM Admin{% endblock %} {% block content %}
| Scope | Period | Spent | Limit | Tokens | Calls | Worst % | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ b.scope_kind }}{% if b.scope_value %}: {{ b.scope_value }}{% endif %} | {{ b.period }} | {{ cost(b.spent_usd) }} | {{ cost(b.limit_usd) }} | {%- if b.limit_tokens is none -%}—{%- else -%} {{ '{:,}'.format(b.spent_tokens) }} / {{ '{:,}'.format(b.limit_tokens) }} {%- endif -%} | {%- if b.limit_calls is none -%}—{%- else -%} {{ b.run_count }} / {{ b.limit_calls }} {%- endif -%} | {%- if b.pct_dimension -%} {{ pct(b.pct_of_limit) }} {{ b.pct_dimension }} {%- else -%}—{%- endif -%} | {% if b.action == 'block' %} block {% else %} warn {% endif %} |
No budgets configured. Add some to config/budgets.yaml and run sync_budgets_from_yaml().