{% extends "settings_base.html" %} {% import "_status_badge.html" as badges %} {% block settings_content %}

Incoming Server

Persisted for the next process startup.

{{ badges.status_badge("Active") }}
{% if expose_all_ips %}

Network exposed. Use only on trusted networks.

{% endif %}

Settings Areas

Primary registries now live on focused tabs.

Global Upstream Fallback Defaults

Used when no exact or prefix route matches a request.

{{ badges.status_badge("Enabled" if fallback_enabled else "Inactive") }}

When no route matches, the proxy can send the request to {{ fallback.provider_name | default("the selected provider", true) }} as {{ default_model | default("the configured model", true) }}.

Default Compatibility Fixes

Applied to fallback requests and routes that opt into the default behavior.

{{ badges.status_badge("Configured" if default_compat_fixes else "Inactive") }}
{% for fix in available_compat_fixes %} {% endfor %}
Advanced manual edit

Model Routes Summary

Showing {{ model_routes | length }} of {{ model_routes | length }} configured routes.

Add route
{% for route in model_routes %} {% else %} {% endfor %}
Source Incoming model Match Route upstream URL Send as model Provider Compatibility fixes API key Status Actions
{{ "Settings" if route.editable else "Startup" }} {{ route.model }} {{ route.match_type }} {{ route.upstream_url }} {{ route.upstream_model }} {{ route.provider_name | default(route.provider_slug | default("Auto", true), true) }} {% if route.fixes %}{{ route.fixes | join(", ") }}{% else %}Default{% endif %} {{ route.api_key_state }} {% if route.api_key_env %}{{ route.api_key_env }}{% endif %} {{ badges.status_badge("Active" if route.active else "Inactive") }} {% if route.editable %}
{% else %} Locked {% endif %}
No model routes are configured.

Test Route / Diagnostics

Send a sample chat request through the configured resolution path.

Diagnostics tab
{% if test_result %}
{{ test_result.status_code | default('error', true) }} {{ test_result.kind }} {{ test_result.model_route | default('global fallback', true) }} {{ test_result.duration_ms | duration_ms }}
{{ test_result.url }} {% if test_result.error %}

{{ test_result.error }}

{% else %}
{{ test_result.body }}
{% endif %}
{% endif %}

Data Retention

Delete older request records and attached image payloads.

{{ badges.status_badge("Warning") }}

Older than {{ days }} days: {{ trim_count | compact_number }} row{{ "" if trim_count == 1 else "s" }} will be deleted.

Refresh count
{% endblock %}