{% 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 %} {{ t("disabled") }} {% endif %} {{ icon("refresh", "icon--sm") }} Test & refresh {{ t("Save") }} {% if message %} {% if message_kind == "error" %}{{ icon("warning", "alert__icon") }}{% endif %} {{ message }} {% elif connection.last_error %} {{ icon("warning", "alert__icon") }} {{ connection.last_error }} {% endif %} {{ t("Name") }} {{ t("Base URL") }} {{ t("API key") }} {% 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 %} {{ t("Unload URL") }} {{ t("POST") }} {{ t("GET") }} 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. {{ t("Extra headers") }} {% for name, value in (connection.extra_headers_json or {}).items() %}{{ name }}: {{ value }} {% endfor %} One Name: value per line, sent with every request to this endpoint. OpenRouter reads HTTP-Referer and X-Title and attributes your usage with them. Leave it empty unless an endpoint has asked for something. {{ t("Enabled — its models are offered in chats") }}
{% 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 %}
{{ masked }}
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.
GET /unload
One Name: value per line, sent with every request to this endpoint. OpenRouter reads HTTP-Referer and X-Title and attributes your usage with them. Leave it empty unless an endpoint has asked for something.
Name: value
HTTP-Referer
X-Title