{% extends "project/base.html" %} {% block title %}{{ chat.shown_title }} — aiwe{% endblock %} {% from "model_setting.html" import used_name %} {% block project %}
{% include "chat/messages.html" %}
{% if access != "full" %}

You may only read this project.

{% elif chat.in_trash %} {# A plain form: the page comes anew, with the form that sends a message. #}
This chat is in the trash: nobody writes here, and agents do not search it.
{% elif agents %} {# The script shows one of these while the page cannot reach the server or the sign-in is gone. The link opens a new tab, so the files picked here stay. #} {# Why the server refused the last message or the last pick of a model, in its own words. #} {# htmx posts the form and puts the messages it gets back in place of the list. drop: a second Send while one is on its way does nothing. The form is one line while it is out of focus and holds nothing to send. tabindex: a click on any part of the form gives it the focus, which unfolds it and keeps it so. A chat with no message opens ready to write. #}
{# Hidden: the script lists its files below, each with a button that takes it back. #}
{% for agent in agents %} {% endfor %}
{# Names what the picked agent writes with, and opens the lists of every agent, which stand after the form. #} {% if speech_models %} {# The microphone starts a dictation and stops it. The arrow opens the speech models, which stand after the form; with one model there is nothing to pick. #}
{% if speech_models|length > 1 %} {% endif %}
{% endif %}
{% include "chat/models.html" %} {% if speech_models %} {# The speech models of voxo, in a box over the microphone. The script marks the one the browser keeps as picked. No part of the form: a pick is not sent with a message. #}

Speech model

{% for model in speech_models %} {% endfor %}
{% endif %} {% else %}

No agent to write to yet: the admin adds a Claude or Codex CLI on the Admin page.

{% endif %} {% endblock %}