{{ _("Before the update") }}

{{ _("The facts are refreshed. Writing the guide will call:") }}

{% for line in estimate.lines %} {% endfor %}
{{ _("Call") }}{{ _("Provider and model") }}{{ _("How many") }}{{ _("Tokens each") }}{{ _("Cost each") }}
{{ line.kind }} {{ line.provider }} · {{ line.model or _("default model") }} {% if line.expected == line.maximum %}{{ line.expected }}{% else %}{% trans expected=line.expected, maximum=line.maximum %}{{ expected }} to {{ maximum }}{% endtrans %}{% endif %} ~{{ line.tokens_each | tokens }}{% if not line.from_history %} ({{ _("a starting guess") }}){% endif %} {% if line.cost_each_usd is none %}{{ _("no price configured") }}{% elif line.cost_each_usd == 0 %}{{ _("free") }}{% else %}~{{ line.cost_each_usd | dollars }}{% endif %}

{% trans expected=estimate.expected_tokens|tokens, maximum=estimate.maximum_tokens|tokens %}Expected: ~{{ expected }} tokens; at most ~{{ maximum }}.{% endtrans %} {% if estimate.expected_usd is not none %}{% trans expected=estimate.expected_usd|dollars, maximum=estimate.maximum_usd|dollars %}At API prices: ~{{ expected }}, at most {{ maximum }}.{% endtrans %}{% endif %} {% trans budget=estimate.budget_usd|dollars, tokens=estimate.budget_tokens|tokens %}The update stops at its budget of {{ budget }} or {{ tokens }} tokens, whichever comes first.{% endtrans %}

{% macro why(page) -%} {%- if page.reason == "update" %}{% trans count=page.changed %}one of its facts changed in this update{% pluralize %}{{ count }} of its facts changed in this update{% endtrans %} {%- elif page.reason == "new" %}{{ _("a new page") }} {%- elif page.reason == "outline" %}{{ _("its outline entry changed") }} {%- else %}{{ _("catching up, since its facts changed after it was written") }}{% endif -%} {%- endmacro %} {% if estimate.pages %}

{{ _("Pages, in the order they’re written:") }}

    {% for page in estimate.pages %}
  1. “{{ page.title }}”{% if page.revise %} ({{ _("revised") }}){% endif %}: {{ why(page) }}
  2. {% endfor %}
{% endif %} {% if estimate.skipped %}

{{ _("Skipped, since they failed last time and nothing in them changed:") }} {{ estimate.skipped|join(", ") }}

{% endif %}