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

feat(keys): monthly usage + editable budget caps in the edit-key dialog (#1351)

tashdroid64b352dc34fc
diff --git a/client/src/components/keys/edit-key-dialog.test.tsx b/client/src/components/keys/edit-key-dialog.test.tsx
index a9c4dcc1..f8166500 100644
--- a/client/src/components/keys/edit-key-dialog.test.tsx
+++ b/client/src/components/keys/edit-key-dialog.test.tsx
@@ -78,6 +78,44 @@ describe('editing provider credentials', () => {
await submit()
expect(apiFetch).toHaveBeenCalledWith('/api/keys/7', { method: 'PATCH', body: JSON.stringify({ key: 'new-token' }) })
})
+ it('sends a monthly request cap typed into the budget field', async () => {
+ mount(<EditKeyDialog apiKey={{ ...key, platform: 'groq', monthlyRequestCap: 0, monthlyTokenCap: 0 }} onOpenChange={onOpenChange} />)
+ enter('#edit-key-request-cap', '1000')
+ await submit()
+ expect(apiFetch).toHaveBeenCalledWith('/api/keys/7', { method: 'PATCH', body: JSON.stringify({ monthlyRequestCap: 1000 }) })
+ })
+ it('clearing a cap field submits 0 (unlimited)', async () => {
+ mount(<EditKeyDialog apiKey={{ ...key, platform: 'groq', monthlyTokenCap: 500000 }} onOpenChange={onOpenChange} />)
+ enter('#edit-key-token-cap', '')
+ await submit()
+ expect(apiFetch).toHaveBeenCalledWith('/api/keys/7', { method: 'PATCH', body: JSON.stringify({ monthlyTokenCap: 0 }) })
+ })
+ it('shows the current month usage without touching the form', async () => {
+ mount(<EditKeyDialog
+ apiKey={{ ...key, platform: 'groq', monthlyUsage: { requests: 42, tokens: 1234, resetsAt: '2026-10-01T00:00:00.000Z' } }}
+ onOpenChange={onOpenChange}
+ />)
+ expect(container.textContent).toContain('42 requests')
+ expect(container.textContent).toContain(`${(1234).toLocaleString()} tokens`)
+ await submit()
+ expect(apiFetch).not.toHaveBeenCalled()
+ expect(onOpenChange).toHaveBeenCalledWith(false)
+ })
+ it('keeps the budget collapsed when no cap is set', async () => {
+ mount(<EditKeyDialog apiKey={{ ...key, platform: 'groq', monthlyRequestCap: 0, monthlyTokenCap: 0 }} onOpenChange={onOpenChange} />)
+ expect(document.querySelector('details')!.open).toBe(false)
+ })
+ it('opens the budget when a cap is already set', async () => {
+ mount(<EditKeyDialog apiKey={{ ...key, platform: 'groq', monthlyRequestCap: 50 }} onOpenChange={onOpenChange} />)
+ expect(document.querySelector('details')!.open).toBe(true)
+ })
+ it('does not submit a non-numeric cap', async () => {
+ mount(<EditKeyDialog apiKey={{ ...key, platform: 'groq' }} onOpenChange={onOpenChange} />)
+ enter('#edit-key-request-cap', '10k')
+ await submit()
+ expect(apiFetch).not.toHaveBeenCalled()
+ expect(container.querySelector('#edit-key-request-cap')!.getAttribute('aria-invalid')).toBe('true')
+ })
it('loads model choices from the full catalog instead of a limited active chain', async () => {
vi.mocked(apiFetch).mockImplementation(async path => path === '/api/models'
? [{ platform: 'cloudflare', modelId: 'outside-chain', displayName: 'Outside active chain', sizeLabel: 'Small', contextWindow: 1000 }]
diff --git a/client/src/components/keys/edit-key-dialog.tsx b/client/src/components/keys/edit-key-dialog.tsx
index 544ba17e..9196cca8 100644
--- a/client/src/components/keys/edit-key-dialog.tsx
+++ b/client/src/components/keys/edit-key-dialog.tsx
@@ -14,6 +14,23 @@ import { PLATFORMS } from './shared'
type UpdateBody = {
label?: string
key?: string
+ monthlyRequestCap?: number
+ monthlyTokenCap?: number
+}
+
+/** Parse a budget-cap input: blank or 0 means unlimited (0); otherwise a
+ * non-negative integer. Anything else is invalid (null). */
+function parseCap(raw: string): number | null {
+ const trimmed = raw.trim()
+ if (!trimmed) return 0
+ if (!/^\d+$/.test(trimmed)) return null
+ const n = Number(trimmed)
+ return Number.isSafeInteger(n) ? n : null
+}
+
+/** Format a cap for the input: 0 (unlimited) shows as empty. */
+function capToInput(cap: number | undefined): string {
+ return cap && cap > 0 ? String(cap) : ''
}
/** Edit the mutable parts of a key without deleting its stable endpoint
@@ -32,6 +49,10 @@ export function EditKeyDialog({
const [apiKeyValue, setApiKeyValue] = useState('')
const [accountId, setAccountId] = useState('')
const [attempted, setAttempted] = useState(false)
+ // Monthly budget caps (#1158): editable here so the cap is settable from
+ // the dashboard at all; it shipped API-only. Empty = unlimited.
+ const [requestCap, setRequestCap] = useState(capToInput(apiKey.monthlyRequestCap))
+ const [tokenCap, setTokenCap] = useState(capToInput(apiKey.monthlyTokenCap))
const needsAccountId = apiKey.platform === 'cloudflare'
const canEditCredential = !apiKey.keyless
@@ -46,7 +67,12 @@ export function EditKeyDialog({
(accountId.trim() ? !apiKeyValue.trim() : Boolean(apiKeyValue.trim()))
? t('keys.editCredentialPartsRequired')
: null
- const hasChanges = label !== apiKey.label || Boolean(credential)
+ const requestCapValue = parseCap(requestCap)
+ const tokenCapValue = parseCap(tokenCap)
+ const capError = requestCapValue === null || tokenCapValue === null
+ const requestCapChanged = requestCapValue !== (apiKey.monthlyRequestCap || 0)
+ const tokenCapChanged = tokenCapValue !== (apiKey.monthlyTokenCap || 0)
+ const hasChanges = label !== apiKey.label || Boolean(credential) || requestCapChanged || tokenCapChanged
const updateKey = useMutation({
mutationFn: (body: UpdateBody) =>
@@ -59,7 +85,7 @@ export function EditKeyDialog({
const submit = (event: FormEvent) => {
event.preventDefault()
- if (credentialError) {
+ if (credentialError || capError) {
setAttempted(true)
return
}
@@ -67,6 +93,8 @@ export function EditKeyDialog({
const body: UpdateBody = {}
if (label !== apiKey.label) body.label = label
if (credential) body.key = credential
+ if (requestCapChanged && requestCapValue !== null) body.monthlyRequestCap = requestCapValue
+ if (tokenCapChanged && tokenCapValue !== null) body.monthlyTokenCap = tokenCapValue
if (Object.keys(body).length > 0) updateKey.mutate(body)
else onOpenChange(false)
}
@@ -145,6 +173,46 @@ export function EditKeyDialog({
)}
</div>
+ {/* Monthly budget (#1158) stays one collapsed line; it opens by
+ default only when a cap is already set, so a cap is never hidden. */}
+ <details className="group" open={Boolean(apiKey.monthlyRequestCap || apiKey.monthlyTokenCap) || undefined}>
+ <summary className="cursor-pointer select-none text-[11px] text-muted-foreground hover:text-foreground">
+ {apiKey.monthlyUsage
+ ? t('keys.monthlyUsageLine', {
+ requests: apiKey.monthlyUsage.requests.toLocaleString(),
+ tokens: apiKey.monthlyUsage.tokens.toLocaleString(),
+ })
+ : t('keys.monthlyRequestCapLabel')}
+ </summary>
+ <div className="mt-2 grid gap-3 sm:grid-cols-2">
+ <div className="space-y-1.5">
+ <Label className="text-xs" htmlFor="edit-key-request-cap">{t('keys.monthlyRequestCapLabel')}</Label>
+ <Input
+ id="edit-key-request-cap"
+ inputMode="numeric"
+ value={requestCap}
+ onChange={e => setRequestCap(e.target.value)}
+ placeholder={t('keys.capUnlimitedPlaceholder')}
+ className="font-mono text-xs"
+ aria-invalid={attempted && requestCapValue === null}
+ />
+ </div>
+ <div className="space-y-1.5">
+ <Label className="text-xs" htmlFor="edit-key-token-cap">{t('keys.monthlyTokenCapLabel')}</Label>
+ <Input
+ id="edit-key-token-cap"
+ inputMode="numeric"
+ value={tokenCap}
+ onChange={e => setTokenCap(e.target.value)}
+ placeholder={t('keys.capUnlimitedPlaceholder')}
+ className="font-mono text-xs"
+ aria-invalid={attempted && tokenCapValue === null}
+ />
+ </div>
+ </div>
+ <p className="mt-1.5 text-[11px] text-muted-foreground">{t('keys.capEditHint')}</p>
+ </details>
+
{updateKey.isError && (
<p className="text-xs text-destructive">{(updateKey.error as Error).message}</p>
)}
diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.json
index dac74bcf..82e98741 100644
--- a/client/src/i18n/locales/am.json
+++ b/client/src/i18n/locales/am.json
@@ -679,7 +679,12 @@
"testFailed": "የሞዴል ሙከራ አልተሳካም",
"testThrottled": "ይህን ሞዴል እንደገና ከመሞከርዎ በፊት እባክዎ {seconds} ሰከንድ ይጠብቁ።",
"noModelsForProvider": "ለዚህ አቅራቢ የተዋቀረ ሞዴል የለም።",
- "testModels": "ሞዴሎችን ይሞክሩ"
+ "testModels": "ሞዴሎችን ይሞክሩ",
+ "monthlyRequestCapLabel": "ወርሃዊ የጥያቄ ገደብ",
+ "monthlyTokenCapLabel": "ወርሃዊ የቶከን ገደብ",
+ "capUnlimitedPlaceholder": "ወሰን የለሽ",
+ "capEditHint": "ገደቦች በእያንዳንዱ ወር 1 ቀን 00:00 UTC ዳግም ይጀምራሉ። ለወሰን አልባ ባዶ ይተዉ።",
+ "monthlyUsageLine": "በዚህ ወር {requests} ጥያቄዎች፣ {tokens} ቶከኖች"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json
index 1c41a624..0ad06bdd 100644
--- a/client/src/i18n/locales/ar.json
+++ b/client/src/i18n/locales/ar.json
@@ -679,7 +679,12 @@
"testFailed": "فشل اختبار النموذج",
"testThrottled": "يرجى الانتظار {seconds} ثانية قبل اختبار هذا النموذج مرة أخرى.",
"noModelsForProvider": "لا توجد نماذج مهيأة لهذا المزود.",
- "testModels": "اختبار النماذج"
+ "testModels": "اختبار النماذج",
+ "monthlyRequestCapLabel": "الحد الشهري للطلبات",
+ "monthlyTokenCapLabel": "الحد الشهري للرموز",
+ "capUnlimitedPlaceholder": "غير محدود",
+ "capEditHint": "تُصفَّر الحدود في 1 من الشهر 00:00 بتوقيت UTC. اتركه فارغًا بلا حد.",
+ "monthlyUsageLine": "{requests} طلبًا، {tokens} رمز هذا الشهر"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.json
index 5438efe6..5b08c8d6 100644
--- a/client/src/i18n/locales/az.json
+++ b/client/src/i18n/locales/az.json
@@ -679,7 +679,12 @@
"testFailed": "Model sınağı uğursuz oldu",
"testThrottled": "Bu modeli yenidən sınaqdan keçirməzdən əvvəl {seconds} san gözləyin.",
"noModelsForProvider": "Bu təminatçı üçün heç bir model tənzimlənməyib.",
- "testModels": "Modelləri test et"
+ "testModels": "Modelləri test et",
+ "monthlyRequestCapLabel": "Aylıq sorğu limiti",
+ "monthlyTokenCapLabel": "Aylıq token limiti",
+ "capUnlimitedPlaceholder": "Limitsiz",
+ "capEditHint": "Limitlər hər ayın 1-i 00:00 UTC-də sıfırlanır. Limitsiz üçün boş buraxın.",
+ "monthlyUsageLine": "Bu ay {requests} sorğu, {tokens} token"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.json
index efed6ec9..832c6368 100644
--- a/client/src/i18n/locales/bg.json
+++ b/client/src/i18n/locales/bg.json
@@ -679,7 +679,12 @@
"testFailed": "Тестът на модела е неуспешен",
"testThrottled": "Моля, изчакайте {seconds} сек преди повторен тест на този модел.",
"noModelsForProvider": "Няма конфигурирани модели за този доставчик.",
- "testModels": "Тествай моделите"
+ "testModels": "Тествай моделите",
+ "monthlyRequestCapLabel": "Месечен лимит на заявки",
+ "monthlyTokenCapLabel": "Месечен лимит на токени",
+ "capUnlimitedPlaceholder": "Неограничен",
+ "capEditHint": "Лимитите се нулират на 1-во число 00:00 UTC. Оставете празно за неограничен.",
+ "monthlyUsageLine": "{requests} заявки, {tokens} токени този месец"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.json
index 0e724a29..9da15bd8 100644
--- a/client/src/i18n/locales/bn.json
+++ b/client/src/i18n/locales/bn.json
@@ -679,7 +679,12 @@
"testFailed": "মডেল পরীক্ষা ব্যর্থ হয়েছে",
"testThrottled": "এই মডেলটি আবার পরীক্ষা করার আগে অনুগ্রহ করে {seconds} সেকেন্ড অপেক্ষা করুন।",
"noModelsForProvider": "এই প্রদানকারীর জন্য কোনো মডেল কনফিগার করা হয়নি।",
- "testModels": "মডেল পরীক্ষা করুন"
+ "testModels": "মডেল পরীক্ষা করুন",
+ "monthlyRequestCapLabel": "মাসিক অনুরোধ সীমা",
+ "monthlyTokenCapLabel": "মাসিক টোকেন সীমা",
+ "capUnlimitedPlaceholder": "সীমাহীন",
+ "capEditHint": "সীমা প্রতি মাসের ১ তারিখে ০০:০০ UTC-তে রিসেট হয়। সীমাহীন রাখতে খালি রাখুন।",
+ "monthlyUsageLine": "এই মাসে {requests} অনুরোধ, {tokens} টোকেন"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.json
index dd02affc..679834cc 100644
--- a/client/src/i18n/locales/cs.json
+++ b/client/src/i18n/locales/cs.json
@@ -679,7 +679,12 @@
"testFailed": "Test modelu selhal",
"testThrottled": "Před dalším testem tohoto modelu počkejte {seconds} s.",
"noModelsForProvider": "Pro tohoto poskytovatele nejsou nakonfigurovány žádné modely.",
- "testModels": "Otestovat modely"
+ "testModels": "Otestovat modely",
+ "monthlyRequestCapLabel": "Měsíční limit požadavků",
+ "monthlyTokenCapLabel": "Měsíční limit tokenů",
+ "capUnlimitedPlaceholder": "Neomezeno",
+ "capEditHint": "Limity se resetují 1. dne v 00:00 UTC. Nechte prázdné pro neomezeno.",
+ "monthlyUsageLine": "{requests} požadavků, {tokens} tokenů tento měsíc"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json
index 2e3ce485..75d19b54 100644
--- a/client/src/i18n/locales/da.json
+++ b/client/src/i18n/locales/da.json
@@ -679,7 +679,12 @@
"testFailed": "Modeltest fejlede",
"testThrottled": "Vent venligst {seconds}s, før du tester denne model igen.",
"noModelsForProvider": "Ingen modeller konfigureret for denne udbyder.",
- "testModels": "Test modeller"
+ "testModels": "Test modeller",
+ "monthlyRequestCapLabel": "Månedlig grænse for anmodninger",
+ "monthlyTokenCapLabel": "Månedlig grænse for tokens",
+ "capUnlimitedPlaceholder": "Ubegrænset",
+ "capEditHint": "Grænser nulstilles den 1. kl. 00:00 UTC. Lad være tomt for ubegrænset.",
+ "monthlyUsageLine": "{requests} anmodninger, {tokens} tokens denne måned"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json
index e62c36f1..394f2af0 100644
--- a/client/src/i18n/locales/de.json
+++ b/client/src/i18n/locales/de.json
@@ -679,7 +679,12 @@
"testFailed": "Modelltest fehlgeschlagen",
"testThrottled": "Bitte warten Sie {seconds}s, bevor Sie dieses Modell erneut testen.",
"noModelsForProvider": "Keine Modelle für diesen Anbieter konfiguriert.",
- "testModels": "Modelle testen"
+ "testModels": "Modelle testen",
+ "monthlyRequestCapLabel": "Monatliches Anfrage-Limit",
+ "monthlyTokenCapLabel": "Monatliches Token-Limit",
+ "capUnlimitedPlaceholder": "Unbegrenzt",
+ "capEditHint": "Limits werden am 1. um 00:00 UTC zurückgesetzt. Leer lassen für unbegrenzt.",
+ "monthlyUsageLine": "{requests} Anfragen, {tokens} Tokens diesen Monat"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.json
index a852c124..4839bc27 100644
--- a/client/src/i18n/locales/el.json
+++ b/client/src/i18n/locales/el.json
@@ -679,7 +679,12 @@
"testFailed": "Η δοκιμή μοντέλου απέτυχε",
"testThrottled": "Περιμένετε {seconds}δ πριν δοκιμάσετε ξανά αυτό το μοντέλο.",
"noModelsForProvider": "Δεν έχουν διαμορφωθεί μοντέλα για αυτόν τον πάροχο.",
- "testModels": "Δοκιμή μοντέλων"
+ "testModels": "Δοκιμή μοντέλων",
+ "monthlyRequestCapLabel": "Μηνιαίο όριο αιτημάτων",
+ "monthlyTokenCapLabel": "Μηνιαίο όριο tokens",
+ "capUnlimitedPlaceholder": "Απεριόριστο",
+ "capEditHint": "Τα όρια μηδενίζονται την 1η στις 00:00 UTC. Αφήστε κενό για απεριόριστο.",
+ "monthlyUsageLine": "{requests} αιτήματα, {tokens} tokens αυτόν τον μήνα"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json
index c635d434..601bdee1 100644
--- a/client/src/i18n/locales/en.json
+++ b/client/src/i18n/locales/en.json
@@ -679,7 +679,12 @@
"testFailed": "Model test failed",
"testThrottled": "Please wait {seconds}s before testing this model again.",
"noModelsForProvider": "No models configured for this provider.",
- "testModels": "Test models"
+ "testModels": "Test models",
+ "monthlyRequestCapLabel": "Monthly request cap",
+ "monthlyTokenCapLabel": "Monthly token cap",
+ "capUnlimitedPlaceholder": "Unlimited",
+ "capEditHint": "Caps reset on the 1st, 00:00 UTC. Leave blank for unlimited.",
+ "monthlyUsageLine": "{requests} requests, {tokens} tokens this month"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.json
index d436330e..9a6e3682 100644
--- a/client/src/i18n/locales/es.json
+++ b/client/src/i18n/locales/es.json
@@ -679,7 +679,12 @@
"testFailed": "Error en la prueba del modelo",
"testThrottled": "Espere {seconds}s antes de probar este modelo de nuevo.",
"noModelsForProvider": "No hay modelos configurados para este proveedor.",
- "testModels": "Probar modelos"
+ "testModels": "Probar modelos",
+ "monthlyRequestCapLabel": "Límite mensual de solicitudes",
+ "monthlyTokenCapLabel": "Límite mensual de tokens",
+ "capUnlimitedPlaceholder": "Ilimitado",
+ "capEditHint": "Los límites se reinician el día 1 a las 00:00 UTC. Déjelo en blanco para ilimitado.",
+ "monthlyUsageLine": "{requests} solicitudes, {tokens} tokens este mes"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.json
index a8992e60..7759c6f1 100644
--- a/client/src/i18n/locales/fa.json
+++ b/client/src/i18n/locales/fa.json
@@ -679,7 +679,12 @@
"testFailed": "آزمایش مدل با شکست مواجه شد",
"testThrottled": "لطفاً قبل از آزمایش مجدد این مدل {seconds} ثانیه صبر کنید.",
"noModelsForProvider": "هیچ مدلی برای این ارائه‌دهنده تنظیم نشده است.",
- "testModels": "آزمایش مدل‌ها"
+ "testModels": "آزمایش مدل‌ها",
+ "monthlyRequestCapLabel": "سقف ماهانه درخواست‌ها",
+ "monthlyTokenCapLabel": "سقف ماهانه توکن‌ها",
+ "capUnlimitedPlaceholder": "نامحدود",
+ "capEditHint": "سقف‌ها در اول هر ماه ساعت ۰۰:۰۰ UTC بازنشانی می‌شوند. برای نامحدود خالی بگذارید.",
+ "monthlyUsageLine": "{requests} درخواست، {tokens} توکن در این ماه"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.json
index efd7f15e..ec395045 100644
--- a/client/src/i18n/locales/fi.json
+++ b/client/src/i18n/locales/fi.json
@@ -679,7 +679,12 @@
"testFailed": "Mallin testi epäonnistui",
"testThrottled": "Odota {seconds}s ennen kuin testaat tätä mallia uudelleen.",
"noModelsForProvider": "Tälle palveluntarjoajalle ei ole määritetty malleja.",
- "testModels": "Testaa malleja"
+ "testModels": "Testaa malleja",
+ "monthlyRequestCapLabel": "Kuukausittainen pyyntöraja",
+ "monthlyTokenCapLabel": "Kuukausittainen tokenraja",
+ "capUnlimitedPlaceholder": "Rajoittamaton",
+ "capEditHint": "Rajat nollautuvat kuun 1. päivänä 00:00 UTC. Jätä tyhjäksi rajoittamattomaan.",
+ "monthlyUsageLine": "{requests} pyyntöä, {tokens} tokenia tässä kuussa"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.json
index c62284ba..03c385b6 100644
--- a/client/src/i18n/locales/fr.json
+++ b/client/src/i18n/locales/fr.json
@@ -679,7 +679,12 @@
"testFailed": "Échec du test du modèle",
"testThrottled": "Veuillez attendre {seconds}s avant de tester à nouveau ce modèle.",
"noModelsForProvider": "Aucun modèle configuré pour ce fournisseur.",
- "testModels": "Tester les modèles"
+ "testModels": "Tester les modèles",
+ "monthlyRequestCapLabel": "Plafond mensuel de requêtes",
+ "monthlyTokenCapLabel": "Plafond mensuel de jetons",
+ "capUnlimitedPlaceholder": "Illimité",
+ "capEditHint": "Les plafonds sont réinitialisés le 1er à 00:00 UTC. Laissez vide pour illimité.",
+ "monthlyUsageLine": "{requests} requêtes, {tokens} jetons ce mois"
},
"backups": {
"title": "Sauvegardes",
diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.json
index 4fc90b46..2780c7c5 100644
--- a/client/src/i18n/locales/gu.json
+++ b/client/src/i18n/locales/gu.json
@@ -679,7 +679,12 @@
"testFailed": "મોડેલ પરીક્ષણ નિષ્ફળ ગયું",
"testThrottled": "કૃપા કરીને આ મોડેલનું ફરીથી પરીક્ષણ કરતા પહેલા {seconds} સેકન્ડ રાહ જુઓ.",
"noModelsForProvider": "આ પ્રદાતા માટે કોઈ મોડેલો રૂપરેખાંકિત નથી.",
- "testModels": "મોડેલ્સનું પરીક્ષણ કરો"
+ "testModels": "મોડેલ્સનું પરીક્ષણ કરો",
+ "monthlyRequestCapLabel": "માસિક વિનંતી મર્યાદા",
+ "monthlyTokenCapLabel": "માસિક ટોકન મર્યાદા",
+ "capUnlimitedPlaceholder": "અમર્યાદિત",
+ "capEditHint": "મર્યાદા દર મહિને 1 તારીખે 00:00 UTC પર રીસેટ થાય છે. અમર્યાદિત માટે ખાલી રાખો.",
+ "monthlyUsageLine": "આ મહિને {requests} વિનંતીઓ, {tokens} ટોકન"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.json
index f4b4f877..a9179681 100644
--- a/client/src/i18n/locales/ha.json
+++ b/client/src/i18n/locales/ha.json
@@ -679,7 +679,12 @@
"testFailed": "Gwajin samfurin ya fadi",
"testThrottled": "Da fatan za a jira {seconds}s kafin sake gwada wannan samfurin.",
"noModelsForProvider": "Babu samfuran da aka saita don wannan mai ba da sabis.",
- "testModels": "Gwada samfura"
+ "testModels": "Gwada samfura",
+ "monthlyRequestCapLabel": "Iyakar buƙatota ta wata",
+ "monthlyTokenCapLabel": "Iyakar token ta wata",
+ "capUnlimitedPlaceholder": "Ba iyaka ba",
+ "capEditHint": "Ana saita iyakoki a ranar 1 00:00 UTC. Bara komai don mara iyaka.",
+ "monthlyUsageLine": "Buƙatotu {requests}, token {tokens} wannan wata"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.json
index 75714c5e..0fdd039e 100644
--- a/client/src/i18n/locales/he.json
+++ b/client/src/i18n/locales/he.json
@@ -679,7 +679,12 @@
"testFailed": "בדיקת הדגם נכשלה",
"testThrottled": "אנא המתן {seconds} שניות לפני בדיקת דגם זה שוב.",
"noModelsForProvider": "לא הוגדרו דגמים עבור ספק זה.",
- "testModels": "בדיקת מודלים"
+ "testModels": "בדיקת מודלים",
+ "monthlyRequestCapLabel": "מכסת בקשות חודשית",
+ "monthlyTokenCapLabel": "מכסת טוקנים חודשית",
+ "capUnlimitedPlaceholder": "ללא הגבלה",
+ "capEditHint": "המכסות מתאפסות ב-1 בחודש ב-00:00 UTC. השאירו ריק כדי להישאר ללא הגבלה.",
+ "monthlyUsageLine": "{requests} בקשות, {tokens} טוקנים החודש"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.json
index aa22334c..8cebfbe6 100644
--- a/client/src/i18n/locales/hi.json
+++ b/client/src/i18n/locales/hi.json
@@ -679,7 +679,12 @@
"testFailed": "मॉडल परीक्षण विफल रहा",
"testThrottled": "कृपया इस मॉडल का पुनः परीक्षण करने से पहले {seconds}s प्रतीक्षा करें।",
"noModelsForProvider": "इस प्रदाता के लिए कोई मॉडल कॉन्फ़िगर नहीं किया गया है।",
- "testModels": "मॉडल परखें"
+ "testModels": "मॉडल परखें",
+ "monthlyRequestCapLabel": "मासिक अनुरोध सीमा",
+ "monthlyTokenCapLabel": "मासिक टोकन सीमा",
+ "capUnlimitedPlaceholder": "असीमित",
+ "capEditHint": "सीमाएँ हर महीने की 1 तारीख़ को 00:00 UTC पर रीसेट होती हैं। असीमित के लिए खाली छोड़ें।",
+ "monthlyUsageLine": "इस माह {requests} अनुरोध, {tokens} टोकन"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.json
index 697675f7..955a5757 100644
--- a/client/src/i18n/locales/hr.json
+++ b/client/src/i18n/locales/hr.json
@@ -679,7 +679,12 @@
"testFailed": "Test modela nije uspio",
"testThrottled": "Pričekajte {seconds}s prije ponovnog testiranja ovog modela.",
"noModelsForProvider": "Nema konfiguriranih modela za ovog pružatelja.",
- "testModels": "Testiraj modele"
+ "testModels": "Testiraj modele",
+ "monthlyRequestCapLabel": "Mjesečno ograničenje zahtjeva",
+ "monthlyTokenCapLabel": "Mjesečno ograničenje tokena",
+ "capUnlimitedPlaceholder": "Neograničeno",
+ "capEditHint": "Ograničenja se resetiraju 1. u 00:00 UTC. Ostavite prazno za neograničeno.",
+ "monthlyUsageLine": "{requests} zahtjeva, {tokens} tokena ovaj mjesec"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.json
index e5fef3f0..e8ed4fb7 100644
--- a/client/src/i18n/locales/hu.json
+++ b/client/src/i18n/locales/hu.json
@@ -679,7 +679,12 @@
"testFailed": "A modellteszt sikertelen",
"testThrottled": "Kérjük, várjon {seconds} másodpercet a modell újratesztelése előtt.",
"noModelsForProvider": "Nincsenek konfigurált modellek ennél a szolgáltatónál.",
- "testModels": "Modellek tesztelése"
+ "testModels": "Modellek tesztelése",
+ "monthlyRequestCapLabel": "Havi kérési keret",
+ "monthlyTokenCapLabel": "Havi token keret",
+ "capUnlimitedPlaceholder": "Korlátlan",
+ "capEditHint": "A keretek havonta 1-jén 00:00 UTC-kor nullázódnak. Korlátlanhoz hagyja üresen.",
+ "monthlyUsageLine": "{requests} kérés, {tokens} token ebben a hónapban"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.json
index 549c2c97..d58d5330 100644
--- a/client/src/i18n/locales/id.json
+++ b/client/src/i18n/locales/id.json
@@ -679,7 +679,12 @@
"testFailed": "Pengujian model gagal",
"testThrottled": "Harap tunggu {seconds} detik sebelum menguji model ini lagi.",
"noModelsForProvider": "Tidak ada model yang dikonfigurasi untuk penyedia ini.",
- "testModels": "Uji model"
+ "testModels": "Uji model",
+ "monthlyRequestCapLabel": "Batas permintaan bulanan",
+ "monthlyTokenCapLabel": "Batas token bulanan",
+ "capUnlimitedPlaceholder": "Tanpa batas",
+ "capEditHint": "Batas disetel ulang pada tanggal 1 pukul 00:00 UTC. Kosongkan untuk tanpa batas.",
+ "monthlyUsageLine": "{requests} permintaan, {tokens} token bulan ini"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.json
index b75b8490..1e04040e 100644
--- a/client/src/i18n/locales/ig.json
+++ b/client/src/i18n/locales/ig.json
@@ -679,7 +679,12 @@
"testFailed": "Nnwale ụdị dara",
"testThrottled": "Biko chere {seconds}s tupu ị nwalee ụdị a ọzọ.",
"noModelsForProvider": "Enweghị ụdị ahaziri maka onye na-enye ọrụ a.",
- "testModels": "Nwalee ụdị"
+ "testModels": "Nwalee ụdị",
+ "monthlyRequestCapLabel": "Oke arịrịọ ọnwa",
+ "monthlyTokenCapLabel": "Oke token ọnwa",
+ "capUnlimitedPlaceholder": "Enweghị oke",
+ "capEditHint": "A na-ebugharị oke ụbọchị nke 1, 00:00 UTC. Hapụ oghere maka enweghị oke.",
+ "monthlyUsageLine": "Arịrịọ {requests}, token {tokens} ọnwa a"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.json
index 8f6d2cb7..a2de1954 100644
--- a/client/src/i18n/locales/it.json
+++ b/client/src/i18n/locales/it.json
@@ -679,7 +679,12 @@
"testFailed": "Test del modello non riuscito",
"testThrottled": "Attendi {seconds}s prima di testare nuovamente questo modello.",
"noModelsForProvider": "Nessun modello configurato per questo provider.",
- "testModels": "Testa i modelli"
+ "testModels": "Testa i modelli",
+ "monthlyRequestCapLabel": "Limite mensile di richieste",
+ "monthlyTokenCapLabel": "Limite mensile di token",
+ "capUnlimitedPlaceholder": "Illimitato",
+ "capEditHint": "I limiti si azzerano il 1 del mese alle 00:00 UTC. Lascia vuoto per illimitato.",
+ "monthlyUsageLine": "{requests} richieste, {tokens} token questo mese"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.json
index b5638d10..a57b5f51 100644
--- a/client/src/i18n/locales/ja.json
+++ b/client/src/i18n/locales/ja.json
@@ -679,7 +679,12 @@
"testFailed": "モデルテストに失敗しました",
"testThrottled": "再テストまで {seconds} 秒お待ちください。",
"noModelsForProvider": "このプロバイダーにはモデルが設定されていません。",
- "testModels": "モデルをテスト"
+ "testModels": "モデルをテスト",
+ "monthlyRequestCapLabel": "月間リクエスト上限",
+ "monthlyTokenCapLabel": "月間トークン上限",
+ "capUnlimitedPlaceholder": "無制限",
+ "capEditHint": "上限は毎月1日 00:00 UTC にリセットされます。無制限は空欄のままにしてください。",
+ "monthlyUsageLine": "今月 {requests} リクエスト、{tokens} トークン"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.json
index 55abfbd1..5c85fb6e 100644
--- a/client/src/i18n/locales/ka.json
+++ b/client/src/i18n/locales/ka.json
@@ -679,7 +679,12 @@
"testFailed": "მოდელის ტესტირება ჩაიშალა",
"testThrottled": "გთხოვთ მოიცადოთ {seconds}წმ ამ მოდელის ხელახლა შემოწმებამდე.",
"noModelsForProvider": "ამ პროვაიდერისთვის მოდელები არ არის კონფიგურირებული.",
- "testModels": "მოდელების ტესტირება"
+ "testModels": "მოდელების ტესტირება",
+ "monthlyRequestCapLabel": "თვიური მოთხოვნების ლიმიტი",
+ "monthlyTokenCapLabel": "თვიური ტოკენების ლიმიტი",
+ "capUnlimitedPlaceholder": "შეუზღუდავი",
+ "capEditHint": "ლიმიტები სათითაო თვის 1-ს 00:00 UTC აღდგება. დატოვეთ ცარიელი შეუზღუდავისთვის.",
+ "monthlyUsageLine": "ამ თვეში {requests} მოთხოვნა, {tokens} ტოკენი"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.json
index 593138b8..8c11ffc6 100644
--- a/client/src/i18n/locales/km.json
+++ b/client/src/i18n/locales/km.json
@@ -679,7 +679,12 @@
"testFailed": "ការសាកល្បងម៉ូដែលបានបរាជ័យ",
"testThrottled": "សូមរង់ចាំ {seconds}វិនាទី មុនពេលសាកល្បងម៉ូដែលនេះម្តងទៀត។",
"noModelsForProvider": "មិនមានម៉ូដែលត្រូវបានកំណត់រចនាសម្ព័ន្ធសម្រាប់អ្នកផ្តល់សេវានេះទេ។",
- "testModels": "សាកល្បងម៉ូដែល"
+ "testModels": "សាកល្បងម៉ូដែល",
+ "monthlyRequestCapLabel": "ដែនកំណត់ស្នើសុំប្រចាំខែ",
+ "monthlyTokenCapLabel": "ដែនកំណត់តូខិនប្រចាំខែ",
+ "capUnlimitedPlaceholder": "គ្មានដែនកំណត់",
+ "capEditHint": "ដែនកំណត់កំណត់ឡើងវិញនៅថ្ងៃទី 1 ម៉ោង 00:00 UTC ទុកទទេប្រសិនបើគ្មានដែនកំណត់។",
+ "monthlyUsageLine": "ខែនេះ {requests} ស្នើសុំ {tokens} តូខិន"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.json
index f02d9725..b70b2efb 100644
--- a/client/src/i18n/locales/kn.json
+++ b/client/src/i18n/locales/kn.json
@@ -679,7 +679,12 @@
"testFailed": "ಮಾದರಿ ಪರೀಕ್ಷೆ ವಿಫಲವಾಗಿದೆ",
"testThrottled": "ದಯವಿಟ್ಟು ಈ ಮಾದರಿಯನ್ನು ಮತ್ತೆ ಪರೀಕ್ಷಿಸುವ ಮೊದಲು {seconds} ಸೆಕೆಂಡುಗಳು ಕಾಯಿರಿ.",
"noModelsForProvider": "ಈ ಒದಗಿಸುವವರಿಗಾಗಿ ಯಾವುದೇ ಮಾದರಿಗಳನ್ನು ಕಾನ್ಫಿಗರ್ ಮಾಡಲಾಗಿಲ್ಲ.",
- "testModels": "ಮಾದರಿಗಳನ್ನು ಪರೀಕ್ಷಿಸಿ"
+ "testModels": "ಮಾದರಿಗಳನ್ನು ಪರೀಕ್ಷಿಸಿ",
+ "monthlyRequestCapLabel": "ಮಾಸಿಕ ವಿನಂತಿ ಮಿತಿ",
+ "monthlyTokenCapLabel": "ಮಾಸಿಕ ಟೋಕನ್ ಮಿತಿ",
+ "capUnlimitedPlaceholder": "ಅಪರಿಮಿತ",
+ "capEditHint": "ಮಿತಿಗಳು ಪ್ರತಿ ತಿಂಗಳು 1 ರಂದು 00:00 UTC ನಲ್ಲಿ ಮರುಹೊಂದಿಸುತ್ತವೆ. ಅಪರಿಮಿತಕ್ಕೆ ಖಾಲಿ ಬಿಡಿ.",
+ "monthlyUsageLine": "ಈ ತಿಂಗಳು {requests} ವಿನಂತಿಗಳು, {tokens} ಟೋಕನ್‌ಗಳು"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.json
index 6827368e..2d975a76 100644
--- a/client/src/i18n/locales/ko.json
+++ b/client/src/i18n/locales/ko.json
@@ -679,7 +679,12 @@
"testFailed": "모델 테스트에 실패했습니다",
"testThrottled": "이 모델을 다시 테스트하기 전에 {seconds}초 동안 기다려 주세요.",
"noModelsForProvider": "이 제공자에 구성된 모델이 없습니다.",
- "testModels": "모델 테스트"
+ "testModels": "모델 테스트",
+ "monthlyRequestCapLabel": "월 요청 한도",
+ "monthlyTokenCapLabel": "월 토큰 한도",
+ "capUnlimitedPlaceholder": "무제한",
+ "capEditHint": "한도는 매월 1일 00:00 UTC에 초기화됩니다. 무제한이려면 비워 두세요.",
+ "monthlyUsageLine": "이번 달 요청 {requests}회, 토큰 {tokens}"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.json
index be4c8a84..467b5675 100644
--- a/client/src/i18n/locales/lt.json
+++ b/client/src/i18n/locales/lt.json
@@ -679,7 +679,12 @@
"testFailed": "Modelio testas nepavyko",
"testThrottled": "Palaukite {seconds}s prieš pakartotinai tikrindami šį modelį.",
"noModelsForProvider": "Šiam teikėjui nėra sukonfigūruotų modelių.",
- "testModels": "Testuoti modelius"
+ "testModels": "Testuoti modelius",
+ "monthlyRequestCapLabel": "Mėnesinis užklausų limitas",
+ "monthlyTokenCapLabel": "Mėnesinis žetonų limitas",
+ "capUnlimitedPlaceholder": "Neribota",
+ "capEditHint": "Limitai atstatomi 1 d. 00:00 UTC. Palikite tuščią neribotam.",
+ "monthlyUsageLine": "{requests} užklausos, {tokens} žetonai šį mėnesį"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.json
index 92fa23bc..9ee321e5 100644
--- a/client/src/i18n/locales/ml.json
+++ b/client/src/i18n/locales/ml.json
@@ -679,7 +679,12 @@
"testFailed": "മോഡൽ പരിശോധന പരാജയപ്പെട്ടു",
"testThrottled": "ഈ മോഡൽ വീണ്ടും പരിശോധിക്കുന്നതിന് മുമ്പ് ദയവായി {seconds} സെക്കൻഡ് കാത്തിരിക്കുക.",
"noModelsForProvider": "ഈ ദാതാവിനായി മോഡലുകളൊന്നും കോൺഫിഗർ ചെയ്തിട്ടില്ല.",
- "testModels": "മോഡലുകൾ പരീക്ഷിക്കുക"
+ "testModels": "മോഡലുകൾ പരീക്ഷിക്കുക",
+ "monthlyRequestCapLabel": "മാസിക അഭ്യർത്ഥന പരിധി",
+ "monthlyTokenCapLabel": "മാസിക ടോക്കൺ പരിധി",
+ "capUnlimitedPlaceholder": "പരിധിയില്ല",
+ "capEditHint": "പരിധികൾ ഓരോ മാസവും 1-ന് 00:00 UTC-ന് റീസെറ്റ് ചെയ്യും. പരിധിയില്ലാതെ വെച്ചാൽ മതി.",
+ "monthlyUsageLine": "ഈ മാസം {requests} അഭ്യർത്ഥനകൾ, {tokens} ടോക്കണുകൾ"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.json
index cc74d18d..125a3540 100644
--- a/client/src/i18n/locales/mr.json
+++ b/client/src/i18n/locales/mr.json
@@ -679,7 +679,12 @@
"testFailed": "मॉडेल चाचणी अपयशी ठरली",
"testThrottled": "कृपया या मॉडेलची पुन्हा चाचणी घेण्यापूर्वी {seconds} से प्रतीक्षा करा.",
"noModelsForProvider": "या प्रदात्यासाठी कोणतेही मॉडेल कॉन्फिगर केलेले नाही.",
- "testModels": "मॉडेल तपासा"
+ "testModels": "मॉडेल तपासा",
+ "monthlyRequestCapLabel": "मासिक विनंती मर्यादा",
+ "monthlyTokenCapLabel": "मासिक टोकन मर्यादा",
+ "capUnlimitedPlaceholder": "अमर्याद",
+ "capEditHint": "मर्यादा दर महिन्याच्या 1 रोजी 00:00 UTC ला रीसेट होतात. अमर्यादसाठी रिकामे ठेवा.",
+ "monthlyUsageLine": "या महिन्यात {requests} विनंत्या, {tokens} टोकन"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.json
index 7976ec10..d1a2ff83 100644
--- a/client/src/i18n/locales/ms.json
+++ b/client/src/i18n/locales/ms.json
@@ -679,7 +679,12 @@
"testFailed": "Ujian model gagal",
"testThrottled": "Sila tunggu {seconds}s sebelum menguji model ini semula.",
"noModelsForProvider": "Tiada model dikonfigurasikan untuk pembekal ini.",
- "testModels": "Uji model"
+ "testModels": "Uji model",
+ "monthlyRequestCapLabel": "Had permintaan bulanan",
+ "monthlyTokenCapLabel": "Had token bulanan",
+ "capUnlimitedPlaceholder": "Tanpa had",
+ "capEditHint": "Had diset semula pada 1 haribulan 00:00 UTC. Biarkan kosong untuk tanpa had.",
+ "monthlyUsageLine": "{requests} permintaan, {tokens} token bulan ini"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.json
index e1a94352..b06a65b3 100644
--- a/client/src/i18n/locales/my.json
+++ b/client/src/i18n/locales/my.json
@@ -679,7 +679,12 @@
"testFailed": "မော်ဒယ်စမ်းသပ်မှု ကျရှုံးခဲ့သည်",
"testThrottled": "ဤမော်ဒယ်ကို ထပ်မံမစမ်းသပ်မီ {seconds} စက္ကန့် စောင့်ပါ။",
"noModelsForProvider": "ဤဝန်ဆောင်မှုပေးသူအတွက် မော်ဒယ်များ သတ်မှတ်ထားခြင်း မရှိပါ။",
- "testModels": "မော်ဒယ်များ စမ်းသပ်ရန်"
+ "testModels": "မော်ဒယ်များ စမ်းသပ်ရန်",
+ "monthlyRequestCapLabel": "လစဉ်တောင်းဆိုမှုအကန့်အသတ်",
+ "monthlyTokenCapLabel": "လစဉ်တိုကင်အကန့်အသတ်",
+ "capUnlimitedPlaceholder": "အကန့်အသတ်မရှိ",
+ "capEditHint": "အကန့်အသတ်များကို လ၏ ပထမရက် ၀၀:၀၀ UTC တွင် ပြန်ချမှတ်သည်။ မရှိလိုပါက ဗလာထားပါ။",
+ "monthlyUsageLine": "ယခုလ တောင်းဆိုမှု {requests}၊ တိုကင် {tokens}"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.json
index 72003043..5b5b9a80 100644
--- a/client/src/i18n/locales/ne.json
+++ b/client/src/i18n/locales/ne.json
@@ -679,7 +679,12 @@
"testFailed": "मोडेल परीक्षण असफल भयो",
"testThrottled": "कृपया यो मोडेल पुन: परीक्षण गर्नु अघि {seconds} सेकेन्ड पर्खनुहोस्।",
"noModelsForProvider": "यस प्रदायकको लागि कुनै मोडेल कन्फिगर गरिएको छैन।",
- "testModels": "मोडेलहरू परीक्षण गर्नुहोस्"
+ "testModels": "मोडेलहरू परीक्षण गर्नुहोस्",
+ "monthlyRequestCapLabel": "मासिक अनुरोध सीमा",
+ "monthlyTokenCapLabel": "मासिक टोकन सीमा",
+ "capUnlimitedPlaceholder": "असीमित",
+ "capEditHint": "सीमा हरेक महिनाको १ गते ००:०० UTC मा रिसेट हुन्छ। असीमितका लागि खाली राख्नुहोस्।",
+ "monthlyUsageLine": "यस महिना {requests} अनुरोध, {tokens} टोकन"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.json
index 49511202..89396dab 100644
--- a/client/src/i18n/locales/nl.json
+++ b/client/src/i18n/locales/nl.json
@@ -679,7 +679,12 @@
"testFailed": "Modeltest mislukt",
"testThrottled": "Wacht {seconds}s voordat u dit model opnieuw test.",
"noModelsForProvider": "Geen modellen geconfigureerd voor deze provider.",
- "testModels": "Modellen testen"
+ "testModels": "Modellen testen",
+ "monthlyRequestCapLabel": "Maandelijke limiet verzoeken",
+ "monthlyTokenCapLabel": "Maandelijke limiet tokens",
+ "capUnlimitedPlaceholder": "Onbeperkt",
+ "capEditHint": "Limieten worden op de 1e om 00:00 UTC gereset. Laat leeg voor onbeperkt.",
+ "monthlyUsageLine": "{requests} verzoeken, {tokens} tokens deze maand"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.json
index 21472d16..f249e8ce 100644
--- a/client/src/i18n/locales/no.json
+++ b/client/src/i18n/locales/no.json
@@ -679,7 +679,12 @@
"testFailed": "Modelltest mislyktes",
"testThrottled": "Vent {seconds}s før du tester denne modellen igjen.",
"noModelsForProvider": "Ingen modeller konfigurert for denne tilbyderen.",
- "testModels": "Test modeller"
+ "testModels": "Test modeller",
+ "monthlyRequestCapLabel": "Månedlig grense for forespørsler",
+ "monthlyTokenCapLabel": "Månedlig grense for tokens",
+ "capUnlimitedPlaceholder": "Ubegrenset",
+ "capEditHint": "Grensene nullstilles den 1. kl. 00:00 UTC. La stå tomt for ubegrenset.",
+ "monthlyUsageLine": "{requests} forespørsler, {tokens} tokens denne måneden"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.json
index 57b11ff8..29b67262 100644
--- a/client/src/i18n/locales/or.json
+++ b/client/src/i18n/locales/or.json
@@ -679,7 +679,12 @@
"testFailed": "ମଡେଲ୍ ପରୀକ୍ଷା ବିଫଳ ହେଲା",
"testThrottled": "ଦୟାକରି ଏହି ମଡେଲ୍ ପୁନର୍ବାର ପରୀକ୍ଷା କରିବା ପୂର୍ବରୁ {seconds}s ଅପେକ୍ଷା କରନ୍ତୁ।",
"noModelsForProvider": "ଏହି ପ୍ରଦାନକାରୀ ପାଇଁ କୌଣସି ମଡେଲ୍ କନଫିଗର୍ ହୋଇନାହିଁ।",
- "testModels": "ମଡେଲ ପରୀକ୍ଷା କରନ୍ତୁ"
+ "testModels": "ମଡେଲ ପରୀକ୍ଷା କରନ୍ତୁ",
+ "monthlyRequestCapLabel": "ମାସିକ ଅନୁରୋଧ ସୀମା",
+ "monthlyTokenCapLabel": "ମାସିକ ଟୋକେନ୍ ସୀମା",
+ "capUnlimitedPlaceholder": "ଅସୀମିତ",
+ "capEditHint": "ସୀମା ପ୍ରତି ମାସର ୧ ତାରିଖରେ ୦୦:୦୦ UTC ରେ ରିସେଟ୍ ହୁଏ। ଅସୀମିତ ପାଇଁ ଖାଲି ରଖନ୍ତୁ।",
+ "monthlyUsageLine": "ଏହି ମାସରେ {requests} ଅନୁରୋଧ, {tokens} ଟୋକେନ୍"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.json
index 2073f8e2..278b9cf3 100644
--- a/client/src/i18n/locales/pa.json
+++ b/client/src/i18n/locales/pa.json
@@ -679,7 +679,12 @@
"testFailed": "ਮਾਡਲ ਟੈਸਟ ਅਸਫਲ ਰਿਹਾ",
"testThrottled": "ਇਸ ਮਾਡਲ ਦੀ ਦੁਬਾਰਾ ਜਾਂਚ ਕਰਨ ਤੋਂ ਪਹਿਲਾਂ ਕਿਰਪਾ ਕਰਕੇ {seconds} ਸਕਿੰਟ ਉਡੀਕ ਕਰੋ।",
"noModelsForProvider": "ਇਸ ਪ੍ਰਦਾਤਾ ਲਈ ਕੋਈ ਮਾਡਲ ਕੌਂਫਿਗਰ ਨਹੀਂ ਕੀਤਾ ਗਿਆ ਹੈ।",
- "testModels": "ਮਾਡਲ ਟੈਸਟ ਕਰੋ"
+ "testModels": "ਮਾਡਲ ਟੈਸਟ ਕਰੋ",
+ "monthlyRequestCapLabel": "ਮਹੀਨਾਵਾਰੀ ਬੇਨਤੀ ਸੀਮਾ",
+ "monthlyTokenCapLabel": "ਮਹੀਨਾਵਾਰੀ ਟੋਕਨ ਸੀਮਾ",
+ "capUnlimitedPlaceholder": "ਅਸੀਮਤ",
+ "capEditHint": "ਸੀਮਾਵਾਂ ਹਰ ਮਹੀਨੇ 1 ਤਾਰੀਖ਼ ਨੂੰ 00:00 UTC 'ਤੇ ਰੀਸੈੱਟ ਹੁੰਦੀਆਂ ਹਨ। ਅਸੀਮਤ ਲਈ ਖਾਲੀ ਛੱਡੋ।",
+ "monthlyUsageLine": "ਇਸ ਮਹੀਨੇ {requests} ਬੇਨਤੀਆਂ, {tokens} ਟੋਕਨ"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.json
index b6d1ecab..44783870 100644
--- a/client/src/i18n/locales/pl.json
+++ b/client/src/i18n/locales/pl.json
@@ -679,7 +679,12 @@
"testFailed": "Test modelu nie powiódł się",
"testThrottled": "Odczekaj {seconds}s przed ponownym testem tego modelu.",
"noModelsForProvider": "Brak skonfigurowanych modeli dla tego dostawcy.",
- "testModels": "Testuj modele"
+ "testModels": "Testuj modele",
+ "monthlyRequestCapLabel": "Miesięczny limit żądań",
+ "monthlyTokenCapLabel": "Miesięczny limit tokenów",
+ "capUnlimitedPlaceholder": "Bez limitu",
+ "capEditHint": "Limity resetują się 1. dnia miesiąca o 00:00 UTC. Pozostaw puste, aby bez limitu.",
+ "monthlyUsageLine": "{requests} żądań, {tokens} tokenów w tym miesiącu"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.json
index d69d0d3b..f8c6efa9 100644
--- a/client/src/i18n/locales/pt-BR.json
+++ b/client/src/i18n/locales/pt-BR.json
@@ -679,7 +679,12 @@
"testFailed": "Teste do modelo falhou",
"testThrottled": "Aguarde {seconds}s antes de testar este modelo novamente.",
"noModelsForProvider": "Nenhum modelo configurado para este provedor.",
- "testModels": "Testar modelos"
+ "testModels": "Testar modelos",
+ "monthlyRequestCapLabel": "Limite mensal de solicitações",
+ "monthlyTokenCapLabel": "Limite mensal de tokens",
+ "capUnlimitedPlaceholder": "Ilimitado",
+ "capEditHint": "Os limites são redefinidos no dia 1 às 00:00 UTC. Deixe em branco para ilimitado.",
+ "monthlyUsageLine": "{requests} solicitações, {tokens} tokens este mês"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.json
index 54c24e9e..961a8bae 100644
--- a/client/src/i18n/locales/pt-PT.json
+++ b/client/src/i18n/locales/pt-PT.json
@@ -679,7 +679,12 @@
"testFailed": "Teste do modelo falhou",
"testThrottled": "Aguarde {seconds}s antes de testar este modelo novamente.",
"noModelsForProvider": "Nenhum modelo configurado para este fornecedor.",
- "testModels": "Testar modelos"
+ "testModels": "Testar modelos",
+ "monthlyRequestCapLabel": "Limite mensal de pedidos",
+ "monthlyTokenCapLabel": "Limite mensal de tokens",
+ "capUnlimitedPlaceholder": "Ilimitado",
+ "capEditHint": "Os limites são repostos no dia 1 às 00:00 UTC. Deixe em branco para ilimitado.",
+ "monthlyUsageLine": "{requests} pedidos, {tokens} tokens este mês"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.json
index af9e10a5..2426a93c 100644
--- a/client/src/i18n/locales/ro.json
+++ b/client/src/i18n/locales/ro.json
@@ -679,7 +679,12 @@
"testFailed": "Testul modelului a eșuat",
"testThrottled": "Așteptați {seconds}s înainte de a retesta acest model.",
"noModelsForProvider": "Niciun model configurat pentru acest furnizor.",
- "testModels": "Testează modelele"
+ "testModels": "Testează modelele",
+ "monthlyRequestCapLabel": "Limită lunară de cereri",
+ "monthlyTokenCapLabel": "Limită lunară de tokeni",
+ "capUnlimitedPlaceholder": "Nelimitat",
+ "capEditHint": "Limitele se resetează în ziua 1 la 00:00 UTC. Lasă gol pentru nelimitat.",
+ "monthlyUsageLine": "{requests} cereri, {tokens} tokeni luna aceasta"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.json
index 57948e02..7ba4ace0 100644
--- a/client/src/i18n/locales/ru.json
+++ b/client/src/i18n/locales/ru.json
@@ -679,7 +679,12 @@
"testFailed": "Тест модели завершился с ошибкой",
"testThrottled": "Пожалуйста, подождите {seconds}с перед повторным тестированием.",
"noModelsForProvider": "Для этого провайдера нет настроенных моделей.",
- "testModels": "Проверить модели"
+ "testModels": "Проверить модели",
+ "monthlyRequestCapLabel": "Месячный лимит запросов",
+ "monthlyTokenCapLabel": "Месячный лимит токенов",
+ "capUnlimitedPlaceholder": "Без ограничений",
+ "capEditHint": "Лимиты сбрасываются 1-го числа в 00:00 UTC. Оставьте пустым для безлимита.",
+ "monthlyUsageLine": "{requests} запросов, {tokens} токенов в этом месяце"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.json
index 76e5e510..4104d852 100644
--- a/client/src/i18n/locales/si.json
+++ b/client/src/i18n/locales/si.json
@@ -679,7 +679,12 @@
"testFailed": "ආකෘති පරීක්ෂණය අසමත් විය",
"testThrottled": "මෙම ආකෘතිය නැවත පරීක්ෂා කිරීමට පෙර කරුණාකර තත්පර {seconds} ක් රැඳී සිටින්න.",
"noModelsForProvider": "මෙම සපයන්නා සඳහා ආකෘති වින්‍යාස කර නොමැත.",
- "testModels": "මාදිලි පරීක්ෂා කරන්න"
+ "testModels": "මාදිලි පරීක්ෂා කරන්න",
+ "monthlyRequestCapLabel": "මාසික ඉල්ලීම් සීමාව",
+ "monthlyTokenCapLabel": "මාසික ටෝකන් සීමාව",
+ "capUnlimitedPlaceholder": "සීමා රහිත",
+ "capEditHint": "සීමාවන් සෑම මාසයකම 1 වන දා 00:00 UTC ට යළි සකසයි. සීමා රහිතට හිස්ව තබන්න.",
+ "monthlyUsageLine": "මෙම මාසය ඉල්ලීම් {requests}, ටෝකන් {tokens}"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.json
index d7275970..6b03be18 100644
--- a/client/src/i18n/locales/sk.json
+++ b/client/src/i18n/locales/sk.json
@@ -679,7 +679,12 @@
"testFailed": "Test modelu zlyhal",
"testThrottled": "Pred ďalším testom tohto modelu počkajte {seconds}s.",
"noModelsForProvider": "Pre tohto poskytovateľa nie sú nakonfigurované žiadne modely.",
- "testModels": "Otestovať modely"
+ "testModels": "Otestovať modely",
+ "monthlyRequestCapLabel": "Mesačný limit požiadaviek",
+ "monthlyTokenCapLabel": "Mesačný limit tokenov",
+ "capUnlimitedPlaceholder": "Neobmedzene",
+ "capEditHint": "Limity sa resetujú 1. dňa o 00:00 UTC. Pre neobmedzene nechajte prázdne.",
+ "monthlyUsageLine": "{requests} požiadaviek, {tokens} tokenov tento mesiac"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.json
index da3b9d70..9c3d9f88 100644
--- a/client/src/i18n/locales/sr.json
+++ b/client/src/i18n/locales/sr.json
@@ -679,7 +679,12 @@
"testFailed": "Тест модела није успео",
"testThrottled": "Сачекајте {seconds}с пре поновног тестирања овог модела.",
"noModelsForProvider": "Нема конфигурисаних модела за овог пружаоца.",
- "testModels": "Testiraj modele"
+ "testModels": "Testiraj modele",
+ "monthlyRequestCapLabel": "Месечни лимит захтева",
+ "monthlyTokenCapLabel": "Месечни лимит токена",
+ "capUnlimitedPlaceholder": "Неограничено",
+ "capEditHint": "Лимити се ресетују 1. у 00:00 UTC. Оставите празно за неограничено.",
+ "monthlyUsageLine": "{requests} захтева, {tokens} токена овог месеца"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json
index f559e65c..2626525b 100644
--- a/client/src/i18n/locales/sv.json
+++ b/client/src/i18n/locales/sv.json
@@ -679,7 +679,12 @@
"testFailed": "Modelltestet misslyckades",
"testThrottled": "Vänta {seconds}s innan du testar denna modell igen.",
"noModelsForProvider": "Inga modeller konfigurerade för denna leverantör.",
- "testModels": "Testa modeller"
+ "testModels": "Testa modeller",
+ "monthlyRequestCapLabel": "Månadslimit för förfrågningar",
+ "monthlyTokenCapLabel": "Månadslimit för tokens",
+ "capUnlimitedPlaceholder": "Obegränsat",
+ "capEditHint": "Gränserna nollställs den 1:a kl 00:00 UTC. Lämna tomt för obegränsat.",
+ "monthlyUsageLine": "{requests} förfrågningar, {tokens} tokens denna månad"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.json
index e67a780a..5db80127 100644
--- a/client/src/i18n/locales/sw.json
+++ b/client/src/i18n/locales/sw.json
@@ -679,7 +679,12 @@
"testFailed": "Jaribio la muundo limeshindwa",
"testThrottled": "Tafadhali subiri sekunde {seconds} kabla ya kujaribu muundo huu tena.",
"noModelsForProvider": "Hakuna miundo iliyowekwa kwa mtoa huduma huyu.",
- "testModels": "Jaribu miundo"
+ "testModels": "Jaribu miundo",
+ "monthlyRequestCapLabel": "Kikomo cha kila mwezi cha maombi",
+ "monthlyTokenCapLabel": "Kikomo cha kila mwezi cha tokeni",
+ "capUnlimitedPlaceholder": "Bila kikomo",
+ "capEditHint": "Vikomo huwekwa upya tarehe 1 saa 00:00 UTC. Acha wazi bila kikomo.",
+ "monthlyUsageLine": "Maombi {requests}, tokeni {tokens} mwezi huu"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.json
index 703608d7..e87d944b 100644
--- a/client/src/i18n/locales/ta.json
+++ b/client/src/i18n/locales/ta.json
@@ -679,7 +679,12 @@
"testFailed": "மாதிரி சோதனை தோல்வியடைந்தது",
"testThrottled": "இந்த மாதிரியை மீண்டும் சோதிக்கும் முன் {seconds} வினாடிகள் காத்திருக்கவும்.",
"noModelsForProvider": "இந்த வழங்குநருக்கு மாதிரிகள் எதுவும் கட்டமைக்கப்படவில்லை.",
- "testModels": "மாதிரிகளைச் சோதிக்கவும்"
+ "testModels": "மாதிரிகளைச் சோதிக்கவும்",
+ "monthlyRequestCapLabel": "மாத கோரிக்கை வரம்பு",
+ "monthlyTokenCapLabel": "மாத டோக்கன் வரம்பு",
+ "capUnlimitedPlaceholder": "வரம்பற்றது",
+ "capEditHint": "ஒவ்வொரு மாதம் 1ஆம் தேதி 00:00 UTC-ல் வரம்புகள் மீட்டமைக்கப்படும். வரம்பற்றதாக வெறியே விடவும்.",
+ "monthlyUsageLine": "இந்த மாதம் {requests} கோரிக்கைகள், {tokens} டோக்கன்கள்"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.json
index 1e17d1cc..b6d0647c 100644
--- a/client/src/i18n/locales/te.json
+++ b/client/src/i18n/locales/te.json
@@ -679,7 +679,12 @@
"testFailed": "మోడల్ పరీక్ష విఫలమైంది",
"testThrottled": "ఈ మోడల్‌ని మళ్లీ పరీక్షించే ముందు దయచేసి {seconds}సె వేచి ఉండండి.",
"noModelsForProvider": "ఈ ప్రొవైడర్ కోసం మోడల్స్ ఏవీ కాన్ఫిగర్ చేయబడలేదు.",
- "testModels": "మోడల్‌లను పరీక్షించండి"
+ "testModels": "మోడల్‌లను పరీక్షించండి",
+ "monthlyRequestCapLabel": "నెలవారీ అభ్యర్థన పరిమితి",
+ "monthlyTokenCapLabel": "నెలవారీ టోకెన్ పరిమితి",
+ "capUnlimitedPlaceholder": "అపరిమితం",
+ "capEditHint": "ప్రతి నెలా 1వ తేదీన 00:00 UTCకు పరిమితులు రీసెట్ అవుతాయి. అపరిమితంగా కావాలంటే ఖాళీగా వదిలండి.",
+ "monthlyUsageLine": "ఈ నెల {requests} అభ్యర్థనలు, {tokens} టోకెన్లు"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.json
index 0b0417e3..bf670854 100644
--- a/client/src/i18n/locales/th.json
+++ b/client/src/i18n/locales/th.json
@@ -679,7 +679,12 @@
"testFailed": "การทดสอบโมเดลล้มเหลว",
"testThrottled": "โปรดรอ {seconds} วินาทีก่อนที่จะทดสอบโมเดลนี้อีกครั้ง",
"noModelsForProvider": "ไม่มีการกำหนดค่าโมเดลสำหรับผู้ให้บริการนี้",
- "testModels": "ทดสอบโมเดล"
+ "testModels": "ทดสอบโมเดล",
+ "monthlyRequestCapLabel": "ขีดจำกัดคำขอรายเดือน",
+ "monthlyTokenCapLabel": "ขีดจำกัดโทเคนรายเดือน",
+ "capUnlimitedPlaceholder": "ไม่จำกัด",
+ "capEditHint": "ขีดจำกัดจะรีเซ็ตวันที่ 1 เวลา 00:00 UTC เว้นว่างไว้หากไม่จำกัด",
+ "monthlyUsageLine": "เดือนนี้ {requests} คำขอ {tokens} โทเคน"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.json
index e5d7f9ec..fab04d95 100644
--- a/client/src/i18n/locales/tl.json
+++ b/client/src/i18n/locales/tl.json
@@ -679,7 +679,12 @@
"testFailed": "Bumagsak ang pagsusuri ng modelo",
"testThrottled": "Mangyaring maghintay ng {seconds}s bago subukang muli ang modelong ito.",
"noModelsForProvider": "Walang naka-configure na modelo para sa provider na ito.",
- "testModels": "Subukan ang mga modelo"
+ "testModels": "Subukan ang mga modelo",
+ "monthlyRequestCapLabel": "Buwanang limit ng kahilingan",
+ "monthlyTokenCapLabel": "Buwanang limit ng token",
+ "capUnlimitedPlaceholder": "Walang limit",
+ "capEditHint": "Nireset ang limit sa ika-1 ng buwan, 00:00 UTC. Iwanang blangko kung walang limit.",
+ "monthlyUsageLine": "{requests} kahilingan, {tokens} token ngayong buwan"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.json
index af0366b6..bde1f73b 100644
--- a/client/src/i18n/locales/tr.json
+++ b/client/src/i18n/locales/tr.json
@@ -679,7 +679,12 @@
"testFailed": "Model testi başarısız oldu",
"testThrottled": "Bu modeli yeniden test etmeden önce lütfen {seconds} saniye bekleyin.",
"noModelsForProvider": "Bu sağlayıcı için yapılandırılmış model yok.",
- "testModels": "Modelleri test et"
+ "testModels": "Modelleri test et",
+ "monthlyRequestCapLabel": "Aylık istek sınırı",
+ "monthlyTokenCapLabel": "Aylık token sınırı",
+ "capUnlimitedPlaceholder": "Sınırsız",
+ "capEditHint": "Sınırlar her ayın 1'inde 00:00 UTC'de sıfırlanır. Sınırsız için boş bırakın.",
+ "monthlyUsageLine": "Bu ay {requests} istek, {tokens} token"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.json
index 0814a48a..0714fec1 100644
--- a/client/src/i18n/locales/uk.json
+++ b/client/src/i18n/locales/uk.json
@@ -679,7 +679,12 @@
"testFailed": "Тест моделі не вдався",
"testThrottled": "Зачекайте {seconds}с перед повторним тестуванням цієї моделі.",
"noModelsForProvider": "Для цього постачальника немає налаштованих моделей.",
- "testModels": "Перевірити моделі"
+ "testModels": "Перевірити моделі",
+ "monthlyRequestCapLabel": "Місячний ліміт запитів",
+ "monthlyTokenCapLabel": "Місячний ліміт токенів",
+ "capUnlimitedPlaceholder": "Без обмежень",
+ "capEditHint": "Ліміти скидаються 1-го числа о 00:00 UTC. Залиште порожнім для безліміту.",
+ "monthlyUsageLine": "{requests} запитів, {tokens} токенів цього місяця"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.json
index 1b65be4d..7745fc79 100644
--- a/client/src/i18n/locales/ur.json
+++ b/client/src/i18n/locales/ur.json
@@ -679,7 +679,12 @@
"testFailed": "ماڈل ٹیسٹ ناکام ہو گیا",
"testThrottled": "دوبارہ ٹیسٹ کرنے سے پہلے براہ کرم {seconds} سیکنڈ انتظار کریں۔",
"noModelsForProvider": "اس فراہم کنندہ کے لیے کوئی ماڈل ترتیب نہیں دیا گیا ہے۔",
- "testModels": "ماڈلز کی جانچ کریں"
+ "testModels": "ماڈلز کی جانچ کریں",
+ "monthlyRequestCapLabel": "ماہانہ درخواستوں کی حد",
+ "monthlyTokenCapLabel": "ماہانہ ٹوکن کی حد",
+ "capUnlimitedPlaceholder": "لامحدود",
+ "capEditHint": "حدیں ہر مہینے کی 1 تاریخ کو 00:00 UTC پر ری سیٹ ہوتی ہیں۔ لامحدود کے لیے خالی چھوڑیں۔",
+ "monthlyUsageLine": "اس مہینے {requests} درخواستیں، {tokens} ٹوکن"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.json
index 626a8ec1..51a5e14b 100644
--- a/client/src/i18n/locales/uz.json
+++ b/client/src/i18n/locales/uz.json
@@ -679,7 +679,12 @@
"testFailed": "Model sinovi muvaffaqiyatsiz tugadi",
"testThrottled": "Ushbu modelni qayta sinashdan oldin {seconds} soniya kuting.",
"noModelsForProvider": "Ushbu taʼminotchi uchun modellar sozlanmagan.",
- "testModels": "Modellarni sinab ko‘rish"
+ "testModels": "Modellarni sinab ko‘rish",
+ "monthlyRequestCapLabel": "Oylik so‘rov chegarasi",
+ "monthlyTokenCapLabel": "Oylik token chegarasi",
+ "capUnlimitedPlaceholder": "Cheksiz",
+ "capEditHint": "Chegaralar har oyning 1-sana 00:00 UTC da tiklanadi. Cheksiz uchun bo‘sh qoldiring.",
+ "monthlyUsageLine": "Bu oy {requests} so‘rov, {tokens} token"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.json
index 0d68943b..0cac29e0 100644
--- a/client/src/i18n/locales/vi.json
+++ b/client/src/i18n/locales/vi.json
@@ -679,7 +679,12 @@
"testFailed": "Kiểm tra mô hình thất bại",
"testThrottled": "Vui lòng đợi {seconds}s trước khi kiểm tra lại mô hình này.",
"noModelsForProvider": "Chưa có mô hình nào được cấu hình cho nhà cung cấp này.",
- "testModels": "Kiểm tra mô hình"
+ "testModels": "Kiểm tra mô hình",
+ "monthlyRequestCapLabel": "Giới hạn yêu cầu hàng tháng",
+ "monthlyTokenCapLabel": "Giới hạn token hàng tháng",
+ "capUnlimitedPlaceholder": "Không giới hạn",
+ "capEditHint": "Giới hạn đặt lại vào ngày 1 lúc 00:00 UTC. Để trống để không giới hạn.",
+ "monthlyUsageLine": "{requests} yêu cầu, {tokens} token tháng này"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.json
index 6110cc04..76bb61d8 100644
--- a/client/src/i18n/locales/yo.json
+++ b/client/src/i18n/locales/yo.json
@@ -679,7 +679,12 @@
"testFailed": "Idanwo awoṣe kuna",
"testThrottled": "Jọwọ duro fun iṣẹju-aaya {seconds} ki o to tun awoṣe yii ṣe idanwo.",
"noModelsForProvider": "Ko si awọn awoṣe ti a tunto fun olupese yii.",
- "testModels": "Ṣàdánwò àwọn àwòṣe"
+ "testModels": "Ṣàdánwò àwọn àwòṣe",
+ "monthlyRequestCapLabel": "Òpín ìbéèrè oṣooṣù",
+ "monthlyTokenCapLabel": "Òpín token oṣooṣù",
+ "capUnlimitedPlaceholder": "Kò ní òpín",
+ "capEditHint": "A tún òpín ṣe ní ọjọ́ kìíní ní 00:00 UTC. Fi sílẹ̀ ṣófo fún aláìlópin.",
+ "monthlyUsageLine": "{requests} ìbéèrè, {tokens} token oṣù yìí"
},
"backups": {
"title": "Backups",
diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.json
index b464208f..855cc50f 100644
--- a/client/src/i18n/locales/zh-CN.json
+++ b/client/src/i18n/locales/zh-CN.json
@@ -679,7 +679,12 @@
"testFailed": "模型测试失败",
"testThrottled": "请等待 {seconds} 秒后再测试此模型。",
"noModelsForProvider": "此提供方尚未配置任何模型。",
- "testModels": "测试模型"
+ "testModels": "测试模型",
+ "monthlyRequestCapLabel": "每月请求上限",
+ "monthlyTokenCapLabel": "每月 Token 上限",
+ "capUnlimitedPlaceholder": "无限制",
+ "capEditHint": "配额在每月 1 日 00:00 UTC 重置。留空表示无限制。",
+ "monthlyUsageLine": "本月 {requests} 次请求,{tokens} tokens"
},
"backups": {
"title": "备份",
diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.json
index 5776ffc6..069b3731 100644
--- a/client/src/i18n/locales/zh-TW.json
+++ b/client/src/i18n/locales/zh-TW.json
@@ -679,7 +679,12 @@
"testFailed": "模型測試失敗",
"testThrottled": "請等待 {seconds} 秒後再測試此模型。",
"noModelsForProvider": "此提供商尚未設定任何模型。",
- "testModels": "測試模型"
+ "testModels": "測試模型",
+ "monthlyRequestCapLabel": "每月請求上限",
+ "monthlyTokenCapLabel": "每月 Token 上限",
+ "capUnlimitedPlaceholder": "無限制",
+ "capEditHint": "配額在每月 1 日 00:00 UTC 重設。留空表示無限制。",
+ "monthlyUsageLine": "本月 {requests} 次請求,{tokens} tokens"
},
"backups": {
"title": "Backups",
diff --git a/server/src/__tests__/routes/keys-monthly-usage.test.ts b/server/src/__tests__/routes/keys-monthly-usage.test.ts
new file mode 100644
index 00000000..bbda1d39
--- /dev/null
+++ b/server/src/__tests__/routes/keys-monthly-usage.test.ts
@@ -0,0 +1,102 @@
+import { describe, it, expect, beforeAll, beforeEach } from 'vitest';
+import type { Express } from 'express';
+import { createApp } from '../../app.js';
+import { initDb, getDb } from '../../db/index.js';
+import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';
+
+let dashToken = '';
+
+async function request(app: Express, method: string, path: string, body?: unknown) {
+ 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 { port: number };
+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, {
+ method,
+ headers: {
+ ...(body ? { 'Content-Type': 'application/json' } : {}),
+ ...(isGatedApiPath(path) ? { Authorization: `Bearer ${dashToken}` } : {}),
+ },
+ body: body ? JSON.stringify(body) : undefined,
+ });
+ const data = await res.json().catch(() => null);
+ server.close();
+ return { status: res.status, body: data };
+}
+
+describe('GET /api/keys monthly budget usage', () => {
+ let app: Express;
+
+ beforeAll(() => {
+ process.env.ENCRYPTION_KEY = '0'.repeat(64);
+ initDb(':memory:');
+ app = createApp();
+ dashToken = mintDashboardToken();
+ });
+
+ beforeEach(() => {
+ getDb().prepare('DELETE FROM api_keys').run();
+ });
+
+ it('exposes caps, current-month usage and the reset timestamp per key', async () => {
+ const created = await request(app, 'POST', '/api/keys', {
+ platform: 'groq',
+ key: 'gsk_usage_test_key_123456',
+ });
+ expect(created.status).toBe(201);
+ const keyId = created.body.id as number;
+ const patched = await request(app, 'PATCH', `/api/keys/${keyId}`, {
+ monthlyRequestCap: 1000,
+ monthlyTokenCap: 500000,
+ });
+ expect(patched.status).toBe(200);
+
+ // One successful request this month → the durable usage ledger (trigger)
+ // must show up alongside the caps.
+ getDb().prepare(
+ `INSERT INTO requests (platform, model_id, key_id, status, input_tokens, output_tokens, latency_ms)
+ VALUES ('groq', 'llama-3.3-70b', ?, 'success', 120, 80, 42)`,
+ ).run(keyId);
+
+ const { status, body } = await request(app, 'GET', '/api/keys');
+ expect(status).toBe(200);
+ const row = body.find((k: { id: number }) => k.id === keyId);
+ expect(row.monthlyRequestCap).toBe(1000);
+ expect(row.monthlyTokenCap).toBe(500000);
+ expect(row.monthlyUsage.requests).toBe(1);
+ expect(row.monthlyUsage.tokens).toBe(200);
+ // ISO timestamp of the next UTC month boundary.
+ const resets = Date.parse(row.monthlyUsage.resetsAt);
+ expect(Number.isFinite(resets)).toBe(true);
+ const d = new Date(resets);
+ expect(d.getUTCDate()).toBe(1);
+ expect(d.getUTCHours()).toBe(0);
+ expect(d.getTime()).toBeGreaterThan(Date.now());
+ });
+
+ it('reports zero usage for a key with no traffic and unlimited caps', async () => {
+ const created = await request(app, 'POST', '/api/keys', {
+ platform: 'groq',
+ key: 'gsk_usage_test_key_654321',
+ });
+ const { body } = await request(app, 'GET', '/api/keys');
+ const row = body.find((k: { id: number }) => k.id === created.body.id);
+ expect(row.monthlyRequestCap).toBe(0);
+ expect(row.monthlyTokenCap).toBe(0);
+ expect(row.monthlyUsage.requests).toBe(0);
+ expect(row.monthlyUsage.tokens).toBe(0);
+ });
+
+ it('ignores failed requests in the usage counters', async () => {
+ const created = await request(app, 'POST', '/api/keys', {
+ platform: 'groq',
+ key: 'gsk_usage_test_key_failed',
+ });
+ getDb().prepare(
+ `INSERT INTO requests (platform, model_id, key_id, status, input_tokens, output_tokens, latency_ms)
+ VALUES ('groq', 'llama-3.3-70b', ?, 'error', 0, 0, 10)`,
+ ).run(created.body.id);
+ const { body } = await request(app, 'GET', '/api/keys');
+ const row = body.find((k: { id: number }) => k.id === created.body.id);
+ expect(row.monthlyUsage.requests).toBe(0);
+ });
+});
diff --git a/server/src/routes/keys.ts b/server/src/routes/keys.ts
index 100a28a0..2dc6cbe8 100644
--- a/server/src/routes/keys.ts
+++ b/server/src/routes/keys.ts
@@ -12,7 +12,7 @@ import { parseKeysFromFile, stripJsoncComments, stripTrailingCommas } from '../l
import { assessProviderUrl } from '../lib/url-guard.js';
import { verifyCredentials } from '../services/auth.js';
import { getActiveCooldownsForKeys, clearCooldownsForKey } from '../services/ratelimit.js';
-import { getMonthlyBudgetCaps } from '../services/key-budget.js';
+import { getMonthlyBudgetCaps, getMonthlyUsage, nextMonthResetAt } from '../services/key-budget.js';
import { resolveCustomEndpointKey, customEndpointKeyIds, siblingEndpointKeyId, endpointHasCredential } from '../services/custom-endpoint.js';
import { registerCustomModels, registerCustomChatModels } from '../services/custom-model-register.js';
import { registerCustomMediaModel } from '../services/custom-media-register.js';
@@ -367,6 +367,10 @@ keysRouter.get('/', (_req: Request, res: Response) => {
const cooldowns = cooldownsByKeyId.get(Number(row.id)) ?? [];
const scope = parseModelScope(row.model_scope_json);
const budgetCaps = getMonthlyBudgetCaps(Number(row.id));
+ // Usage alongside the caps so the dashboard can show "342 of 1,000 this
+ // month" instead of only the cap (OpenRouter's GET /api/v1/key returns
+ // limit_remaining for the same reason).
+ const monthlyUsage = getMonthlyUsage(Number(row.id));
return {
id: row.id,
platform: row.platform,
@@ -375,6 +379,11 @@ keysRouter.get('/', (_req: Request, res: Response) => {
baseUrl: row.base_url ?? null,
monthlyRequestCap: budgetCaps.requestCap,
monthlyTokenCap: budgetCaps.tokenCap,
+ monthlyUsage: {
+ requests: monthlyUsage.requests,
+ tokens: monthlyUsage.tokens,
+ resetsAt: nextMonthResetAt(),
+ },
status: row.status,
enabled: row.enabled === 1,
keyless: resolveProvider(row.platform)?.keyless === true,
diff --git a/shared/types.ts b/shared/types.ts
index c5672fac..4d638d0c 100644
--- a/shared/types.ts
+++ b/shared/types.ts
@@ -320,6 +320,13 @@ export interface ApiKey {
/** Model ids this key is limited to; null = serves every model of its
* platform (#657). */
modelScope?: string[] | null;
+ /** Per-key monthly request cap (0 = unlimited, #1158). */
+ monthlyRequestCap?: number;
+ /** Per-key monthly token cap (0 = unlimited, #1158). */
+ monthlyTokenCap?: number;
+ /** Current UTC month's successful usage against the caps above, with the
+ * ISO time of the next monthly reset. */
+ monthlyUsage?: { requests: number; tokens: number; resetsAt: string };
/** The per-key proxy override with its password masked (#590); '' = none. */
maskedProxyUrl?: string;
models?: ApiKeyModel[];