{% extends "admin/base_site.html" %} {% load i18n static %} {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% trans "Today" %} {% trans "This month" %}

{% if filters.clamped %}

{% if filters.period == "day" %} {% trans "Hourly view shows at most 7 days. The end date was adjusted." %} {% else %} {% trans "Daily view shows at most 366 days. The end date was adjusted." %} {% endif %}

{% endif %} {% if page.p95_approximate %}

{% blocktrans with sample_size=page.p95_sample_size %}p95 is computed from the {{ sample_size }} most recent rows in this range.{% endblocktrans %}

{% endif %} {% if page.has_other %}

{% trans "Additional series are grouped as Other." %}

{% endif %}

{% blocktrans with period=page.prior_period %}Compared with {{ period }}{% endblocktrans %}

{% trans "Total cost" %}
{{ page.cost }}
{% include "admin/django_openrouter/requestlog/dashboard_delta.html" with delta=page.deltas.cost %}
{% trans "Requests" %}
{{ page.requests }}
{% include "admin/django_openrouter/requestlog/dashboard_delta.html" with delta=page.deltas.requests %}
{% trans "Error rate" %}
{{ page.error_rate }}
{% include "admin/django_openrouter/requestlog/dashboard_delta.html" with delta=page.deltas.error_rate %}
{% trans "p95 latency" %}
{{ page.p95_latency }}
{% include "admin/django_openrouter/requestlog/dashboard_delta.html" with delta=page.deltas.latency %}
{% trans "Avg latency" %}
{{ page.avg_latency }}
{% trans "Total tokens" %}
{{ page.total_tokens }}
{% trans "Avg tokens" %}
{{ page.avg_tokens }}
{% trans "p95 tokens" %}
{{ page.p95_tokens }}
{% trans "How these numbers are counted" %}

{% blocktrans %}Non-2xx responses, including 402, 429, 499 and 5xx, count as errors. In-flight reservations (status 0) stay non-2xx until they are reconciled. Budget percentages use the current calendar day and month and the same rules as limit enforcement: every row counts toward cost, and HTTP errors other than 499 do not count toward the request limit. The model filter does not change those budget totals.{% endblocktrans %}

{% if page.empty %}

{% trans "No requests in this range." %}

{% else %} {% for section in page.sections %}

{{ section.title }}

{% for chart in section.charts %}
{{ chart.title }}
{% if chart.empty %}

{% trans "No requests in this range." %}

{% else %}
{% endif %}
{% endfor %}
{% endfor %}

{% trans "Top expensive profiles" %}

{% include "admin/django_openrouter/requestlog/dashboard_groups.html" with rows=page.top_profiles %}

{% trans "Top expensive models" %}

{% include "admin/django_openrouter/requestlog/dashboard_groups.html" with rows=page.top_models %}

{% trans "By profile" %}

{% if page.profiles_truncated %}

{% trans "Showing the 50 profiles with the highest cost in this range." %}

{% endif %} {% include "admin/django_openrouter/requestlog/dashboard_groups.html" with rows=page.by_profile %}

{% trans "By model" %}

{% if page.models_truncated %}

{% trans "Showing the 50 models with the highest cost in this range." %}

{% endif %} {% include "admin/django_openrouter/requestlog/dashboard_groups.html" with rows=page.by_model %} {% endif %}

{% trans "Budgets" %}

{% if page.budgets %}
{% for row in page.budgets %} {% endfor %}
{% trans "Profile" %} {% trans "Daily requests" %} {% trans "Daily request limit" %} {% trans "Daily request use" %} {% trans "Monthly requests" %} {% trans "Monthly request limit" %} {% trans "Monthly request use" %} {% trans "Daily cost" %} {% trans "Daily budget" %} {% trans "Daily budget use" %} {% trans "Monthly cost" %} {% trans "Monthly budget" %} {% trans "Monthly budget use" %}
{{ row.name }} {{ row.day_requests }} {{ row.day_request_limit }} {{ row.day_request_pct }} {{ row.month_requests }} {{ row.month_request_limit }} {{ row.month_request_pct }} {{ row.day_cost }} {{ row.day_budget }} {{ row.day_cost_pct }} {{ row.month_cost }} {{ row.month_budget }} {{ row.month_cost_pct }}
{% else %}

{% trans "No usage profiles." %}

{% endif %}
{% endblock %} {% block footer %} {{ block.super }} {% if page.chart_data %} {{ page.chart_data|json_script:"or-dashboard-charts" }} {% endif %} {% endblock %}