{# The progress fragment: included by job.html and polled at /jobs/{id}/progress. Its root carries the header's line (the stage, the time left), which app.js copies at every poll, the browser tab's prefix, and the running stage, which app.js announces when it changes. The running time (#run-for) is copied in place too: both change at every poll and must not make app.js replace the fragment. #} {% import "_icons.html" as icons with context %} {% import "_hint.html" as hints with context %}
| {{ t('progress.usage.stage') }} | {{ t('progress.usage.calls') }} | {{ t('progress.usage.tokens') }} | {{ t('progress.usage.time') }} |
|---|---|---|---|
| {{ s.title }} | {{ s.usage.calls }} | {{ t.number(s.usage.tokens_in + s.usage.tokens_out) }} | {{ duration(s.usage.seconds) }} |
| {{ t('progress.usage.total') }} | {{ p.usage | sum(attribute='calls') }} | {{ t.number(p.tokens) }} | {{ duration(p.usage | sum(attribute='seconds')) }} |
{{ t('replay.note', date=recorded.recorded_at.strftime('%d.%m.%Y'), preset=recorded.preset, time=duration(recorded.seconds)) }}
{% endif %}{{ t('progress.running_for', time=duration(p.elapsed_s)) }}
{{ job.config.endpoint }}{{ job.config.writer_model or job_llm.models.writer }}{{ job.config.judge_model }}{{ t('progress.stopped') }}
{% else %}{{ t('progress.failed', error=job.error) }}
{% endif %}{{ t('progress.failed_hint') }}
{{ t('progress.background', n=p.factsheet.omit_candidates | length) }}
{% endif %}{{ t('progress.findings', errors=errors, warns=warns) }} {{ t('progress.doc_findings') }}
{% endif %}