{% extends "base.html" %} {% block title %}{{ t('system.ai', name=ai_name) }}{% endblock %} {% block header %}
{{ t('system.ai_all_time', q=d.all_time.questions, tk=num(d.all_time.tokens), c=money(d.all_time.cost)) }}
| {{ t('system.col_user') }} | {{ t('system.ai_questions') }} | {{ t('system.ai_tokens') }} | {{ t('system.ai_cost') }} | {{ t('system.ai_last') }} |
|---|---|---|---|---|
| {{ u.name or u.username }} {{ u.username }} |
{{ u.questions }} | {{ num(u.tokens) }} | {{ money(u.cost) }} | {{ u.last.astimezone(tz).strftime('%H:%M %d/%m') }} |
| {{ t('system.no_rows') }} | ||||
| {{ t('system.ai_day') }} | {{ t('system.ai_questions') }} | {{ t('system.ai_refused') }} | {{ t('system.ai_tokens') }} | {{ t('system.ai_cost') }} |
|---|---|---|---|---|
| {{ x.day }} | {{ x.questions }} | {{ x.refused }} | {{ num(x.tokens) }} | {{ money(x.cost) }} |
| {{ t('system.no_rows') }} | ||||
| {{ t('system.ai_model') }} | {{ t('system.ai_questions') }} | {{ t('system.ai_tokens') }} | {{ t('system.ai_cost') }} |
|---|---|---|---|
| {{ m.model }} | {{ m.questions }} | {{ num(m.tokens) }} | {{ money(m.cost) }} |
| {{ t('system.no_rows') }} | |||
| {{ t('system.col_time') }} | {{ t('system.col_user') }} | {{ t('system.ai_question') }} | {{ t('system.ai_answer') }} | {{ t('system.col_result') }} | {{ t('system.ai_tokens') }} | {{ t('system.ai_cost') }} |
|---|---|---|---|---|---|---|
| {{ u.at.astimezone(tz).strftime('%H:%M %d/%m/%Y') }}{% if u.purpose == 'feedback' %} {{ t('system.ai_purpose_feedback') }} {% endif %} |
{{ u.user }} | {{ u.question }}{% if u.tools %} {{ t('system.ai_tools') }}: {{ u.tools }} {% endif %} |
{{ u.answer[:120] or u.error }}{{ u.answer or u.error }} |
{% if u.status == 'ok' %}{{ t('system.ok') }}{% elif u.status == 'refused' %}{{ t('system.ai_refused') }}{% else %}{{ t('system.error') }}{% endif %}
{% if u.ms %} {{ (u.ms / 1000) | round(1) }} s {% endif %} |
{{ num(u.tokens) }} | {{ money(u.cost) }} |
| {{ t('system.no_rows') }} | ||||||
{{ t('system.ai_settings_note') }}
{{ key }}