{% extends "admin/base_site.html" %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
Spent this month
${{ spent|floatformat:2 }}
{% if spent_local is not None %}
{{ local_code }} {{ spent_local|floatformat:2 }}
{% endif %} {% if budget is not None %}
budget ${{ budget|floatformat:2 }}
{% endif %}
Calls ({{ days }} days)
{{ totals.calls }}
{{ totals.cached }} from cache
Error rate
{{ error_rate|floatformat:1 }}%
{{ totals.fallbacks }} answered by fallback
Avg latency
{{ totals.latency|default:0|floatformat:0 }} ms
{% if totals.unpriced %}
Unpriced calls
{{ totals.unpriced }}
add the model to LLM_LEDGER["PRICES"]
{% endif %}
{% if feature_budgets %}

Budgets per feature (this month)

{% for row in feature_budgets %} {% endfor %}
FeatureSpent (USD)Budget (USD)
{{ row.feature }} {{ row.spent|floatformat:2 }} {{ row.budget|floatformat:2 }}
{% endif %}

Cost per day

{% for d in per_day %}{% endfor %}

By feature

{% include "admin/llm_ledger/_group_table.html" with rows=by_feature %}

By model

{% include "admin/llm_ledger/_group_table.html" with rows=by_model %}

Top users

{% include "admin/llm_ledger/_group_table.html" with rows=by_user %}

Last evaluations

{% for run in last_evals %} {% empty %} {% endfor %}
SuiteScoreCost (USD)Per caseWhen
{{ run.suite }}{% if run.model %} [{{ run.model }}]{% endif %}{{ run.passed }}/{{ run.total }}{% if run.cost_usd is not None %}{{ run.cost_usd|floatformat:4 }}{% else %}—{% endif %}{% if run.latency_ms %}{{ run.latency_ms }} ms{% else %}—{% endif %}{{ run.created_at|date:"SHORT_DATETIME_FORMAT" }}
No runs yet. Try manage.py llm_evaluate evals/.
{% endblock %}