{#- The session's tokens and cost, swapped into #usage (ui.py, "Tokens and cost"): the totals and two tables, no usage yet, or why they can't be shown. -#} {% if message %}

{{ message }}

{% elif not usage %}

No usage recorded for this session yet.

{% else %}
Total cost
{{ usage.total_cost }}
Tokens
{{ usage.total_tokens }}
{% if usage.types %} {% for row in usage.types %} {% endfor %}
Tokens by type
TypeTokens
{{ row.name }}{{ row.tokens }}
{% endif %} {% if usage.models %} {% for row in usage.models %} {% endfor %}
By model
ModelTokensCost
{% if row.mono %}{{ row.name }}{% else %}{{ row.name }}{% endif %}{{ row.tokens if row.tokens is not none else "-" }}{{ row.cost if row.cost is not none else "-" }}
{% endif %} {% endif %}