{% extends "base.html" %} {% block tabs %}
API {{ _('Control panel') }} {{ _('Docs & SDK') }}
{% endblock %} {% block content %}
{% if tab == 'api' %}

{{ _('API Endpoint') }}

{{ _('Active endpoints') }}
{% for a in ep.active %}
● {{ a.label }} {{ a.url }}
{% endfor %}
{{ _('Local server') }} · {{ ep.server_id }} {% for u in ep.local %}{{ u }} {% endfor %}
{{ _('Running') }}
{{ _('Tunnels') }}{{ ep.tunnels_active }} / {{ ep.tunnels|length }} {{ _('active') }}
{{ _('Public URL') }}
{{ _('Reverse proxy or domain in front of this gateway') }}
{% if ep.public_url %}{{ _('active') }}{% endif %}
{% set icons = {'cloudflare': ('bi-cloud-fill', '#F97316'), 'tailscale': ('bi-globe2', '#818CF8'), 'ngrok': ('bi-globe-americas', '#C084FC')} %} {% for t in ep.tunnels %}
{{ t.title }}
{% if t.url %}
{{ t.url }}/v1
{% elif t.error %}
{{ t.error }}
{% endif %}
{% if t.running %}{{ _('active') }} {% elif not t.installed %}{{ _('Not installed') }} {% elif not t.authenticated %}{{ _('Needs auth') }} {% else %}{% endif %}
binary: {{ t.binary }} · {{ t.homepage }}
{% if t.install_command %}
{{ ep.platform }}: {{ t.install_command }}
{% endif %} {% if t.log %}
{{ t.log|join('\n') }}
{% endif %}
{% endfor %}
{{ _('Custom OCR prompt') }}
{{ _('Inject a custom prompt into every VLM engine request') }}
{% elif tab == 'panel' %}

{{ _('Control panel') }}

{{ _('Active endpoints') }}
● {{ _('Control panel') }}{{ ep.panel_url }}
{% for u in ep.local %}
LAN{{ u|replace('/v1', '/panel/') }}
{% endfor %}

{{ engines_available }}/{{ engines_total }} {{ _('available') }} · {{ _('Panel users') }}: {{ keys|length }} {{ _('API keys')|lower }}

{% else %}

{{ _('Docs & SDK') }}

OpenAPI
● Swagger{{ ep.docs_url }}
JSON{{ ep.docs_url|replace('/docs', '/openapi.json') }}

{% endif %}

{{ _('Needs auth') }}

{{ _('Install & enable') }}

{{ _('Download page') }}
{% endblock %} {% block scripts %}{% endblock %}