{% extends "base.html" %} {% block actions %}{% endblock %} {% block content %}

{{ _('Routes') }}

{{ _('Create OCR routes with weighted, confidence-aware routing and fallback support') }}

{{ _('Built-in routes resolved dynamically from your providers. Use any of these IDs as the route field: no setup needed.') }}

{% for t in catalog %}
{{ t.id }}{{ t.strategy }}{{ t.category }}
{{ t.title }}
{{ t.description }}
{% endfor %}
{{ _('Getting started with routes') }}
{{ _('Create routes to send OCR traffic to the right engine, with fallbacks when one fails') }}
{% for n, icon, title, text in [(1,'tag',_('Name your route'),_('A unique slug identifies it in requests and API keys')),(2,'boxes',_('Add providers'),_('Pick engines and arrange their fallback priority order')),(3,'sliders2',_('Choose a strategy'),_('How requests are distributed across providers: {n} strategies available', n=strategies|length)),(4,'check2-circle',_('Review & save'),_('Simulate with a hypothetical input, then activate the route'))] %}
{{ n }}
{{ title }}
{{ text }}
{% if n < 4 %}{% endif %}
{% endfor %}
{{ _('or click') }} + {{ _('New route') }} {{ _('above') }}
{% for r in routes %}
{{ r.name }}{{ r.strategy|upper|replace('_',' ') }}{% if r.is_default %}{{ _('default route') }}{% endif %}{% if not r.enabled %}off{% endif %}
{% for m in r.members[:3] %}{{ m.provider.engine_id if m.provider else '?' }} · {{ m.provider.label if m.provider else '?' }}{% if m.weight != 1 %} · w{{ m.weight }}{% endif %}{% endfor %}{% if r.members|length > 3 %}+{{ r.members|length - 3 }} more{% endif %}{% if not r.members %}{{ _('no members yet') }}{% endif %}
{% if r.description %}
{{ r.description }}
{% endif %}
{% else %}

{{ _('Nothing here yet.') }}

{{ _('Requests use the built-in auto/balanced route until you create one.') }}
{% endfor %}
{{ _('Simulate') }}

{{ _('Resolve the candidate order for a hypothetical input. No OCR is executed.') }} auto/*

-

{{ _('New route') }}

{{ _('Members (drag to reorder)') }}

{% endblock %} {% block scripts %}{% endblock %}