{# The one Ask form. A new question: which papers, the question or points, what is read of each paper, More settings, the model, the cost, then Ask. In a chat: the next question first, the rest folded under it. #}
{% import "_run_form.html" as run with context %}
{% import "_paper_picker.html" as picker with context %}
{% if ask.follow_up %}{% set keep_key = "ask-" ~ ask.follow_up %}{% elif ask.short %}{% set keep_key = "ask-" ~ ask.papers[0].stem if ask.papers else "ask-paper" %}{% else %}{% set keep_key = "ask" %}{% endif %}
{% macro papers_read() %}
{% if ask.short %}
{% for paper in ask.papers %}{% endfor %}
{% elif ask.about == "papers" %}
{{ picker.field(ask, picked, url_for('explore.ask_page')) }}
{% elif ask.about == "list" %}
{% if ask.list_name %}
The {{ ask.list_papers | length }} papers in {{ ask.list_name }}; every one is read
Choose a list above.
{% endif %} {% elif ask.about == "theme" %} {% if ask.theme_papers %}Choose a theme above.
{% endif %} {% elif ask.closest %}