7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
Add a named chain manager to the Fallback page (#988)
suantea (asuan_suan)8bb2004cf578
diff --git a/client/src/components/chain-manager.test.ts b/client/src/components/chain-manager.test.tsnew file mode 100644index 00000000..9febc043--- /dev/null+++ b/client/src/components/chain-manager.test.ts@@ -0,0 +1,76 @@+import { readdirSync, readFileSync } from 'node:fs'+import path from 'node:path'+import { fileURLToPath } from 'node:url'+import { describe, expect, it } from 'vitest'++// The chain manager is the dashboard surface for named fallback chains+// (#960/#895). Two things about it are easy to break by accident and are+// pinned here: every string it renders has to exist in all 60 locales, and it+// has to stay a secondary panel on the Fallback page rather than growing into+// its own nav entry — one chain is all most installs ever use.+const here = path.dirname(fileURLToPath(import.meta.url))+const localeDir = path.join(here, '../i18n/locales')+const source = readFileSync(path.join(here, 'chain-manager.tsx'), 'utf8')+const fallbackPage = readFileSync(path.join(here, '../pages/FallbackPage.tsx'), 'utf8')+const app = readFileSync(path.join(here, '../App.tsx'), 'utf8')++function locale(name: string): Record<string, unknown> {+ return JSON.parse(readFileSync(path.join(localeDir, `${name}.json`), 'utf8'))+}++function lookup(dictionary: Record<string, unknown>, key: string): unknown {+ return key.split('.').reduce<unknown>(+ (node, part) => (node && typeof node === 'object' ? (node as Record<string, unknown>)[part] : undefined),+ dictionary,+ )+}++const locales = readdirSync(localeDir)+ .filter(name => name.endsWith('.json'))+ .map(name => name.slice(0, -5))++// Every t('...') the component actually calls.+const usedKeys = [...source.matchAll(/\bt\('([^']+)'/g)].map(match => match[1])++describe('chain manager', () => {+ it('calls only keys that exist in every locale', () => {+ expect(usedKeys.length).toBeGreaterThan(5)+ expect(usedKeys).toContain('chains.title')+ expect(locales.length).toBeGreaterThan(50)++ for (const name of locales) {+ const dictionary = locale(name)+ for (const key of usedKeys) {+ expect(typeof lookup(dictionary, key), `${name} is missing ${key}`).toBe('string')+ }+ }+ })++ it('keeps the {name} and {count} placeholders in every locale', () => {+ for (const name of locales) {+ const dictionary = locale(name)+ expect(lookup(dictionary, 'chains.deleteConfirm'), `${name}.chains.deleteConfirm`)+ .toContain('{name}')+ expect(lookup(dictionary, 'chains.count'), `${name}.chains.count`).toContain('{count}')+ }+ })++ it('lives on the Fallback page as a collapsible panel, not a nav entry', () => {+ expect(fallbackPage).toContain("import { ChainManager } from '@/components/chain-manager'")+ expect(fallbackPage).toContain('<ChainManager />')+ // Collapsed by default and remembered per browser, like the penalty+ // inspector next to it — the routing table is what the page is for.+ expect(source).toContain('aria-expanded')+ expect(source).toMatch(/stored === null \? true : stored === '1'/)+ // No route or nav destination of its own.+ expect(app).not.toContain('chain-manager')+ expect(app).not.toContain('ChainManager')+ })++ it('surfaces the server error when a chain name is rejected', () => {+ // POST /api/profiles enforces length, character set, reserved words and+ // uniqueness. Swallowing that 400/409 leaves a button that does nothing.+ expect(source).toContain('onError')+ expect(source).toContain('setCreateError')+ })+})diff --git a/client/src/components/chain-manager.tsx b/client/src/components/chain-manager.tsxnew file mode 100644index 00000000..5a1d2014--- /dev/null+++ b/client/src/components/chain-manager.tsx@@ -0,0 +1,226 @@+import { useState } from 'react'+import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'+import { Check, ChevronDown, Layers, Plus, Trash2 } from 'lucide-react'+import { useI18n } from '@/i18n'+import { apiFetch, type ApiError } from '@/lib/api'+import { Button } from '@/components/ui/button'+import { Input } from '@/components/ui/input'+import { Badge } from '@/components/ui/badge'+import { Tooltip } from '@/components/tooltip'++// Named fallback chains (#960/#895). The backend /api/profiles CRUD is+// complete and every chain is listed as an `auto:<name>` model in /v1/models;+// this panel is the missing dashboard surface: list chains, create new ones,+// switch the active chain (the fallback table below then edits that chain),+// and delete custom ones.+//+// Deliberately a secondary, collapsed-by-default accordion on the Fallback+// page rather than its own nav entry: most installs use one chain forever, and+// the routing table below is what the page is for.++const COLLAPSED_KEY = 'freellmapi.chainManager.collapsed'++function readCollapsed(): boolean {+ try {+ const stored = localStorage.getItem(COLLAPSED_KEY)+ return stored === null ? true : stored === '1'+ } catch {+ return true+ }+}++interface Chain {+ id: number+ name: string+ emoji: string+ color: string+ type: 'default' | 'builtin' | 'custom'+ is_favorite: number+ sort_order: number+ auto_sort: string | null+ layout_config: string | null+ created_at: string+}++export function ChainManager() {+ const { t } = useI18n()+ const queryClient = useQueryClient()+ const [newName, setNewName] = useState('')+ const [createError, setCreateError] = useState('')+ const [collapsed, setCollapsed] = useState<boolean>(readCollapsed)++ const { data: chains = [] } = useQuery<Chain[]>({+ queryKey: ['profiles'],+ queryFn: () => apiFetch('/api/profiles'),+ })+ const { data: active } = useQuery<{ activeProfileId: number | null }>({+ queryKey: ['profiles', 'active'],+ queryFn: () => apiFetch('/api/profiles/active'),+ })++ const invalidate = () => {+ queryClient.invalidateQueries({ queryKey: ['profiles'] })+ queryClient.invalidateQueries({ queryKey: ['profiles', 'active'] })+ // The fallback table renders the active chain; refresh it too.+ queryClient.invalidateQueries({ queryKey: ['fallback'] })+ queryClient.invalidateQueries({ queryKey: ['fallback', 'routing'] })+ }++ const createChain = useMutation({+ mutationFn: (name: string) =>+ apiFetch('/api/profiles', { method: 'POST', body: JSON.stringify({ name }) }),+ onSuccess: () => {+ invalidate()+ setNewName('')+ setCreateError('')+ },+ // Names are validated server-side (max 20 chars, Latin/digits/-/_ only, a+ // list of reserved words, no duplicates). Say which rule was broken rather+ // than swallowing the 400/409.+ onError: (error: ApiError) => setCreateError(error.message || t('chains.createFailed')),+ })+ const setActive = useMutation({+ mutationFn: (profileId: number) =>+ apiFetch('/api/profiles/active', { method: 'POST', body: JSON.stringify({ profileId }) }),+ onSuccess: invalidate,+ })+ const deleteChain = useMutation({+ mutationFn: (profileId: number) =>+ apiFetch(`/api/profiles/${profileId}`, { method: 'DELETE' }),+ onSuccess: invalidate,+ })++ if (chains.length === 0) return null++ const activeId = active?.activeProfileId ?? null++ function toggle() {+ setCollapsed(prev => {+ const next = !prev+ try { localStorage.setItem(COLLAPSED_KEY, next ? '1' : '0') } catch { /* ignore */ }+ return next+ })+ }++ return (+ <section className="rounded-lg border bg-card">+ <button+ type="button"+ onClick={toggle}+ aria-expanded={!collapsed}+ aria-label={collapsed ? t('common.show') : t('common.hide')}+ className={`flex w-full flex-wrap items-center justify-between gap-2 px-4 py-3 text-left ${collapsed ? '' : 'border-b'}`}+ >+ <div className="flex items-center gap-2">+ <Layers className="size-4 text-muted-foreground" />+ <div>+ <h2 className="text-sm font-medium">{t('chains.title')}</h2>+ <p className="text-xs text-muted-foreground">{t('chains.description')}</p>+ </div>+ </div>+ <div className="flex items-center gap-2">+ <span className="rounded-full bg-muted px-2 py-0.5 text-[11px] text-muted-foreground tabular-nums">+ {t('chains.count', { count: chains.length })}+ </span>+ <ChevronDown className={`size-4 text-muted-foreground transition-transform ${collapsed ? '-rotate-90' : ''}`} />+ </div>+ </button>++ {!collapsed && (+ <div className="p-4">+ <div className="space-y-2">+ {chains.map(chain => {+ const isActive = chain.id === activeId+ const isProtected = chain.type === 'default' || chain.type === 'builtin'+ return (+ <div+ key={chain.id}+ className={`flex flex-wrap items-center gap-2 rounded-xl border px-3 py-2 ${+ isActive ? 'border-foreground/25 bg-muted/50' : 'border-transparent hover:bg-muted/40'+ }`}+ >+ <span className="flex items-center gap-1.5 text-sm font-medium" title={chain.name}>+ {chain.emoji || <Layers className="size-3.5 text-muted-foreground" />}+ <span className="truncate">{chain.name}</span>+ </span>+ {/* The id a client sends to pick this chain per request. */}+ <code className="rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] text-muted-foreground">+ auto:{chain.name.toLowerCase()}+ </code>+ {isActive && (+ <Badge variant="secondary" className="gap-1">+ <Check className="size-3" />+ {t('chains.active')}+ </Badge>+ )}+ {isProtected && !isActive && (+ <span className="text-[11px] text-muted-foreground">{t('chains.default')}</span>+ )}+ <span className="flex-1" />+ {!isActive && (+ <Tooltip text={t('chains.activateHint')}>+ <Button+ variant="ghost"+ size="sm"+ className="h-7 px-2 text-xs"+ disabled={setActive.isPending}+ onClick={() => setActive.mutate(chain.id)}+ >+ {t('chains.activate')}+ </Button>+ </Tooltip>+ )}+ {!isProtected && (+ <Tooltip text={t('chains.deleteHint')}>+ <Button+ variant="ghost"+ size="sm"+ className="h-7 px-2 text-xs text-muted-foreground hover:text-rose-600"+ aria-label={t('chains.deleteHint')}+ disabled={deleteChain.isPending}+ onClick={() => {+ if (window.confirm(t('chains.deleteConfirm', { name: chain.name }))) {+ deleteChain.mutate(chain.id)+ }+ }}+ >+ <Trash2 className="size-3.5" />+ </Button>+ </Tooltip>+ )}+ </div>+ )+ })}+ </div>++ <form+ className="mt-3 flex gap-2"+ onSubmit={e => {+ e.preventDefault()+ const name = newName.trim()+ if (name && !createChain.isPending) createChain.mutate(name)+ }}+ >+ <Input+ value={newName}+ onChange={e => {+ setNewName(e.target.value)+ setCreateError('')+ }}+ placeholder={t('chains.createPlaceholder')}+ aria-label={t('chains.createPlaceholder')}+ className="h-8"+ />+ <Button type="submit" size="sm" className="h-8" disabled={!newName.trim() || createChain.isPending}>+ <Plus className="size-3.5" />+ {t('chains.create')}+ </Button>+ </form>+ {createError+ ? <p className="mt-1.5 text-xs text-rose-600 dark:text-rose-400">{createError}</p>+ : <p className="mt-1.5 text-xs text-muted-foreground">{t('chains.nameRules')}</p>}+ </div>+ )}+ </section>+ )+}diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex 81869a4f..e26c8965 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex 5e18bb97..25d5f959 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -1040,5 +1040,20 @@"metricNeurons": "خلية عصبية","metricOther": "وحدة","empty": "لا توجد نماذج مفعّلة تحتوي على بيانات ميزانية الطبقة المجانية."+ },+ "chains": {+ "title": "سلاسل التجاوز",+ "description": "سلاسل مُسمّاة، يمكن استدعاء كل منها بالصيغة auto:<name> في /v1/models.",+ "count": "{count} سلسلة",+ "active": "نشطة",+ "default": "افتراضية",+ "activate": "تفعيل",+ "activateHint": "اجعل الجدول أدناه يحرّر هذه السلسلة واجعل التوجيه التلقائي يمرّ عبرها",+ "deleteHint": "حذف هذه السلسلة",+ "deleteConfirm": "حذف السلسلة «{name}»؟",+ "create": "إنشاء",+ "createPlaceholder": "اسم السلسلة",+ "createFailed": "تعذّر إنشاء السلسلة.",+ "nameRules": "حتى 20 حرفًا: أحرف لاتينية وأرقام وشرطات وشرطات سفلية."}}diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex 870c6eae..2542b2cc 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 79503b2e..0cac274e 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex 528d253e..56b84df3 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex aebac982..9a84eb8f 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 9b976791..8b5e29a4 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex bb17399f..95d856c5 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -1040,5 +1040,20 @@"metricNeurons": "Neuronen","metricOther": "Einheiten","empty": "Keine aktivierten Modelle mit Free-Tier-Budgetdaten."+ },+ "chains": {+ "title": "Fallback-Ketten",+ "description": "Benannte Ketten, jede in /v1/models als auto:<name> aufrufbar.",+ "count": "{count} Ketten",+ "active": "Aktiv",+ "default": "Standard",+ "activate": "Aktivieren",+ "activateHint": "Diese Kette in der Tabelle unten bearbeiten und für das Auto-Routing verwenden",+ "deleteHint": "Diese Kette löschen",+ "deleteConfirm": "Kette „{name}“ löschen?",+ "create": "Anlegen",+ "createPlaceholder": "Kettenname",+ "createFailed": "Die Kette konnte nicht angelegt werden.",+ "nameRules": "Bis zu 20 Zeichen: Buchstaben, Ziffern, Binde- und Unterstriche."}}diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex fc4777c8..ce7e08ef 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 8ed807f6..646dd046 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex fc7ab37a..6e719f6f 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -1040,5 +1040,20 @@"metricNeurons": "neuronas","metricOther": "unidades","empty": "No hay modelos habilitados con datos de presupuesto del nivel gratuito."+ },+ "chains": {+ "title": "Cadenas de reserva",+ "description": "Cadenas con nombre, cada una invocable como auto:<name> en /v1/models.",+ "count": "{count} cadenas",+ "active": "Activa",+ "default": "Predeterminada",+ "activate": "Activar",+ "activateHint": "Hacer que la tabla de abajo edite esta cadena y que auto la use para enrutar",+ "deleteHint": "Eliminar esta cadena",+ "deleteConfirm": "¿Eliminar la cadena «{name}»?",+ "create": "Crear",+ "createPlaceholder": "Nombre de la cadena",+ "createFailed": "No se pudo crear la cadena.",+ "nameRules": "Hasta 20 caracteres: letras, dígitos, guiones y guiones bajos."}}diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex 15ce4606..47d87e28 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex 908fcf18..f3c37969 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex ca163fdd..1ea64165 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurones","metricOther": "unités","empty": "Aucun modèle activé avec des données de budget d'offre gratuite."+ },+ "chains": {+ "title": "Chaînes de repli",+ "description": "Chaînes nommées, chacune appelable via auto:<name> dans /v1/models.",+ "count": "{count} chaînes",+ "active": "Active",+ "default": "Par défaut",+ "activate": "Activer",+ "activateHint": "Faire éditer cette chaîne par le tableau ci-dessous et l'utiliser pour le routage auto",+ "deleteHint": "Supprimer cette chaîne",+ "deleteConfirm": "Supprimer la chaîne « {name} » ?",+ "create": "Créer",+ "createPlaceholder": "Nom de la chaîne",+ "createFailed": "Impossible de créer la chaîne.",+ "nameRules": "Jusqu'à 20 caractères : lettres, chiffres, tirets et traits de soulignement."}}diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 16ed94ed..4f08edaf 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex fd5114b2..05e23391 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex 80831c14..d469cc04 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex 5aa741c4..171dbeca 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -1040,5 +1040,20 @@"metricNeurons": "न्यूरॉन","metricOther": "इकाई","empty": "फ्री टियर बजट डेटा वाला कोई सक्षम मॉडल नहीं।"+ },+ "chains": {+ "title": "फ़ॉलबैक चेन",+ "description": "नामित चेन, हर एक /v1/models में auto:<name> के रूप में उपलब्ध।",+ "count": "{count} चेन",+ "active": "सक्रिय",+ "default": "डिफ़ॉल्ट",+ "activate": "सक्रिय करें",+ "activateHint": "नीचे की तालिका इसी चेन को संपादित करे और auto रूटिंग इसी से हो",+ "deleteHint": "इस चेन को हटाएँ",+ "deleteConfirm": "चेन \"{name}\" हटाएँ?",+ "create": "बनाएँ",+ "createPlaceholder": "चेन का नाम",+ "createFailed": "चेन नहीं बनाई जा सकी।",+ "nameRules": "अधिकतम 20 अक्षर: अक्षर, अंक, हाइफ़न और अंडरस्कोर।"}}diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex 906638d8..fa8b9c0d 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex f8bc5258..25aebaf8 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex 88a932ce..b37bcd54 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -1040,5 +1040,20 @@"metricNeurons": "neuron","metricOther": "unit","empty": "Tidak ada model aktif dengan data anggaran tingkat gratis."+ },+ "chains": {+ "title": "Rantai fallback",+ "description": "Rantai bernama, masing-masing dapat dipanggil sebagai auto:<name> di /v1/models.",+ "count": "{count} rantai",+ "active": "Aktif",+ "default": "Bawaan",+ "activate": "Aktifkan",+ "activateHint": "Jadikan tabel di bawah mengedit rantai ini dan perutean auto memakainya",+ "deleteHint": "Hapus rantai ini",+ "deleteConfirm": "Hapus rantai \"{name}\"?",+ "create": "Buat",+ "createPlaceholder": "Nama rantai",+ "createFailed": "Rantai tidak dapat dibuat.",+ "nameRules": "Maksimal 20 karakter: huruf, angka, tanda hubung, dan garis bawah."}}diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex ba257f55..9f47f303 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 26328289..6041c46b 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -1040,5 +1040,20 @@"metricNeurons": "neuroni","metricOther": "unità","empty": "Nessun modello abilitato con dati di budget del piano gratuito."+ },+ "chains": {+ "title": "Catene di fallback",+ "description": "Catene con nome, ognuna richiamabile come auto:<name> in /v1/models.",+ "count": "{count} catene",+ "active": "Attiva",+ "default": "Predefinita",+ "activate": "Attiva",+ "activateHint": "Fai modificare questa catena alla tabella qui sotto e usala per il routing auto",+ "deleteHint": "Elimina questa catena",+ "deleteConfirm": "Eliminare la catena «{name}»?",+ "create": "Crea",+ "createPlaceholder": "Nome della catena",+ "createFailed": "Impossibile creare la catena.",+ "nameRules": "Fino a 20 caratteri: lettere, cifre, trattini e trattini bassi."}}diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex 5bb0792d..4b39401d 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -1040,5 +1040,20 @@"metricNeurons": "ニューロン","metricOther": "単位","empty": "無料枠の予算データを持つ有効なモデルがありません。"+ },+ "chains": {+ "title": "フォールバックチェーン",+ "description": "名前付きチェーン。/v1/models では auto:<name> として呼び出せます。",+ "count": "{count} 件のチェーン",+ "active": "使用中",+ "default": "デフォルト",+ "activate": "有効にする",+ "activateHint": "下の表でこのチェーンを編集し、auto ルーティングにも使う",+ "deleteHint": "このチェーンを削除",+ "deleteConfirm": "チェーン「{name}」を削除しますか?",+ "create": "作成",+ "createPlaceholder": "チェーン名",+ "createFailed": "チェーンを作成できませんでした。",+ "nameRules": "20 文字まで:英数字、ハイフン、アンダースコア。"}}diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex 47137c4f..ade2e606 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 19fc37b4..cd87e1fb 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 11bc241c..a54464f8 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex c777ddc0..38208293 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -1040,5 +1040,20 @@"metricNeurons": "뉴런","metricOther": "단위","empty": "무료 등급 예산 데이터가 있는 활성화된 모델이 없습니다."+ },+ "chains": {+ "title": "폴백 체인",+ "description": "이름이 있는 체인. /v1/models에서 auto:<name>으로 호출할 수 있습니다.",+ "count": "체인 {count}개",+ "active": "사용 중",+ "default": "기본",+ "activate": "활성화",+ "activateHint": "아래 표에서 이 체인을 편집하고 auto 라우팅에도 사용",+ "deleteHint": "이 체인 삭제",+ "deleteConfirm": "체인 \"{name}\"을(를) 삭제할까요?",+ "create": "만들기",+ "createPlaceholder": "체인 이름",+ "createFailed": "체인을 만들지 못했습니다.",+ "nameRules": "최대 20자: 영문자, 숫자, 하이픈, 밑줄."}}diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex 66e9d729..ad932b0e 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex b90204ba..06ca58af 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex e28e49ef..db08b949 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex bde4e515..b288f573 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 6f589e2b..33a77632 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex 11266e89..8fc60d95 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex 03b41cd6..f49c3449 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -1040,5 +1040,20 @@"metricNeurons": "neuronen","metricOther": "eenheden","empty": "Geen ingeschakelde modellen met gegevens over het gratis budget."+ },+ "chains": {+ "title": "Fallback-ketens",+ "description": "Benoemde ketens, elk aan te roepen als auto:<name> in /v1/models.",+ "count": "{count} ketens",+ "active": "Actief",+ "default": "Standaard",+ "activate": "Activeren",+ "activateHint": "Laat de tabel hieronder deze keten bewerken en auto hierlangs routeren",+ "deleteHint": "Deze keten verwijderen",+ "deleteConfirm": "Keten \"{name}\" verwijderen?",+ "create": "Aanmaken",+ "createPlaceholder": "Ketennaam",+ "createFailed": "De keten kon niet worden aangemaakt.",+ "nameRules": "Maximaal 20 tekens: letters, cijfers, koppel- en onderstrepingstekens."}}diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex ae343baa..8e9c48cc 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex 197e73c5..546be4e2 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex 341a2b7f..43b76b84 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex b4d1c6db..bd813c2c 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -1040,5 +1040,20 @@"metricNeurons": "neuronów","metricOther": "jednostek","empty": "Brak włączonych modeli z danymi o budżecie darmowego poziomu."+ },+ "chains": {+ "title": "Łańcuchy awaryjne",+ "description": "Nazwane łańcuchy, każdy wywoływany jako auto:<name> w /v1/models.",+ "count": "Łańcuchy: {count}",+ "active": "Aktywny",+ "default": "Domyślny",+ "activate": "Aktywuj",+ "activateHint": "Niech tabela poniżej edytuje ten łańcuch, a routing auto przez niego prowadzi",+ "deleteHint": "Usuń ten łańcuch",+ "deleteConfirm": "Usunąć łańcuch „{name}”?",+ "create": "Utwórz",+ "createPlaceholder": "Nazwa łańcucha",+ "createFailed": "Nie udało się utworzyć łańcucha.",+ "nameRules": "Do 20 znaków: litery, cyfry, myślniki i podkreślenia."}}diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex f49cfe06..d1ed1c11 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurônios","metricOther": "unidades","empty": "Nenhum modelo ativado com dados de orçamento do nível gratuito."+ },+ "chains": {+ "title": "Cadeias de fallback",+ "description": "Cadeias nomeadas, cada uma chamável como auto:<name> em /v1/models.",+ "count": "{count} cadeias",+ "active": "Ativa",+ "default": "Padrão",+ "activate": "Ativar",+ "activateHint": "Fazer a tabela abaixo editar esta cadeia e o roteamento auto usá-la",+ "deleteHint": "Excluir esta cadeia",+ "deleteConfirm": "Excluir a cadeia \"{name}\"?",+ "create": "Criar",+ "createPlaceholder": "Nome da cadeia",+ "createFailed": "Não foi possível criar a cadeia.",+ "nameRules": "Até 20 caracteres: letras, dígitos, hifens e sublinhados."}}diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 7abea016..14390ecb 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Cadeias de fallback",+ "description": "Cadeias nomeadas, cada uma chamável como auto:<name> em /v1/models.",+ "count": "{count} cadeias",+ "active": "Ativa",+ "default": "Predefinida",+ "activate": "Ativar",+ "activateHint": "Fazer a tabela abaixo editar esta cadeia e o encaminhamento auto usá-la",+ "deleteHint": "Eliminar esta cadeia",+ "deleteConfirm": "Eliminar a cadeia \"{name}\"?",+ "create": "Criar",+ "createPlaceholder": "Nome da cadeia",+ "createFailed": "Não foi possível criar a cadeia.",+ "nameRules": "Até 20 caracteres: letras, dígitos, hífenes e sublinhados."}}diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex ea2cfa74..50f45e48 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex 92f5cd59..6a5fbb97 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -1040,5 +1040,20 @@"metricNeurons": "нейронов","metricOther": "единиц","empty": "Нет включённых моделей с данными о бесплатном лимите."+ },+ "chains": {+ "title": "Цепочки резервирования",+ "description": "Именованные цепочки; каждую можно вызвать как auto:<name> в /v1/models.",+ "count": "Цепочек: {count}",+ "active": "Активна",+ "default": "По умолчанию",+ "activate": "Активировать",+ "activateHint": "Редактировать эту цепочку в таблице ниже и маршрутизировать auto через неё",+ "deleteHint": "Удалить эту цепочку",+ "deleteConfirm": "Удалить цепочку «{name}»?",+ "create": "Создать",+ "createPlaceholder": "Имя цепочки",+ "createFailed": "Не удалось создать цепочку.",+ "nameRules": "До 20 символов: буквы, цифры, дефисы и подчёркивания."}}diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 1eb9ce7a..458cf5a0 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex 3ebcd7bc..15c7bf49 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex 93b8b222..69cb65a7 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex 212d83c6..dfcacdce 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 445461f1..b171d9e2 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex 4e6b15ad..255b7d06 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex 23656ff7..cf802f8e 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex edbccfe6..21ea9fe7 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 0d928d7c..6342a97e 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex 229231e2..ce1f192d 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -1040,5 +1040,20 @@"metricNeurons": "nöron","metricOther": "birim","empty": "Ücretsiz katman bütçe verisi olan etkin model yok."+ },+ "chains": {+ "title": "Yedek zincirleri",+ "description": "Adlandırılmış zincirler; her biri /v1/models içinde auto:<name> olarak çağrılabilir.",+ "count": "{count} zincir",+ "active": "Etkin",+ "default": "Varsayılan",+ "activate": "Etkinleştir",+ "activateHint": "Aşağıdaki tablo bu zinciri düzenlesin ve auto yönlendirmesi bunu kullansın",+ "deleteHint": "Bu zinciri sil",+ "deleteConfirm": "\"{name}\" zinciri silinsin mi?",+ "create": "Oluştur",+ "createPlaceholder": "Zincir adı",+ "createFailed": "Zincir oluşturulamadı.",+ "nameRules": "En fazla 20 karakter: harf, rakam, tire ve alt çizgi."}}diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex 44fd9076..e9209ac1 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Ланцюжки резервування",+ "description": "Іменовані ланцюжки; кожен викликається як auto:<name> у /v1/models.",+ "count": "Ланцюжків: {count}",+ "active": "Активний",+ "default": "За замовчуванням",+ "activate": "Активувати",+ "activateHint": "Редагувати цей ланцюжок у таблиці нижче й маршрутизувати auto через нього",+ "deleteHint": "Видалити цей ланцюжок",+ "deleteConfirm": "Видалити ланцюжок «{name}»?",+ "create": "Створити",+ "createPlaceholder": "Назва ланцюжка",+ "createFailed": "Не вдалося створити ланцюжок.",+ "nameRules": "До 20 символів: літери, цифри, дефіси й підкреслення."}}diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex 5efe0881..521f7fbe 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex 06126cc8..fed965e2 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex 8a663bf5..b1e34f71 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -1040,5 +1040,20 @@"metricNeurons": "nơ-ron","metricOther": "đơn vị","empty": "Không có mô hình đang bật nào có dữ liệu hạn mức miễn phí."+ },+ "chains": {+ "title": "Chuỗi dự phòng",+ "description": "Các chuỗi có tên, mỗi chuỗi gọi được bằng auto:<name> trong /v1/models.",+ "count": "{count} chuỗi",+ "active": "Đang dùng",+ "default": "Mặc định",+ "activate": "Kích hoạt",+ "activateHint": "Để bảng bên dưới chỉnh sửa chuỗi này và định tuyến auto đi qua nó",+ "deleteHint": "Xoá chuỗi này",+ "deleteConfirm": "Xoá chuỗi \"{name}\"?",+ "create": "Tạo",+ "createPlaceholder": "Tên chuỗi",+ "createFailed": "Không tạo được chuỗi.",+ "nameRules": "Tối đa 20 ký tự: chữ cái, chữ số, gạch nối và gạch dưới."}}diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex b02f1a5b..593e9ab7 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "Fallback chains",+ "description": "Named chains, each callable as auto:<name> in /v1/models.",+ "count": "{count} chains",+ "active": "Active",+ "default": "Default",+ "activate": "Activate",+ "activateHint": "Make this the chain the table below edits and the one auto routes through",+ "deleteHint": "Delete this chain",+ "deleteConfirm": "Delete chain \"{name}\"?",+ "create": "Create",+ "createPlaceholder": "Chain name",+ "createFailed": "Could not create the chain.",+ "nameRules": "Up to 20 characters: letters, digits, hyphens and underscores."}}diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex c823b8f7..7baebd8d 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -1040,5 +1040,20 @@"metricNeurons": "神经元","metricOther": "单位","empty": "没有启用且带免费额度数据的模型。"+ },+ "chains": {+ "title": "回退链",+ "description": "命名链,每条都可在 /v1/models 中以 auto:<name> 调用。",+ "count": "{count} 条链",+ "active": "使用中",+ "default": "默认",+ "activate": "激活",+ "activateHint": "让下方表格编辑这条链,auto 路由也走这条链",+ "deleteHint": "删除此链",+ "deleteConfirm": "删除链「{name}」?",+ "create": "创建",+ "createPlaceholder": "链名称",+ "createFailed": "无法创建该链。",+ "nameRules": "最多 20 个字符:字母、数字、连字符和下划线。"}}diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex afad649e..0b73e749 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -1040,5 +1040,20 @@"metricNeurons": "neurons","metricOther": "units","empty": "No enabled models with free-tier budget data."+ },+ "chains": {+ "title": "回退鏈",+ "description": "具名鏈,每一條都能在 /v1/models 中以 auto:<name> 呼叫。",+ "count": "{count} 條鏈",+ "active": "使用中",+ "default": "預設",+ "activate": "啟用",+ "activateHint": "讓下方表格編輯這條鏈,auto 路由也走這條鏈",+ "deleteHint": "刪除此鏈",+ "deleteConfirm": "刪除鏈「{name}」?",+ "create": "建立",+ "createPlaceholder": "鏈名稱",+ "createFailed": "無法建立此鏈。",+ "nameRules": "最多 20 個字元:字母、數字、連字號與底線。"}}diff --git a/client/src/pages/FallbackPage.tsx b/client/src/pages/FallbackPage.tsxindex f46618fe..b416b158 100644--- a/client/src/pages/FallbackPage.tsx+++ b/client/src/pages/FallbackPage.tsx@@ -45,6 +45,7 @@ import { ModelsTabs } from '@/components/models-tabs'import { Tooltip } from '@/components/tooltip'import { PenaltyInspector } from '@/components/penalty-inspector'import { PeakHoursControls } from '@/components/peak-hours-controls'+import { ChainManager } from '@/components/chain-manager'// `tKey` is the i18n suffix under `strategies.*` (label) and `strategies.*Blurb`.// It differs from the routing `key` for Manual, whose strategy id is 'priority'.@@ -364,6 +365,10 @@ export default function FallbackPage() {)}</section>+ {/* Named fallback chains (#960/#895): list/create/activate/delete.+ Activating a chain makes the table below edit that chain. */}+ <ChainManager />+<PenaltyInspector />{/* Unified routing / fallback table */}