{% extends "settings_base.html" %} {% import "_connection_summary.html" as summaries %} {% import "_status_badge.html" as badges %} {% block summary_cards %} {{ summaries.summary_card("HC", "Provider checks", providers | length | compact_number, "Lightweight /models checks") }} {{ summaries.summary_card("RT", "Active routes", summary.active_routes | compact_number, "Available for simulation") }} {{ summaries.summary_card("FB", "Fallback", fallback.provider_name | default("No provider", true), fallback.model | default("No model", true), true) }} {{ summaries.summary_card("DB", "Stored rows", summary.stored_rows | compact_number, (summary.rows_older_than_retention | compact_number) ~ " older than " ~ summary.retention_days ~ " days") }} {% endblock %} {% block settings_content %}

Provider Health Overview

Read-only status for configured providers.

{% for provider in providers %} {% set health = health_results.get(provider.slug, {}) %} {% endfor %}
Provider Last check Latency Auth Result
{{ provider.name }} {{ health.checked_at | default("Not checked", true) }} {{ health.latency_ms | default("-", true) }} {{ health.auth_state | default(provider.api_key_env | default("not configured", true), true) }} {{ badges.status_badge(health.status | default("Warning", true)) }}

Test Upstream

Send sample chat, image, or tool-call payloads.

{{ badges.status_badge("Ready") }}
{% if test_result %}
{{ test_result.status_code | default('error', true) }} {{ test_result.kind }} {{ test_result.model_route | default('global fallback', true) }} {% if test_result.upstream_model %}{{ test_result.upstream_model }}{% endif %} {{ test_result.duration_ms | duration_ms }}
{{ test_result.url }} {% if test_result.error %}

{{ test_result.error }}

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

Route Simulator

Resolve a model name without making an upstream call.

Simulation results will appear here.

Recent Test Results

Interactive checks are shown after a test request completes.

{% if test_result %}
{{ "Success" if test_result.ok else "Error" }} {{ test_result.kind }} through {{ test_result.model_route | default("global fallback", true) }} {{ test_result.url }}
{% else %}

No diagnostics test has been run in this page view.

{% endif %}
{% endblock %}