{% extends "base.html" %} {% block title %}LLM Accountant Demo{% endblock %} {% block content %}

LLM Accountant Demo

This page demonstrates the datasette-llm-accountant plugin. Submit a prompt to any LLM model and see the cost tracked below.

{% if error %}
Error: {{ error }}
{% endif %} {% if response_text %}

Response:

{{ response_text }}
{% endif %}

Transaction Log

{% if transactions %} {% for tx in transactions %} {% endfor %}
Transaction ID Nanocents USD
{{ tx.tx_id }} {{ "{:,}".format(tx.nanocents) }} ${{ "%.8f".format(tx.usd) }}
Total {{ "{:,}".format(transactions | map(attribute='nanocents') | sum) }} ${{ "%.8f".format(transactions | map(attribute='usd') | sum) }}
{% else %}

No transactions yet. Submit a prompt above to get started.

{% endif %}
{% endblock %}