{% from "_macros.html" import icon %} {# One connection: an editable form plus its current status. Swapped in place by the "Test & refresh" button, so this fragment has to be able to render on its own as well as inside the list. #}
{{ connection.name }} {% if model_count is defined %} {{ model_count }} model{{ '' if model_count == 1 else 's' }} {% endif %} {% if not connection.enabled %} disabled {% endif %}
{% if message %}
{% if message_kind == "error" %}{{ icon("warning", "alert__icon") }}{% endif %} {{ message }}
{% elif connection.last_error %}
{{ icon("warning", "alert__icon") }} {{ connection.last_error }}
{% endif %}

{% if connection.api_key_encrypted %} Currently {{ masked }}. Leave the dots alone to keep it, or clear the field to remove the key entirely. {% else %} No key is stored for this endpoint. {% endif %}

Only used by image generation's Preserve VRAM, to free this endpoint's memory while ComfyUI works. llama-swap answers GET /unload. Leave it empty for anything on another machine — its memory is not the memory being freed, and it would be an unexplained request.