Skip to content

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

Show pool-deduped free-tier budgets under the token budget bar (#907)

suantea (asuan_suan)4cb8d38f6de0
diff --git a/client/src/components/token-usage-bar.tsx b/client/src/components/token-usage-bar.tsx
index 419372e5..37698ff3 100644
--- a/client/src/components/token-usage-bar.tsx
+++ b/client/src/components/token-usage-bar.tsx
@@ -1,6 +1,8 @@
import { useEffect, useRef, useState } from 'react'
+import { useQuery } from '@tanstack/react-query'
import { ChevronDown } from 'lucide-react'
import { useI18n } from '@/i18n'
+import { apiFetch } from '@/lib/api'
import { formatPercent, formatTokens, platformColors, type TokenUsageData } from '@/lib/routing'
// Legend rows visible while collapsed (~6 rows: 6 × 16px line + 5 × 6px gap).
@@ -108,6 +110,151 @@ export function TokenUsageBar({ data }: { data: TokenUsageData }) {
<ChevronDown className={`size-3.5 transition-transform duration-300 ${expanded ? 'rotate-180' : ''}`} />
</button>
)}
+
+ <FreeTierPools />
</section>
)
}
+
+interface FreeTierPool {
+ poolKey: string
+ platform: string
+ modelCount: number
+ disabledModelCount: number
+ keyCount: number
+ documentedBudget: number
+ bestLabel: string
+ kind: 'documented' | 'credits' | 'unpublished'
+ quota: {
+ limit: number | null
+ remaining: number | null
+ resetAt: string | null
+ metric: string
+ keyCount: number
+ } | null
+}
+
+interface FreeTierResponse {
+ generatedAt: string
+ summary: {
+ poolCount: number
+ documentedMonthlyTokens: number
+ creditsBasedPools: number
+ unpublishedPools: number
+ }
+ pools: FreeTierPool[]
+}
+
+const METRIC_KEYS: Record<string, string> = {
+ tokens: 'freeTier.metricTokens',
+ requests: 'freeTier.metricRequests',
+ credits: 'freeTier.metricCredits',
+ neurons: 'freeTier.metricNeurons',
+}
+
+// Pool-deduped free-tier budgets (#905). The stacked bar above sums per model,
+// which double-counts every model sharing one provider allowance; this is the
+// same capacity counted once per pool. It is a detail view, so it lives as a
+// collapsed row under the bar rather than as its own page — and it only fetches
+// once someone opens it.
+function FreeTierPools() {
+ const { t } = useI18n()
+ const [open, setOpen] = useState(false)
+ const { data } = useQuery({
+ queryKey: ['free-tier'],
+ queryFn: () => apiFetch<FreeTierResponse>('/api/free-tier'),
+ enabled: open,
+ })
+
+ return (
+ <div className="mt-3 border-t pt-2">
+ <button
+ onClick={() => setOpen(o => !o)}
+ className="flex w-full items-center justify-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors"
+ aria-expanded={open}
+ >
+ {data ? t('freeTier.poolsToggle', { count: data.summary.poolCount }) : t('freeTier.poolsToggleBare')}
+ <ChevronDown className={`size-3.5 transition-transform duration-300 ${open ? 'rotate-180' : ''}`} />
+ </button>
+
+ {open && data && (
+ <div className="mt-3">
+ <p className="text-xs text-muted-foreground mb-2">
+ {t('freeTier.summary', {
+ pools: data.summary.poolCount,
+ budget: formatTokens(data.summary.documentedMonthlyTokens),
+ credits: data.summary.creditsBasedPools,
+ unpublished: data.summary.unpublishedPools,
+ })}
+ </p>
+ {data.pools.length === 0 ? (
+ <p className="text-xs text-muted-foreground py-2">{t('freeTier.empty')}</p>
+ ) : (
+ <div className="overflow-x-auto">
+ <table className="w-full text-xs tabular-nums">
+ <thead className="text-muted-foreground">
+ <tr className="border-b">
+ <th className="text-left font-normal py-1.5 pr-3">{t('freeTier.pool')}</th>
+ <th className="text-right font-normal py-1.5 px-3">{t('freeTier.models')}</th>
+ <th className="text-right font-normal py-1.5 px-3">{t('freeTier.budget')}</th>
+ <th className="text-left font-normal py-1.5 px-3">{t('freeTier.kind')}</th>
+ <th className="text-right font-normal py-1.5 px-3">{t('freeTier.remaining')}</th>
+ <th className="text-left font-normal py-1.5 pl-3">{t('freeTier.resetAt')}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {data.pools.map(p => (
+ <tr key={p.poolKey} className="border-b last:border-0">
+ <td className="py-1.5 pr-3">
+ <span className="inline-flex items-center gap-2 min-w-0">
+ <span
+ className="size-2 rounded-sm flex-shrink-0"
+ style={{ backgroundColor: platformColors[p.platform] ?? '#94a3b8' }}
+ />
+ <span className="truncate font-mono">{p.poolKey}</span>
+ </span>
+ </td>
+ <td className="text-right py-1.5 px-3">
+ {p.modelCount}
+ {p.disabledModelCount > 0 && (
+ <span className="text-muted-foreground">
+ {' '}
+ {t('freeTier.disabledModels', { count: p.disabledModelCount })}
+ </span>
+ )}
+ </td>
+ <td className="text-right py-1.5 px-3">
+ {p.documentedBudget > 0 ? formatTokens(p.documentedBudget) : '—'}
+ </td>
+ <td className="py-1.5 px-3 text-muted-foreground">
+ {t(`freeTier.kind${p.kind === 'documented' ? 'Documented' : p.kind === 'credits' ? 'Credits' : 'Unpublished'}`)}
+ </td>
+ <td className="text-right py-1.5 px-3">
+ {p.quota?.remaining != null ? (
+ <>
+ {formatTokens(p.quota.remaining)}{' '}
+ {/* Always say WHICH budget the number counts: a
+ request counter next to a token budget reads as
+ tokens otherwise. */}
+ <span className="text-muted-foreground">
+ {t(METRIC_KEYS[p.quota.metric] ?? 'freeTier.metricOther')}
+ </span>
+ </>
+ ) : (
+ '—'
+ )}
+ </td>
+ <td className="py-1.5 pl-3 text-muted-foreground whitespace-nowrap">
+ {p.quota?.resetAt ? new Date(p.quota.resetAt).toLocaleString() : '—'}
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ )
+}
diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.json
index 05093a0e..5ab9abbc 100644
--- a/client/src/i18n/locales/am.json
+++ b/client/src/i18n/locales/am.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json
index b17ab0c2..daf2f384 100644
--- a/client/src/i18n/locales/ar.json
+++ b/client/src/i18n/locales/ar.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "مجمّعات الطبقة المجانية ({count})",
+ "poolsToggleBare": "مجمّعات الطبقة المجانية",
+ "summary": "{pools} مجمّعات · {budget} رمز/شهر تُحتسب مرة واحدة لكل مجمّع · {credits} بالأرصدة · {unpublished} غير معلنة",
+ "pool": "المجمّع",
+ "models": "النماذج",
+ "budget": "الميزانية الشهرية",
+ "kind": "النوع",
+ "kindDocumented": "موثّق",
+ "kindCredits": "أرصدة",
+ "kindUnpublished": "غير معلن",
+ "remaining": "المتبقي",
+ "resetAt": "يُعاد الضبط",
+ "disabledModels": "({count} معطّل)",
+ "metricTokens": "رمز",
+ "metricRequests": "طلب",
+ "metricCredits": "رصيد",
+ "metricNeurons": "خلية عصبية",
+ "metricOther": "وحدة",
+ "empty": "لا توجد نماذج مفعّلة تحتوي على بيانات ميزانية الطبقة المجانية."
}
}
diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.json
index c029d925..b56bd6f1 100644
--- a/client/src/i18n/locales/az.json
+++ b/client/src/i18n/locales/az.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.json
index fa277bbc..c2f847f9 100644
--- a/client/src/i18n/locales/bg.json
+++ b/client/src/i18n/locales/bg.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.json
index db05f9f2..f21b4276 100644
--- a/client/src/i18n/locales/bn.json
+++ b/client/src/i18n/locales/bn.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.json
index 6980bc51..f83ff2ea 100644
--- a/client/src/i18n/locales/cs.json
+++ b/client/src/i18n/locales/cs.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json
index 41599fbf..4d7f4eb1 100644
--- a/client/src/i18n/locales/da.json
+++ b/client/src/i18n/locales/da.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json
index 34f723f7..ec7ffea1 100644
--- a/client/src/i18n/locales/de.json
+++ b/client/src/i18n/locales/de.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-Tier-Pools ({count})",
+ "poolsToggleBare": "Free-Tier-Pools",
+ "summary": "{pools} Pools · {budget} Token/Monat, pro Pool nur einmal gezählt · {credits} guthabenbasiert · {unpublished} unveröffentlicht",
+ "pool": "Pool",
+ "models": "Modelle",
+ "budget": "Monatsbudget",
+ "kind": "Art",
+ "kindDocumented": "Dokumentiert",
+ "kindCredits": "Guthaben",
+ "kindUnpublished": "Unveröffentlicht",
+ "remaining": "Verbleibend",
+ "resetAt": "Zurücksetzung",
+ "disabledModels": "({count} aus)",
+ "metricTokens": "Token",
+ "metricRequests": "Anfragen",
+ "metricCredits": "Guthaben",
+ "metricNeurons": "Neuronen",
+ "metricOther": "Einheiten",
+ "empty": "Keine aktivierten Modelle mit Free-Tier-Budgetdaten."
}
}
diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.json
index c68a8ab5..afd97904 100644
--- a/client/src/i18n/locales/el.json
+++ b/client/src/i18n/locales/el.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json
index 400dc7ed..c66db2a3 100644
--- a/client/src/i18n/locales/en.json
+++ b/client/src/i18n/locales/en.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.json
index 85de1f8e..bcc968f0 100644
--- a/client/src/i18n/locales/es.json
+++ b/client/src/i18n/locales/es.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Grupos del nivel gratuito ({count})",
+ "poolsToggleBare": "Grupos del nivel gratuito",
+ "summary": "{pools} grupos · {budget} tokens/mes contados una vez por grupo · {credits} basados en créditos · {unpublished} sin publicar",
+ "pool": "Grupo",
+ "models": "Modelos",
+ "budget": "Presupuesto mensual",
+ "kind": "Tipo",
+ "kindDocumented": "Documentado",
+ "kindCredits": "Créditos",
+ "kindUnpublished": "Sin publicar",
+ "remaining": "Restante",
+ "resetAt": "Se restablece",
+ "disabledModels": "({count} apagados)",
+ "metricTokens": "tokens",
+ "metricRequests": "solicitudes",
+ "metricCredits": "créditos",
+ "metricNeurons": "neuronas",
+ "metricOther": "unidades",
+ "empty": "No hay modelos habilitados con datos de presupuesto del nivel gratuito."
}
}
diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.json
index 1f3fcebd..63ead53f 100644
--- a/client/src/i18n/locales/fa.json
+++ b/client/src/i18n/locales/fa.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.json
index 7a00fdf8..fd5864e1 100644
--- a/client/src/i18n/locales/fi.json
+++ b/client/src/i18n/locales/fi.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.json
index 3f03051d..c63b2f9d 100644
--- a/client/src/i18n/locales/fr.json
+++ b/client/src/i18n/locales/fr.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Pools de l'offre gratuite ({count})",
+ "poolsToggleBare": "Pools de l'offre gratuite",
+ "summary": "{pools} pools · {budget} jetons/mois comptés une seule fois par pool · {credits} à crédits · {unpublished} non publiés",
+ "pool": "Pool",
+ "models": "Modèles",
+ "budget": "Budget mensuel",
+ "kind": "Type",
+ "kindDocumented": "Documenté",
+ "kindCredits": "Crédits",
+ "kindUnpublished": "Non publié",
+ "remaining": "Restant",
+ "resetAt": "Réinitialisation",
+ "disabledModels": "({count} désactivés)",
+ "metricTokens": "jetons",
+ "metricRequests": "requêtes",
+ "metricCredits": "crédits",
+ "metricNeurons": "neurones",
+ "metricOther": "unités",
+ "empty": "Aucun modèle activé avec des données de budget d'offre gratuite."
}
}
diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.json
index 0447e2f6..7d5c0d96 100644
--- a/client/src/i18n/locales/gu.json
+++ b/client/src/i18n/locales/gu.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.json
index f325f037..9d202ed3 100644
--- a/client/src/i18n/locales/ha.json
+++ b/client/src/i18n/locales/ha.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.json
index 0c2f7593..5f68b343 100644
--- a/client/src/i18n/locales/he.json
+++ b/client/src/i18n/locales/he.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.json
index 43956bec..9d17397c 100644
--- a/client/src/i18n/locales/hi.json
+++ b/client/src/i18n/locales/hi.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "फ्री टियर पूल ({count})",
+ "poolsToggleBare": "फ्री टियर पूल",
+ "summary": "{pools} पूल · {budget} टोकन/माह, हर पूल एक ही बार गिना गया · {credits} क्रेडिट-आधारित · {unpublished} अप्रकाशित",
+ "pool": "पूल",
+ "models": "मॉडल",
+ "budget": "मासिक बजट",
+ "kind": "प्रकार",
+ "kindDocumented": "प्रलेखित",
+ "kindCredits": "क्रेडिट",
+ "kindUnpublished": "अप्रकाशित",
+ "remaining": "शेष",
+ "resetAt": "रीसेट",
+ "disabledModels": "({count} बंद)",
+ "metricTokens": "टोकन",
+ "metricRequests": "अनुरोध",
+ "metricCredits": "क्रेडिट",
+ "metricNeurons": "न्यूरॉन",
+ "metricOther": "इकाई",
+ "empty": "फ्री टियर बजट डेटा वाला कोई सक्षम मॉडल नहीं।"
}
}
diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.json
index bbebf25b..2843fbcb 100644
--- a/client/src/i18n/locales/hr.json
+++ b/client/src/i18n/locales/hr.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.json
index a06f128f..df8a9176 100644
--- a/client/src/i18n/locales/hu.json
+++ b/client/src/i18n/locales/hu.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.json
index 0307a816..4413205b 100644
--- a/client/src/i18n/locales/id.json
+++ b/client/src/i18n/locales/id.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Kumpulan tingkat gratis ({count})",
+ "poolsToggleBare": "Kumpulan tingkat gratis",
+ "summary": "{pools} kumpulan · {budget} token/bln dihitung sekali per kumpulan · {credits} berbasis kredit · {unpublished} tidak dipublikasikan",
+ "pool": "Kumpulan",
+ "models": "Model",
+ "budget": "Anggaran bulanan",
+ "kind": "Jenis",
+ "kindDocumented": "Terdokumentasi",
+ "kindCredits": "Kredit",
+ "kindUnpublished": "Tidak dipublikasikan",
+ "remaining": "Sisa",
+ "resetAt": "Reset pada",
+ "disabledModels": "({count} nonaktif)",
+ "metricTokens": "token",
+ "metricRequests": "permintaan",
+ "metricCredits": "kredit",
+ "metricNeurons": "neuron",
+ "metricOther": "unit",
+ "empty": "Tidak ada model aktif dengan data anggaran tingkat gratis."
}
}
diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.json
index c9345b21..dce98a86 100644
--- a/client/src/i18n/locales/ig.json
+++ b/client/src/i18n/locales/ig.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.json
index 408d60ce..0084854a 100644
--- a/client/src/i18n/locales/it.json
+++ b/client/src/i18n/locales/it.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Pool del piano gratuito ({count})",
+ "poolsToggleBare": "Pool del piano gratuito",
+ "summary": "{pools} pool · {budget} token/mese conteggiati una volta per pool · {credits} a crediti · {unpublished} non pubblicati",
+ "pool": "Pool",
+ "models": "Modelli",
+ "budget": "Budget mensile",
+ "kind": "Tipo",
+ "kindDocumented": "Documentato",
+ "kindCredits": "Crediti",
+ "kindUnpublished": "Non pubblicato",
+ "remaining": "Residuo",
+ "resetAt": "Reset",
+ "disabledModels": "({count} disattivati)",
+ "metricTokens": "token",
+ "metricRequests": "richieste",
+ "metricCredits": "crediti",
+ "metricNeurons": "neuroni",
+ "metricOther": "unità",
+ "empty": "Nessun modello abilitato con dati di budget del piano gratuito."
}
}
diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.json
index d4d7161c..e0f48915 100644
--- a/client/src/i18n/locales/ja.json
+++ b/client/src/i18n/locales/ja.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "無料枠プール({count})",
+ "poolsToggleBare": "無料枠プール",
+ "summary": "{pools} プール · {budget} トークン/月(プールごとに1回だけ計上) · クレジット制 {credits} · 未公開 {unpublished}",
+ "pool": "プール",
+ "models": "モデル数",
+ "budget": "月間予算",
+ "kind": "種別",
+ "kindDocumented": "公開値",
+ "kindCredits": "クレジット",
+ "kindUnpublished": "未公開",
+ "remaining": "残り",
+ "resetAt": "リセット時刻",
+ "disabledModels": "({count} 件無効)",
+ "metricTokens": "トークン",
+ "metricRequests": "リクエスト",
+ "metricCredits": "クレジット",
+ "metricNeurons": "ニューロン",
+ "metricOther": "単位",
+ "empty": "無料枠の予算データを持つ有効なモデルがありません。"
}
}
diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.json
index ba4df9cf..ed16a43d 100644
--- a/client/src/i18n/locales/ka.json
+++ b/client/src/i18n/locales/ka.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.json
index fc955c22..86057bfa 100644
--- a/client/src/i18n/locales/km.json
+++ b/client/src/i18n/locales/km.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.json
index bc1954c0..4af0b5a4 100644
--- a/client/src/i18n/locales/kn.json
+++ b/client/src/i18n/locales/kn.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.json
index f6c8453c..d1026d83 100644
--- a/client/src/i18n/locales/ko.json
+++ b/client/src/i18n/locales/ko.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "무료 등급 풀 ({count})",
+ "poolsToggleBare": "무료 등급 풀",
+ "summary": "{pools}개 풀 · {budget} 토큰/월, 풀당 한 번만 집계 · 크레딧 기반 {credits}개 · 미공개 {unpublished}개",
+ "pool": "풀",
+ "models": "모델 수",
+ "budget": "월간 예산",
+ "kind": "종류",
+ "kindDocumented": "공개됨",
+ "kindCredits": "크레딧",
+ "kindUnpublished": "미공개",
+ "remaining": "남음",
+ "resetAt": "재설정 시각",
+ "disabledModels": "({count}개 꺼짐)",
+ "metricTokens": "토큰",
+ "metricRequests": "요청",
+ "metricCredits": "크레딧",
+ "metricNeurons": "뉴런",
+ "metricOther": "단위",
+ "empty": "무료 등급 예산 데이터가 있는 활성화된 모델이 없습니다."
}
}
diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.json
index 7f35ba70..b275d284 100644
--- a/client/src/i18n/locales/lt.json
+++ b/client/src/i18n/locales/lt.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.json
index ac2d6b56..506ae951 100644
--- a/client/src/i18n/locales/ml.json
+++ b/client/src/i18n/locales/ml.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.json
index d0c45b0f..e742e945 100644
--- a/client/src/i18n/locales/mr.json
+++ b/client/src/i18n/locales/mr.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.json
index 5f410955..4aab8d2b 100644
--- a/client/src/i18n/locales/ms.json
+++ b/client/src/i18n/locales/ms.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.json
index 58cc0201..6784b96a 100644
--- a/client/src/i18n/locales/my.json
+++ b/client/src/i18n/locales/my.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.json
index f90a5438..71fb5a94 100644
--- a/client/src/i18n/locales/ne.json
+++ b/client/src/i18n/locales/ne.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.json
index 6755b0b8..dc2c0ffd 100644
--- a/client/src/i18n/locales/nl.json
+++ b/client/src/i18n/locales/nl.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Gratis-tierpools ({count})",
+ "poolsToggleBare": "Gratis-tierpools",
+ "summary": "{pools} pools · {budget} tokens/maand, per pool één keer geteld · {credits} op tegoed · {unpublished} niet gepubliceerd",
+ "pool": "Pool",
+ "models": "Modellen",
+ "budget": "Maandbudget",
+ "kind": "Soort",
+ "kindDocumented": "Gedocumenteerd",
+ "kindCredits": "Tegoed",
+ "kindUnpublished": "Niet gepubliceerd",
+ "remaining": "Resterend",
+ "resetAt": "Reset op",
+ "disabledModels": "({count} uit)",
+ "metricTokens": "tokens",
+ "metricRequests": "verzoeken",
+ "metricCredits": "tegoeden",
+ "metricNeurons": "neuronen",
+ "metricOther": "eenheden",
+ "empty": "Geen ingeschakelde modellen met gegevens over het gratis budget."
}
}
diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.json
index 82b7b5a6..a364a758 100644
--- a/client/src/i18n/locales/no.json
+++ b/client/src/i18n/locales/no.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.json
index 15da0766..5f3efe22 100644
--- a/client/src/i18n/locales/or.json
+++ b/client/src/i18n/locales/or.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.json
index 9e9d90c2..9cf4a540 100644
--- a/client/src/i18n/locales/pa.json
+++ b/client/src/i18n/locales/pa.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.json
index 78905272..e2792e83 100644
--- a/client/src/i18n/locales/pl.json
+++ b/client/src/i18n/locales/pl.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Pule darmowego poziomu ({count})",
+ "poolsToggleBare": "Pule darmowego poziomu",
+ "summary": "{pools} pul · {budget} tokenów/mies. liczonych raz na pulę · {credits} na kredytach · {unpublished} bez danych",
+ "pool": "Pula",
+ "models": "Modele",
+ "budget": "Budżet miesięczny",
+ "kind": "Rodzaj",
+ "kindDocumented": "Udokumentowany",
+ "kindCredits": "Kredyty",
+ "kindUnpublished": "Nieopublikowany",
+ "remaining": "Pozostało",
+ "resetAt": "Reset",
+ "disabledModels": "({count} wył.)",
+ "metricTokens": "tokenów",
+ "metricRequests": "zapytań",
+ "metricCredits": "kredytów",
+ "metricNeurons": "neuronów",
+ "metricOther": "jednostek",
+ "empty": "Brak włączonych modeli z danymi o budżecie darmowego poziomu."
}
}
diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.json
index 01d1fe89..6f57ac3f 100644
--- a/client/src/i18n/locales/pt-BR.json
+++ b/client/src/i18n/locales/pt-BR.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Grupos do nível gratuito ({count})",
+ "poolsToggleBare": "Grupos do nível gratuito",
+ "summary": "{pools} grupos · {budget} tokens/mês contados uma vez por grupo · {credits} baseados em créditos · {unpublished} não publicados",
+ "pool": "Grupo",
+ "models": "Modelos",
+ "budget": "Orçamento mensal",
+ "kind": "Tipo",
+ "kindDocumented": "Documentado",
+ "kindCredits": "Créditos",
+ "kindUnpublished": "Não publicado",
+ "remaining": "Restante",
+ "resetAt": "Reinicia em",
+ "disabledModels": "({count} desligados)",
+ "metricTokens": "tokens",
+ "metricRequests": "requisições",
+ "metricCredits": "créditos",
+ "metricNeurons": "neurônios",
+ "metricOther": "unidades",
+ "empty": "Nenhum modelo ativado com dados de orçamento do nível gratuito."
}
}
diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.json
index 85f250c9..11c65ee5 100644
--- a/client/src/i18n/locales/pt-PT.json
+++ b/client/src/i18n/locales/pt-PT.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.json
index e2327a9a..62f20ed4 100644
--- a/client/src/i18n/locales/ro.json
+++ b/client/src/i18n/locales/ro.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.json
index ff1e8e67..03ec544e 100644
--- a/client/src/i18n/locales/ru.json
+++ b/client/src/i18n/locales/ru.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Пулы бесплатного тарифа ({count})",
+ "poolsToggleBare": "Пулы бесплатного тарифа",
+ "summary": "{pools} пулов · {budget} токенов/мес, каждый пул учтён один раз · {credits} на кредитах · {unpublished} без данных",
+ "pool": "Пул",
+ "models": "Модели",
+ "budget": "Месячный лимит",
+ "kind": "Тип",
+ "kindDocumented": "Задокументирован",
+ "kindCredits": "Кредиты",
+ "kindUnpublished": "Не опубликован",
+ "remaining": "Осталось",
+ "resetAt": "Сброс",
+ "disabledModels": "({count} выкл.)",
+ "metricTokens": "токенов",
+ "metricRequests": "запросов",
+ "metricCredits": "кредитов",
+ "metricNeurons": "нейронов",
+ "metricOther": "единиц",
+ "empty": "Нет включённых моделей с данными о бесплатном лимите."
}
}
diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.json
index 062d3047..0e6e229c 100644
--- a/client/src/i18n/locales/si.json
+++ b/client/src/i18n/locales/si.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.json
index c38c2483..b447d926 100644
--- a/client/src/i18n/locales/sk.json
+++ b/client/src/i18n/locales/sk.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.json
index ae1b4329..df297b8c 100644
--- a/client/src/i18n/locales/sr.json
+++ b/client/src/i18n/locales/sr.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json
index 4b3e5162..9c398e48 100644
--- a/client/src/i18n/locales/sv.json
+++ b/client/src/i18n/locales/sv.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.json
index f8e197df..419ffd09 100644
--- a/client/src/i18n/locales/sw.json
+++ b/client/src/i18n/locales/sw.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.json
index 84a3196a..ff018cff 100644
--- a/client/src/i18n/locales/ta.json
+++ b/client/src/i18n/locales/ta.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.json
index 63369e7d..67e95e2f 100644
--- a/client/src/i18n/locales/te.json
+++ b/client/src/i18n/locales/te.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.json
index 985ac3b5..b2dc3b1a 100644
--- a/client/src/i18n/locales/th.json
+++ b/client/src/i18n/locales/th.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.json
index 3d919044..ead7aa4c 100644
--- a/client/src/i18n/locales/tl.json
+++ b/client/src/i18n/locales/tl.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.json
index ab7dec11..4a96c967 100644
--- a/client/src/i18n/locales/tr.json
+++ b/client/src/i18n/locales/tr.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Ücretsiz katman havuzları ({count})",
+ "poolsToggleBare": "Ücretsiz katman havuzları",
+ "summary": "{pools} havuz · {budget} jeton/ay, her havuz bir kez sayılır · {credits} kredi tabanlı · {unpublished} yayımlanmamış",
+ "pool": "Havuz",
+ "models": "Modeller",
+ "budget": "Aylık bütçe",
+ "kind": "Tür",
+ "kindDocumented": "Belgelenmiş",
+ "kindCredits": "Kredi",
+ "kindUnpublished": "Yayımlanmamış",
+ "remaining": "Kalan",
+ "resetAt": "Sıfırlanma",
+ "disabledModels": "({count} kapalı)",
+ "metricTokens": "jeton",
+ "metricRequests": "istek",
+ "metricCredits": "kredi",
+ "metricNeurons": "nöron",
+ "metricOther": "birim",
+ "empty": "Ücretsiz katman bütçe verisi olan etkin model yok."
}
}
diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.json
index c9cdf851..c5f87d6b 100644
--- a/client/src/i18n/locales/uk.json
+++ b/client/src/i18n/locales/uk.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.json
index 890b2f6f..9bdfcebf 100644
--- a/client/src/i18n/locales/ur.json
+++ b/client/src/i18n/locales/ur.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.json
index db2d9558..0231a801 100644
--- a/client/src/i18n/locales/uz.json
+++ b/client/src/i18n/locales/uz.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.json
index 4b15efb1..912909be 100644
--- a/client/src/i18n/locales/vi.json
+++ b/client/src/i18n/locales/vi.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Nhóm hạn mức miễn phí ({count})",
+ "poolsToggleBare": "Nhóm hạn mức miễn phí",
+ "summary": "{pools} nhóm · {budget} token/tháng, mỗi nhóm chỉ tính một lần · {credits} theo tín dụng · {unpublished} chưa công bố",
+ "pool": "Nhóm",
+ "models": "Mô hình",
+ "budget": "Hạn mức hàng tháng",
+ "kind": "Loại",
+ "kindDocumented": "Đã công bố",
+ "kindCredits": "Tín dụng",
+ "kindUnpublished": "Chưa công bố",
+ "remaining": "Còn lại",
+ "resetAt": "Đặt lại lúc",
+ "disabledModels": "({count} đã tắt)",
+ "metricTokens": "token",
+ "metricRequests": "yêu cầu",
+ "metricCredits": "tín dụng",
+ "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í."
}
}
diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.json
index 287d59e5..15d3c5b1 100644
--- a/client/src/i18n/locales/yo.json
+++ b/client/src/i18n/locales/yo.json
@@ -983,5 +983,26 @@
"openRelease": "Open release page",
"dismissVersion": "Dismiss this version",
"dismiss": "Dismiss"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.json
index e280d901..c35035ee 100644
--- a/client/src/i18n/locales/zh-CN.json
+++ b/client/src/i18n/locales/zh-CN.json
@@ -983,5 +983,26 @@
"openRelease": "打开发布页",
"dismissVersion": "忽略此版本",
"dismiss": "忽略"
+ },
+ "freeTier": {
+ "poolsToggle": "免费额度池({count})",
+ "poolsToggleBare": "免费额度池",
+ "summary": "{pools} 个池 · {budget} 令牌/月,每个池只计一次 · 积分制 {credits} 个 · 未公布 {unpublished} 个",
+ "pool": "额度池",
+ "models": "模型数",
+ "budget": "月度额度",
+ "kind": "类型",
+ "kindDocumented": "已公布",
+ "kindCredits": "积分",
+ "kindUnpublished": "未公布",
+ "remaining": "剩余",
+ "resetAt": "重置时间",
+ "disabledModels": "({count} 个已关闭)",
+ "metricTokens": "令牌",
+ "metricRequests": "请求",
+ "metricCredits": "积分",
+ "metricNeurons": "神经元",
+ "metricOther": "单位",
+ "empty": "没有启用且带免费额度数据的模型。"
}
}
diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.json
index 5e47c00f..fd681126 100644
--- a/client/src/i18n/locales/zh-TW.json
+++ b/client/src/i18n/locales/zh-TW.json
@@ -983,5 +983,26 @@
"openRelease": "打开发布页",
"dismissVersion": "忽略此版本",
"dismiss": "忽略"
+ },
+ "freeTier": {
+ "poolsToggle": "Free-tier pools ({count})",
+ "poolsToggleBare": "Free-tier pools",
+ "summary": "{pools} pools · {budget} tokens/mo counted once per pool · {credits} credits-based · {unpublished} unpublished",
+ "pool": "Pool",
+ "models": "Models",
+ "budget": "Monthly budget",
+ "kind": "Kind",
+ "kindDocumented": "Documented",
+ "kindCredits": "Credits",
+ "kindUnpublished": "Unpublished",
+ "remaining": "Remaining",
+ "resetAt": "Resets at",
+ "disabledModels": "({count} off)",
+ "metricTokens": "tokens",
+ "metricRequests": "requests",
+ "metricCredits": "credits",
+ "metricNeurons": "neurons",
+ "metricOther": "units",
+ "empty": "No enabled models with free-tier budget data."
}
}
diff --git a/server/src/__tests__/routes/free-tier.test.ts b/server/src/__tests__/routes/free-tier.test.ts
new file mode 100644
index 00000000..6a78c9ca
--- /dev/null
+++ b/server/src/__tests__/routes/free-tier.test.ts
@@ -0,0 +1,167 @@
+import { describe, it, expect, beforeAll } from 'vitest';
+import type { Express } from 'express';
+import { createApp } from '../../app.js';
+import { getDb, initDb } from '../../db/index.js';
+import { encrypt } from '../../lib/crypto.js';
+import { mintDashboardToken } from '../helpers/auth.js';
+
+let dashToken = '';
+
+async function get(app: Express, path: string) {
+ const server = app.listen(0, '127.0.0.1');
+ if (!server.listening) await new Promise<void>(resolve => server.once('listening', () => resolve()));
+ const addr = server.address() as any;
+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, {
+ headers: { Authorization: `Bearer ${dashToken}` },
+ });
+ const body = await res.json().catch(() => null);
+ server.close();
+ return { status: res.status, body };
+}
+
+function insertKey(platform: string, label: string): number {
+ const db = getDb();
+ const enc = encrypt(`${platform}-${label}`);
+ const info = db.prepare(
+ "INSERT INTO api_keys (platform, label, encrypted_key, iv, auth_tag, status, enabled) VALUES (?,?,?,?,?,'healthy',1)",
+ ).run(platform, label, enc.encrypted, enc.iv, enc.authTag);
+ return Number(info.lastInsertRowid);
+}
+
+function future(minutes: number): string {
+ return new Date(Date.now() + minutes * 60_000).toISOString();
+}
+
+function observe(row: {
+ platform: string; keyId: number; pool: string; metric: string;
+ limit: number | null; remaining: number | null; resetAt: string | null; observedAt: string;
+}) {
+ getDb().prepare(`
+ INSERT INTO provider_quota_state
+ (platform, key_id, quota_pool_key, metric, limit_value, remaining_value, reset_at, reset_strategy, source, confidence, observed_at, updated_at)
+ VALUES (?,?,?,?,?,?,?, 'provider_reported', 'header', 1, ?, ?)
+ `).run(row.platform, row.keyId, row.pool, row.metric, row.limit, row.remaining, row.resetAt, row.observedAt, row.observedAt);
+}
+
+// GET /api/free-tier reports one budget per provider pool (#905). The pools it
+// reports are read by the collapsed table under the stacked token bar, so it
+// has to agree with /api/fallback/token-usage about key scaling, and it must
+// never present a request counter as if it were a token budget.
+describe('free-tier pool overview (#905)', () => {
+ let app: Express;
+ let groqKey = 0;
+ let cerebrasA = 0;
+ let cerebrasB = 0;
+
+ beforeAll(() => {
+ process.env.ENCRYPTION_KEY = '0'.repeat(64);
+ initDb(':memory:');
+ app = createApp();
+ dashToken = mintDashboardToken();
+ const db = getDb();
+
+ // Narrow the catalog down to a handful of rows across three platforms.
+ db.prepare('UPDATE models SET enabled = 0').run();
+ const groq = db.prepare("SELECT id, model_id FROM models WHERE platform = 'groq' ORDER BY id LIMIT 3").all() as { id: number; model_id: string }[];
+ const cerebras = db.prepare("SELECT id FROM models WHERE platform = 'cerebras' ORDER BY id LIMIT 2").all() as { id: number }[];
+ const google = db.prepare("SELECT id FROM models WHERE platform = 'google' ORDER BY id LIMIT 1").all() as { id: number }[];
+ const on = db.prepare('UPDATE models SET enabled = 1 WHERE id = ?');
+ for (const m of [...groq, ...cerebras, ...google]) on.run(m.id);
+
+ // Three groq models in ONE pool with different labels: the pool takes the
+ // largest documented budget once, never the sum of the three.
+ const budget = db.prepare('UPDATE models SET monthly_token_budget = ? WHERE id = ?');
+ budget.run('~6M', groq[0].id);
+ budget.run('~15M', groq[1].id);
+ budget.run('~6M', groq[2].id);
+ budget.run('~30M', cerebras[0].id);
+ budget.run('credits-based', cerebras[1].id);
+ budget.run('~3M', google[0].id);
+
+ // One groq row is switched off in the chain: it still shares the provider
+ // allowance, so it stays in the pool and is only marked.
+ // (initDb activates a Default profile, so the chain in play is
+ // profile_models; keep both in sync the way the dashboard does.)
+ db.prepare('UPDATE fallback_config SET enabled = 1').run();
+ db.prepare('UPDATE profile_models SET enabled = 1').run();
+ db.prepare('UPDATE fallback_config SET enabled = 0 WHERE model_db_id = ?').run(groq[2].id);
+ db.prepare('UPDATE profile_models SET enabled = 0 WHERE model_db_id = ?').run(groq[2].id);
+
+ groqKey = insertKey('groq', 'groq-main');
+ cerebrasA = insertKey('cerebras', 'cerebras-a');
+ cerebrasB = insertKey('cerebras', 'cerebras-b');
+ // google is deliberately left keyless.
+
+ // groq: an older `tokens` reading and a newer `requests` one (a 429 writes
+ // exactly this). Latest-wins would report 5,000 requests as the headroom.
+ observe({ platform: 'groq', keyId: groqKey, pool: 'groq::account', metric: 'tokens', limit: 15_000_000, remaining: 12_400_000, resetAt: future(600), observedAt: '2026-01-01 00:00:00' });
+ observe({ platform: 'groq', keyId: groqKey, pool: 'groq::account', metric: 'requests', limit: 14_400, remaining: 5_000, resetAt: future(120), observedAt: '2026-01-02 00:00:00' });
+ // cerebras: the same pool seen through two keys — two accounts, two allowances.
+ observe({ platform: 'cerebras', keyId: cerebrasA, pool: 'cerebras::shared', metric: 'tokens', limit: 30_000_000, remaining: 20_000_000, resetAt: future(300), observedAt: '2026-01-01 00:00:00' });
+ observe({ platform: 'cerebras', keyId: cerebrasB, pool: 'cerebras::shared', metric: 'tokens', limit: 30_000_000, remaining: 8_000_000, resetAt: future(180), observedAt: '2026-01-03 00:00:00' });
+ });
+
+ it('reports one row per pool with a single deduped budget', async () => {
+ const { status, body } = await get(app, '/api/free-tier');
+ expect(status).toBe(200);
+
+ const groq = body.pools.find((p: any) => p.poolKey === 'groq::account');
+ expect(groq).toBeDefined();
+ // Three models, ONE budget: the largest label in the pool (~15M), scaled by
+ // the single usable key — not 6M + 15M + 6M.
+ expect(groq.modelCount).toBe(3);
+ expect(groq.documentedBudget).toBe(15_000_000);
+ expect(body.summary.poolCount).toBe(body.pools.length);
+ });
+
+ it('scales a pool by the usable key count, like the stacked bar does', async () => {
+ const { body } = await get(app, '/api/free-tier');
+ const cerebras = body.pools.find((p: any) => p.poolKey === 'cerebras::shared');
+ // Two healthy keys = two accounts = twice the documented ~30M allowance.
+ expect(cerebras.keyCount).toBe(2);
+ expect(cerebras.documentedBudget).toBe(60_000_000);
+ expect(body.summary.documentedMonthlyTokens).toBe(60_000_000 + 15_000_000);
+ });
+
+ it('prefers the tokens observation over a newer requests one and always names the metric', async () => {
+ const { body } = await get(app, '/api/free-tier');
+ const groq = body.pools.find((p: any) => p.poolKey === 'groq::account');
+ expect(groq.quota.metric).toBe('tokens');
+ expect(groq.quota.remaining).toBe(12_400_000);
+ expect(groq.quota.limit).toBe(15_000_000);
+ // Every pool that reports anything says which budget the number counts.
+ for (const pool of body.pools) {
+ if (pool.quota) expect(typeof pool.quota.metric).toBe('string');
+ }
+ });
+
+ it('sums remaining across the keys sharing a pool instead of taking the latest', async () => {
+ const { body } = await get(app, '/api/free-tier');
+ const cerebras = body.pools.find((p: any) => p.poolKey === 'cerebras::shared');
+ expect(cerebras.quota.metric).toBe('tokens');
+ // 20M on one account + 8M on the other; latest-wins reported only 8M.
+ expect(cerebras.quota.remaining).toBe(28_000_000);
+ expect(cerebras.quota.limit).toBe(60_000_000);
+ expect(cerebras.quota.keyCount).toBe(2);
+ });
+
+ it('keeps chain-disabled rows in the pool but marks them', async () => {
+ const { body } = await get(app, '/api/free-tier');
+ const groq = body.pools.find((p: any) => p.poolKey === 'groq::account');
+ expect(groq.modelCount).toBe(3);
+ expect(groq.disabledModelCount).toBe(1);
+ // The disabled row does not reduce the pool's documented budget.
+ expect(groq.documentedBudget).toBe(15_000_000);
+ });
+
+ it('classifies a credits-only pool and skips platforms with no key', async () => {
+ const { body } = await get(app, '/api/free-tier');
+ expect(body.pools.some((p: any) => p.platform === 'google')).toBe(false);
+ const cerebras = body.pools.find((p: any) => p.poolKey === 'cerebras::shared');
+ // The pool holds one documented and one credits-based model: documented wins.
+ expect(cerebras.kind).toBe('documented');
+ expect(body.summary.creditsBasedPools + body.summary.unpublishedPools).toBe(
+ body.pools.filter((p: any) => p.kind !== 'documented').length,
+ );
+ });
+});
diff --git a/server/src/app.ts b/server/src/app.ts
index 54b91c5f..ba8c8147 100644
--- a/server/src/app.ts
+++ b/server/src/app.ts
@@ -18,6 +18,7 @@ import { embeddingsRouter } from './routes/embeddings.js';
import { mediaRouter } from './routes/media.js';
import { analyticsRouter } from './routes/analytics.js';
import { healthRouter } from './routes/health.js';
+import { freeTierRouter } from './routes/free-tier.js';
import { settingsRouter } from './routes/settings.js';
import { premiumRouter } from './routes/premium.js';
import { backupsRouter } from './routes/backups.js';
@@ -245,6 +246,7 @@ export function createApp(config?: Config) {
app.use('/api/media', requireAuth, mediaRouter);
app.use('/api/analytics', requireAuth, analyticsRouter);
app.use('/api/health', requireAuth, healthRouter);
+ app.use('/api/free-tier', requireAuth, freeTierRouter);
app.use('/api/settings', requireAuth, settingsRouter);
app.use('/api/premium', requireAuth, premiumRouter);
// Database dumps and restores. Dashboard-session gated: the dump files carry
diff --git a/server/src/routes/free-tier.ts b/server/src/routes/free-tier.ts
new file mode 100644
index 00000000..d509c104
--- /dev/null
+++ b/server/src/routes/free-tier.ts
@@ -0,0 +1,197 @@
+import { Router } from 'express';
+import type { Request, Response } from 'express';
+import { getDb } from '../db/index.js';
+import { parseBudget } from '../lib/budget.js';
+import { getActiveProfileId } from '../services/profile-models.js';
+import { inferQuotaPoolKey, getQuotaStateForKeys } from '../services/provider-quota.js';
+import type { Platform, QuotaMetric } from '@freellmapi/shared/types.js';
+
+/**
+ * Free-tier budget dashboard (#905).
+ *
+ * Pool-deduped monthly budget overview: the models table carries per-model
+ * labels like '~120M' / '~3M (1k credits)' / 'credits-based'; many models on
+ * one platform share the same free pool (see inferQuotaPoolKey), so summing
+ * every model's label would double-count. We take ONE documented budget per
+ * pool (the largest parseBudget value seen in it) and report the pools
+ * alongside live quota observations (used/remaining/reset) when the provider
+ * reports them.
+ *
+ * The model set, the key-count scaling and the enabled semantics deliberately
+ * match GET /api/fallback/token-usage (the stacked bar this table sits under),
+ * so the two never disagree about the same pool:
+ * - only platforms that actually have an enabled key are counted;
+ * - a documented budget is per account, so it is scaled by the usable
+ * (enabled + healthy/unknown) key count for the platform;
+ * - chain-disabled rows still contribute to the pool (they share the same
+ * provider allowance) and are only marked, never dropped.
+ */
+
+export const freeTierRouter = Router();
+
+interface PoolAgg {
+ poolKey: string;
+ platform: string;
+ modelCount: number;
+ disabledModelCount: number;
+ keyCount: number;
+ documentedBudget: number;
+ bestLabel: string;
+ kind: 'documented' | 'credits' | 'unpublished';
+}
+
+interface PoolQuota {
+ limit: number | null;
+ remaining: number | null;
+ resetAt: string | null;
+ metric: QuotaMetric;
+ keyCount: number;
+}
+
+// Which metric best describes a pool's headroom. A 429 or a Retry-After writes
+// a `requests` row with remaining=0, and it is almost always the newest row in
+// the pool — so "latest observation wins" would report a request counter (or a
+// hard 0) under a column the user reads as tokens. Prefer the metric that
+// actually measures the budget, and fall back only when nothing better exists.
+const METRIC_PREFERENCE: QuotaMetric[] = ['tokens', 'credits', 'neurons', 'requests'];
+
+/**
+ * Collapse the per-(key, metric) quota rows of one pool into a single reading.
+ * A pool is an allowance per provider account, so N keys on the platform mean N
+ * separate allowances: remaining/limit are SUMMED across keys, never
+ * latest-wins (which reported one account's headroom as if it were the total).
+ */
+function summarizeQuota(rows: ReturnType<typeof getQuotaStateForKeys>): PoolQuota | null {
+ if (rows.length === 0) return null;
+ const byMetric = new Map<QuotaMetric, typeof rows>();
+ for (const row of rows) {
+ const list = byMetric.get(row.metric);
+ if (list) list.push(row);
+ else byMetric.set(row.metric, [row]);
+ }
+ let metric = METRIC_PREFERENCE.find(m => byMetric.has(m));
+ if (!metric) {
+ // Unknown metric name (a newer provider, an older row): take the freshest.
+ metric = [...byMetric.keys()].sort((a, b) => {
+ const at = byMetric.get(a)!.reduce((s, r) => (r.observedAt > s ? r.observedAt : s), '');
+ const bt = byMetric.get(b)!.reduce((s, r) => (r.observedAt > s ? r.observedAt : s), '');
+ return bt.localeCompare(at);
+ })[0];
+ }
+ const chosen = byMetric.get(metric)!;
+
+ // One row per key (getQuotaStateForKeys is keyed by platform+key+pool+metric).
+ const seenKeys = new Set<number>();
+ let limit: number | null = null;
+ let remaining: number | null = null;
+ let resetAt: string | null = null;
+ for (const row of chosen) {
+ if (seenKeys.has(row.keyId)) continue;
+ seenKeys.add(row.keyId);
+ if (typeof row.limit === 'number') limit = (limit ?? 0) + row.limit;
+ if (typeof row.remaining === 'number') remaining = (remaining ?? 0) + row.remaining;
+ // The soonest reset is the one worth showing: it is when the pool next
+ // gains headroom.
+ if (row.resetAt && (resetAt === null || row.resetAt < resetAt)) resetAt = row.resetAt;
+ }
+ return { limit, remaining, resetAt, metric, keyCount: seenKeys.size };
+}
+
+freeTierRouter.get('/', (_req: Request, res: Response) => {
+ const db = getDb();
+
+ // Only platforms with an enabled key have a free tier to speak of — same
+ // filter the stacked bar uses for its per-model breakdown.
+ const platformSet = new Set(
+ (db.prepare('SELECT DISTINCT platform FROM api_keys WHERE enabled = 1').all() as { platform: string }[])
+ .map(p => p.platform),
+ );
+ // Usable keys per platform: a documented budget is per account, so two usable
+ // accounts really are twice the pool (fallback.ts uses the same filter).
+ const keyCountMap = new Map(
+ (db.prepare("SELECT platform, COUNT(*) as count FROM api_keys WHERE enabled = 1 AND status IN ('healthy', 'unknown') GROUP BY platform").all() as { platform: string; count: number }[])
+ .map(k => [k.platform, k.count]),
+ );
+
+ // Chain membership mirrors /token-usage: the active profile's chain when one
+ // is active, the default fallback chain otherwise. `chain_enabled` is only a
+ // marker — a switched-off row still consumes the same provider allowance.
+ const activeProfileId = getActiveProfileId(db);
+ const rows = (activeProfileId
+ ? db.prepare(`
+ SELECT m.platform, m.model_id, m.monthly_token_budget, pm.enabled AS chain_enabled
+ FROM profile_models pm
+ JOIN models m ON m.id = pm.model_db_id
+ WHERE pm.profile_id = ? AND m.enabled = 1
+ `).all(activeProfileId)
+ : db.prepare(`
+ SELECT m.platform, m.model_id, m.monthly_token_budget, COALESCE(fc.enabled, 1) AS chain_enabled
+ FROM models m
+ LEFT JOIN fallback_config fc ON fc.model_db_id = m.id
+ WHERE m.enabled = 1
+ `).all()) as { platform: string; model_id: string; monthly_token_budget: string; chain_enabled: number }[];
+
+ const pools = new Map<string, PoolAgg>();
+ for (const row of rows) {
+ if (!platformSet.has(row.platform)) continue;
+ const poolKey = inferQuotaPoolKey(row.platform as Platform, row.model_id);
+ const label = row.monthly_token_budget ?? '';
+ const budget = parseBudget(label);
+ let p = pools.get(poolKey);
+ if (!p) {
+ p = {
+ poolKey,
+ platform: row.platform,
+ modelCount: 0,
+ disabledModelCount: 0,
+ keyCount: keyCountMap.get(row.platform) ?? 0,
+ documentedBudget: 0,
+ bestLabel: label,
+ kind: 'unpublished',
+ };
+ pools.set(poolKey, p);
+ }
+ p.modelCount += 1;
+ if (row.chain_enabled === 0) p.disabledModelCount += 1;
+ // One budget per pool: keep the largest documented value.
+ if (budget > p.documentedBudget) {
+ p.documentedBudget = budget;
+ p.bestLabel = label;
+ }
+ if (p.kind !== 'documented') {
+ if (budget > 0) p.kind = 'documented';
+ else if (/credit/i.test(label)) p.kind = 'credits';
+ }
+ }
+
+ // Quota observations grouped per pool, then reduced per pool (see above).
+ const quotaRows = new Map<string, ReturnType<typeof getQuotaStateForKeys>>();
+ for (const q of getQuotaStateForKeys()) {
+ const key = q.quotaPoolKey || `${q.platform}::account`;
+ const list = quotaRows.get(key);
+ if (list) list.push(q);
+ else quotaRows.set(key, [q]);
+ }
+
+ const poolList = [...pools.values()].map(p => ({
+ ...p,
+ // Pooled capacity, scaled the same way the model rows and the stacked bar
+ // are (fallback.ts): one documented allowance per usable account.
+ documentedBudget: p.documentedBudget * Math.max(1, p.keyCount),
+ })).sort((a, b) => b.documentedBudget - a.documentedBudget || a.poolKey.localeCompare(b.poolKey));
+
+ const summary = {
+ poolCount: poolList.length,
+ documentedMonthlyTokens: poolList
+ .filter(p => p.kind === 'documented')
+ .reduce((s, p) => s + p.documentedBudget, 0),
+ creditsBasedPools: poolList.filter(p => p.kind === 'credits').length,
+ unpublishedPools: poolList.filter(p => p.kind === 'unpublished').length,
+ };
+
+ res.json({
+ generatedAt: new Date().toISOString(),
+ summary,
+ pools: poolList.map(p => ({ ...p, quota: summarizeQuota(quotaRows.get(p.poolKey) ?? []) })),
+ });
+});