{% extends "gateway/base.html" %} {% load humanize gateway_format %} {% block title %}Usage ·{% endblock %} {% block breadcrumbs %}
  • Overview
  • Usage
  • {% endblock %} {% block heading %}

    Usage

    {% include "gateway/includes/description.html" with name="Usage" %}

    {% endblock %} {% block content %}
    {% for filter in filters %}
    {{ filter.title }} {% if filter.selected %}{{ filter.selected }}{% endif %}
    {% endfor %} {% if model %}{{ model }}{% endif %} {% if filtered %}Clear all filters{% endif %}
    {% if totals.calls %}
    Calls
    {{ totals.calls|intcomma }}
    Tokens in
    {{ totals.input_tokens|compact }}
    Tokens out
    {{ totals.output_tokens|compact }}
    Failed
    {{ totals.failed|intcomma }} ({{ totals.failed_percent }}%)
    {% if totals.p95 is not None %}
    95% answered within
    {{ totals.p95|duration }}
    {% endif %}
    {% endif %} {% if object_list %}
    {% if not one_project %}{% endif %} {% for row in object_list %} {% if not one_project %}{% endif %} {% endfor %}
    Details Time (UTC)ProjectProviderModel Tokens Duration Result
    {% if row.started_at|date:"Y-m-d" == today|date:"Y-m-d" %}{{ row.started_at|date:"H:i:s" }}{% else %}{{ row.started_at|date:"j M H:i" }}{% endif %}{{ row.project.name }}{{ row.provider }} {{ row.model }}{% if row.provider_model != row.model %}{{ row.provider_model }}{% endif %} {% if row.input_tokens is None and row.output_tokens is None %}–{% else %}{{ row.input_tokens|default_if_none:"–"|intcomma }} in · {{ row.output_tokens|default_if_none:"–"|intcomma }} out{% endif %} {{ row.duration_ms|duration }} {% if row.status_code >= 500 %}{{ row.status_code }}{% elif row.status_code >= 400 %}{{ row.status_code }}{% else %}{{ row.status_code }}{% endif %}
    {% elif filtered %} {% include "gateway/includes/empty.html" with name="Usage" title="No matching usage" %} {% else %} {% include "gateway/includes/empty.html" with name="Usage" title="No usage yet" clear_url=None %} {% endif %} {% include "gateway/includes/pagination.html" with count=paginator.count noun="call" plural="calls" %}
    {% endblock %}