{% extends "admin/base_site.html" %}
{% block extrastyle %}{{ block.super }}
{% endblock %}
{% block breadcrumbs %}
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 %}
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
| Suite | Score | Cost (USD) | Per case | When |
{% for run in last_evals %}
| {{ 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" }} |
{% empty %}
No runs yet. Try manage.py llm_evaluate evals/. |
{% endfor %}
{% endblock %}