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

Editable intelligence/speed ranks and rate limits on the model page (#551) (#646)

Tashfeen776fc9a5d515
diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.json
index ac7b2922..2bd0181a 100644
--- a/client/src/i18n/locales/am.json
+++ b/client/src/i18n/locales/am.json
@@ -179,7 +179,15 @@
"showingCount": "{total} ሞዴሎች {shown}",
"clearFilters": "ማጣሪያዎችን አጽዳ",
"noMatches": "ከማጣሪያዎችዎ ጋር የሚዛመዱ ሞዴሎች የሉም።",
- "noModelsTitle": "ምንም ሞዴሎች አልተዋቀሩም"
+ "noModelsTitle": "ምንም ሞዴሎች አልተዋቀሩም",
+ "intelligenceRank": "አእምሮ",
+ "speedRank": "ፍጥነት",
+ "rankHint": "በካታሎግ ውስጥ ደረጃ — 1 የተሻለ ነው።",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "ገደብ እንዳይኖር ባዶ ይተዉት።"
},
"strategies": {
"title": "የማዞሪያ ስትራቴጂ",
diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json
index bd3b690f..76f53510 100644
--- a/client/src/i18n/locales/ar.json
+++ b/client/src/i18n/locales/ar.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} من موديلات {total}",
"clearFilters": "مسح المرشحات",
"noMatches": "لا توجد نماذج تتطابق مع المرشحات الخاصة بك.",
- "noModelsTitle": "لم يتم تكوين أي نماذج"
+ "noModelsTitle": "لم يتم تكوين أي نماذج",
+ "intelligenceRank": "الذكاء",
+ "speedRank": "السرعة",
+ "rankHint": "الترتيب ضمن الكتالوج — 1 هو الأفضل.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "اتركه فارغًا لعدم وجود حد."
},
"strategies": {
"title": "استراتيجية التوجيه",
diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.json
index 5c4eb844..1ce33521 100644
--- a/client/src/i18n/locales/az.json
+++ b/client/src/i18n/locales/az.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} modelləri",
"clearFilters": "Təmiz filtrlər",
"noMatches": "Heç bir model filtrlərinizlə uyğun gəlmir.",
- "noModelsTitle": "Heç bir model konfiqurasiya olunmur"
+ "noModelsTitle": "Heç bir model konfiqurasiya olunmur",
+ "intelligenceRank": "Kəşfiyyat",
+ "speedRank": "Sürət",
+ "rankHint": "Kataloqdakı reytinq — 1 ən yaxşısıdır.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Limit olmaması üçün boş buraxın."
},
"strategies": {
"title": "Marşrut strategiyası",
diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.json
index 8935e307..a35a6aea 100644
--- a/client/src/i18n/locales/bg.json
+++ b/client/src/i18n/locales/bg.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} от {total} модели",
"clearFilters": "Прозрачни филтри",
"noMatches": "Нито един модел, който да съвпадне с вашите филтри.",
- "noModelsTitle": "Няма конфигурирани модели"
+ "noModelsTitle": "Няма конфигурирани модели",
+ "intelligenceRank": "Разузнаване",
+ "speedRank": "Скорост",
+ "rankHint": "Ранг в каталога — 1 е най-добър.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Оставете празно за без ограничение."
},
"strategies": {
"title": "Стратегия за маршрутизиране",
diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.json
index 1a797690..f04e9cbf 100644
--- a/client/src/i18n/locales/bn.json
+++ b/client/src/i18n/locales/bn.json
@@ -179,7 +179,15 @@
"showingCount": "{total} মডেলের {shown}",
"clearFilters": "ফিল্টার সাফ করুন",
"noMatches": "কোনো মডেল আপনার ফিল্টার মেলে না.",
- "noModelsTitle": "কোন মডেল কনফিগার করা"
+ "noModelsTitle": "কোন মডেল কনফিগার করা",
+ "intelligenceRank": "বুদ্ধিমত্তা",
+ "speedRank": "গতি",
+ "rankHint": "ক্যাটালগে র‍্যাঙ্ক — 1 সেরা।",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "কোনো সীমা না রাখতে ফাঁকা রাখুন।"
},
"strategies": {
"title": "রাউটিং কৌশল",
diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.json
index 6e9810fa..79de2a6e 100644
--- a/client/src/i18n/locales/cs.json
+++ b/client/src/i18n/locales/cs.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} modelů",
"clearFilters": "Průhledné filtry",
"noMatches": "Žádný model neodpovídá vašim filtrům.",
- "noModelsTitle": "Žádné modely nejsou konfigurovány"
+ "noModelsTitle": "Žádné modely nejsou konfigurovány",
+ "intelligenceRank": "Zpravodajství",
+ "speedRank": "Rychlost",
+ "rankHint": "Pořadí v katalogu — 1 je nejlepší.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Ponechte prázdné pro žádný limit."
},
"strategies": {
"title": "Strategie směrování",
diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json
index ee207dc1..392d5370 100644
--- a/client/src/i18n/locales/da.json
+++ b/client/src/i18n/locales/da.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} af {total} modeller",
"clearFilters": "Klare filtre",
"noMatches": "Ingen modeller matcher dine filtre.",
- "noModelsTitle": "Ingen modeller konfigureret"
+ "noModelsTitle": "Ingen modeller konfigureret",
+ "intelligenceRank": "Intelligens",
+ "speedRank": "Hastighed",
+ "rankHint": "Rangering i kataloget — 1 er bedst.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Lad stå tomt for ingen grænse."
},
"strategies": {
"title": "Routingstrategi",
diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json
index ef860778..d2153500 100644
--- a/client/src/i18n/locales/de.json
+++ b/client/src/i18n/locales/de.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} der {total}-Modelle",
"clearFilters": "Filter löschen",
"noMatches": "Kein Modell entspricht Ihren Filtern.",
- "noModelsTitle": "Keine Modelle konfiguriert"
+ "noModelsTitle": "Keine Modelle konfiguriert",
+ "intelligenceRank": "Intelligenz",
+ "speedRank": "Geschwindigkeit",
+ "rankHint": "Rang im Katalog — 1 ist am besten.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Leer lassen für kein Limit."
},
"strategies": {
"title": "Routing-Strategie",
diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.json
index 6f20d44d..93087460 100644
--- a/client/src/i18n/locales/el.json
+++ b/client/src/i18n/locales/el.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} μοντέλων",
"clearFilters": "Καθαρισμός φίλτρων",
"noMatches": "Κανένα μοντέλο δεν ταιριάζει με τα φίλτρα σας.",
- "noModelsTitle": "Δεν έχουν διαμορφωθεί μοντέλα"
+ "noModelsTitle": "Δεν έχουν διαμορφωθεί μοντέλα",
+ "intelligenceRank": "Ευφυΐα",
+ "speedRank": "Ταχύτητα",
+ "rankHint": "Κατάταξη στον κατάλογο — το 1 είναι το καλύτερο.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Αφήστε το κενό για κανένα όριο."
},
"strategies": {
"title": "Στρατηγική δρομολόγησης",
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json
index eacc81b7..1bec5885 100644
--- a/client/src/i18n/locales/en.json
+++ b/client/src/i18n/locales/en.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} of {total} models",
"clearFilters": "Clear filters",
"noMatches": "No models match your filters.",
- "noModelsTitle": "No models configured"
+ "noModelsTitle": "No models configured",
+ "intelligenceRank": "Intelligence",
+ "speedRank": "Speed",
+ "rankHint": "Rank across the catalog — 1 is best.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Leave blank for no limit."
},
"strategies": {
"title": "Routing strategy",
diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.json
index 5c0f87e1..7696c07f 100644
--- a/client/src/i18n/locales/es.json
+++ b/client/src/i18n/locales/es.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} de {total} modelos",
"clearFilters": "Borrar filtros",
"noMatches": "Ningún modelo coincide con tus filtros.",
- "noModelsTitle": "No hay modelos configurados"
+ "noModelsTitle": "No hay modelos configurados",
+ "intelligenceRank": "Inteligencia",
+ "speedRank": "Velocidad",
+ "rankHint": "Rango en el catálogo — 1 es el mejor.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Déjalo en blanco para no aplicar límite."
},
"strategies": {
"title": "Estrategia de enrutamiento",
diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.json
index 7f82bc9d..72c02ac9 100644
--- a/client/src/i18n/locales/fa.json
+++ b/client/src/i18n/locales/fa.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} از مدل های {total}",
"clearFilters": "فیلترها را پاک کنید",
"noMatches": "هیچ مدلی با فیلترهای شما مطابقت ندارد.",
- "noModelsTitle": "هیچ مدلی پیکربندی نشده است"
+ "noModelsTitle": "هیچ مدلی پیکربندی نشده است",
+ "intelligenceRank": "هوش",
+ "speedRank": "سرعت",
+ "rankHint": "رتبه در فهرست — 1 بهترین است.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "برای بدون محدودیت خالی بگذارید."
},
"strategies": {
"title": "استراتژی مسیریابی",
diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.json
index efedfcb3..befcee9d 100644
--- a/client/src/i18n/locales/fi.json
+++ b/client/src/i18n/locales/fi.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} mallia",
"clearFilters": "Clear-suodattimet",
"noMatches": "Yksikään malli ei vastaa suodattimiasi.",
- "noModelsTitle": "Ei malleja konfiguroituna"
+ "noModelsTitle": "Ei malleja konfiguroituna",
+ "intelligenceRank": "Tiedustelu",
+ "speedRank": "Nopeus",
+ "rankHint": "Sijoitus luettelossa — 1 on paras.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Jätä tyhjäksi, jos ei rajaa."
},
"strategies": {
"title": "Reititysstrategia",
diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.json
index 7278f149..7c8c37b2 100644
--- a/client/src/i18n/locales/fr.json
+++ b/client/src/i18n/locales/fr.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} sur {total} modèles",
"clearFilters": "Effacer les filtres",
"noMatches": "Aucun modèle ne correspond à vos filtres.",
- "noModelsTitle": "Aucun modèle configuré"
+ "noModelsTitle": "Aucun modèle configuré",
+ "intelligenceRank": "Intelligence",
+ "speedRank": "Vitesse",
+ "rankHint": "Classement dans le catalogue — 1 est le meilleur.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Laissez vide pour aucune limite."
},
"strategies": {
"title": "Stratégie de routage",
diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.json
index 1c206f40..8ab7d3cc 100644
--- a/client/src/i18n/locales/gu.json
+++ b/client/src/i18n/locales/gu.json
@@ -179,7 +179,15 @@
"showingCount": "{total} મોડલ્સના {shown}",
"clearFilters": "ફિલ્ટર્સ સાફ કરો",
"noMatches": "કોઈ મોડલ તમારા ફિલ્ટર સાથે મેળ ખાતા નથી.",
- "noModelsTitle": "કોઈ મોડલ ગોઠવેલ નથી"
+ "noModelsTitle": "કોઈ મોડલ ગોઠવેલ નથી",
+ "intelligenceRank": "બુદ્ધિ",
+ "speedRank": "ઝડપ",
+ "rankHint": "કૅટલૉગમાં ક્રમ — 1 શ્રેષ્ઠ છે.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "કોઈ મર્યાદા ન રાખવા ખાલી છોડો."
},
"strategies": {
"title": "રૂટીંગ વ્યૂહરચના",
diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.json
index 0e92ab2c..e6505665 100644
--- a/client/src/i18n/locales/ha.json
+++ b/client/src/i18n/locales/ha.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} na samfurin {total}",
"clearFilters": "Share masu tacewa",
"noMatches": "Babu samfurin da ya dace da matatun ku.",
- "noModelsTitle": "Babu samfurin da aka saita"
+ "noModelsTitle": "Babu samfurin da aka saita",
+ "intelligenceRank": "Hankali",
+ "speedRank": "Gudu",
+ "rankHint": "Matsayi a cikin katalogi — 1 shi ne mafi kyau.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Bar shi fanko domin babu iyaka."
},
"strategies": {
"title": "Dabarar hanya",
diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.json
index 57cad875..083a666d 100644
--- a/client/src/i18n/locales/he.json
+++ b/client/src/i18n/locales/he.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} הדגמים {total}",
"clearFilters": "מסננים שקופים",
"noMatches": "אין מודלים שמתאימים למסננים שלך.",
- "noModelsTitle": "אין דגמים מוגדרים"
+ "noModelsTitle": "אין דגמים מוגדרים",
+ "intelligenceRank": "מודיעין",
+ "speedRank": "מהירות",
+ "rankHint": "דירוג בקטלוג — 1 הוא הטוב ביותר.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "השאירו ריק כדי לא להגביל."
},
"strategies": {
"title": "אסטרטגיית ניתוב",
diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.json
index c37f260e..91aa3a61 100644
--- a/client/src/i18n/locales/hi.json
+++ b/client/src/i18n/locales/hi.json
@@ -179,7 +179,15 @@
"showingCount": "{total} मॉडल का {shown}",
"clearFilters": "फ़िल्टर साफ़ करें",
"noMatches": "कोई भी मॉडल आपके फ़िल्टर से मेल नहीं खाता.",
- "noModelsTitle": "कोई मॉडल कॉन्फ़िगर नहीं किया गया"
+ "noModelsTitle": "कोई मॉडल कॉन्फ़िगर नहीं किया गया",
+ "intelligenceRank": "बुद्धि",
+ "speedRank": "गति",
+ "rankHint": "कैटलॉग में रैंक — 1 सर्वश्रेष्ठ है।",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "कोई सीमा न रखने के लिए खाली छोड़ें।"
},
"strategies": {
"title": "रूटिंग रणनीति",
diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.json
index e4de72f2..4d7d4f78 100644
--- a/client/src/i18n/locales/hr.json
+++ b/client/src/i18n/locales/hr.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} modela",
"clearFilters": "Prozirni filteri",
"noMatches": "Nijedan model ne odgovara vašim filterima.",
- "noModelsTitle": "Nema konfiguriranih modela"
+ "noModelsTitle": "Nema konfiguriranih modela",
+ "intelligenceRank": "Obavještajna služba",
+ "speedRank": "Brzina",
+ "rankHint": "Rang u katalogu — 1 je najbolji.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Ostavite prazno za bez ograničenja."
},
"strategies": {
"title": "Strategija usmjeravanja",
diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.json
index 258142c5..a34deb4c 100644
--- a/client/src/i18n/locales/hu.json
+++ b/client/src/i18n/locales/hu.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} modell",
"clearFilters": "Tiszta szűrők",
"noMatches": "Egyetlen modell sem egyezik a szűrőiddel.",
- "noModelsTitle": "Nincsenek konfigurált modellek"
+ "noModelsTitle": "Nincsenek konfigurált modellek",
+ "intelligenceRank": "Intelligencia",
+ "speedRank": "Sebesség",
+ "rankHint": "Rangsor a katalógusban — az 1 a legjobb.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Hagyja üresen, ha nincs korlát."
},
"strategies": {
"title": "Útvonaltervezési stratégia",
diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.json
index 7029a8c3..41e150bc 100644
--- a/client/src/i18n/locales/id.json
+++ b/client/src/i18n/locales/id.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} dari model {total}",
"clearFilters": "Hapus filter",
"noMatches": "Tidak ada model yang cocok dengan filter Anda.",
- "noModelsTitle": "Tidak ada model yang dikonfigurasi"
+ "noModelsTitle": "Tidak ada model yang dikonfigurasi",
+ "intelligenceRank": "Intelijen",
+ "speedRank": "Kecepatan",
+ "rankHint": "Peringkat dalam katalog — 1 adalah yang terbaik.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Kosongkan untuk tanpa batas."
},
"strategies": {
"title": "Strategi perutean",
diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.json
index 934786f4..8b3e9af4 100644
--- a/client/src/i18n/locales/ig.json
+++ b/client/src/i18n/locales/ig.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} nke ụdị {total}",
"clearFilters": "Kpochapụ ihe nzacha",
"noMatches": "Ọ nweghị ụdị dabara na nzacha gị.",
- "noModelsTitle": "Ọnweghị ụdị ahaziri"
+ "noModelsTitle": "Ọnweghị ụdị ahaziri",
+ "intelligenceRank": "ọgụgụ isi",
+ "speedRank": "Ọsọ",
+ "rankHint": "Ọkwa na katalọgụ — 1 kacha mma.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Hapụ ya efu ka enweghị oke."
},
"strategies": {
"title": "Atụmatụ ụzọ",
diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.json
index 825dfe6c..d0e23359 100644
--- a/client/src/i18n/locales/it.json
+++ b/client/src/i18n/locales/it.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} di {total} modelli",
"clearFilters": "Cancella filtri",
"noMatches": "Nessun modello corrisponde ai tuoi filtri.",
- "noModelsTitle": "Nessun modello configurato"
+ "noModelsTitle": "Nessun modello configurato",
+ "intelligenceRank": "Intelligenza",
+ "speedRank": "Velocità",
+ "rankHint": "Posizione nel catalogo — 1 è la migliore.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Lascia vuoto per nessun limite."
},
"strategies": {
"title": "Strategia di routing",
diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.json
index 5cda7dc9..9774bd99 100644
--- a/client/src/i18n/locales/ja.json
+++ b/client/src/i18n/locales/ja.json
@@ -179,7 +179,15 @@
"showingCount": "{total} モデルの {shown}",
"clearFilters": "フィルターをクリアする",
"noMatches": "フィルターに一致するモデルはありません。",
- "noModelsTitle": "モデルが設定されていません"
+ "noModelsTitle": "モデルが設定されていません",
+ "intelligenceRank": "インテリジェンス",
+ "speedRank": "速度",
+ "rankHint": "カタログ内の順位 — 1 が最高です。",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "制限なしにするには空欄にします。"
},
"strategies": {
"title": "ルーティング戦略",
diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.json
index c7d33207..bda92f6f 100644
--- a/client/src/i18n/locales/ka.json
+++ b/client/src/i18n/locales/ka.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} მოდელებიდან",
"clearFilters": "ფილტრების გასუფთავება",
"noMatches": "არცერთი მოდელი არ შეესაბამება თქვენს ფილტრებს.",
- "noModelsTitle": "მოდელები არ არის კონფიგურირებული"
+ "noModelsTitle": "მოდელები არ არის კონფიგურირებული",
+ "intelligenceRank": "დაზვერვა",
+ "speedRank": "სიჩქარე",
+ "rankHint": "რანგი კატალოგში — 1 საუკეთესოა.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "დატოვეთ ცარიელი ლიმიტის გარეშე."
},
"strategies": {
"title": "მარშრუტიზაციის სტრატეგია",
diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.json
index df2f8958..83c1f098 100644
--- a/client/src/i18n/locales/km.json
+++ b/client/src/i18n/locales/km.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total}",
"clearFilters": "សម្អាតតម្រង",
"noMatches": "គ្មានម៉ូដែលណាដែលសមនឹងតម្រងរបស់អ្នកទេ។",
- "noModelsTitle": "គ្មានម៉ូដែលណាមួយបានកំណត់"
+ "noModelsTitle": "គ្មានម៉ូដែលណាមួយបានកំណត់",
+ "intelligenceRank": "បញ្ញា",
+ "speedRank": "ល្បឿន",
+ "rankHint": "ចំណាត់ថ្នាក់ក្នុងកាតាឡុក — 1 ល្អបំផុត។",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "ទុកឱ្យទទេ ដើម្បីគ្មានដែនកំណត់។"
},
"strategies": {
"title": "យុទ្ធសាស្ត្រផ្លូវបញ្ជូន",
diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.json
index 30045a57..51667dcd 100644
--- a/client/src/i18n/locales/kn.json
+++ b/client/src/i18n/locales/kn.json
@@ -179,7 +179,15 @@
"showingCount": "{total} ಮಾದರಿಗಳ {shown}",
"clearFilters": "ಫಿಲ್ಟರ್‌ಗಳನ್ನು ತೆರವುಗೊಳಿಸಿ",
"noMatches": "ನಿಮ್ಮ ಫಿಲ್ಟರ್‌ಗಳಿಗೆ ಯಾವುದೇ ಮಾದರಿಗಳು ಹೊಂದಿಕೆಯಾಗುವುದಿಲ್ಲ.",
- "noModelsTitle": "ಯಾವುದೇ ಮಾದರಿಗಳನ್ನು ಕಾನ್ಫಿಗರ್ ಮಾಡಲಾಗಿಲ್ಲ"
+ "noModelsTitle": "ಯಾವುದೇ ಮಾದರಿಗಳನ್ನು ಕಾನ್ಫಿಗರ್ ಮಾಡಲಾಗಿಲ್ಲ",
+ "intelligenceRank": "ಗುಪ್ತಚರ",
+ "speedRank": "ವೇಗ",
+ "rankHint": "ಕ್ಯಾಟಲಾಗ್‌ನಲ್ಲಿ ಶ್ರೇಣಿ — 1 ಅತ್ಯುತ್ತಮ.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "ಮಿತಿ ಬೇಡವಾದರೆ ಖಾಲಿ ಬಿಡಿ."
},
"strategies": {
"title": "ರೂಟಿಂಗ್ ತಂತ್ರ",
diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.json
index d1ccec1d..69e88162 100644
--- a/client/src/i18n/locales/ko.json
+++ b/client/src/i18n/locales/ko.json
@@ -179,7 +179,15 @@
"showingCount": "{total} 모델의 {shown}",
"clearFilters": "필터 지우기",
"noMatches": "필터와 일치하는 모델이 없습니다.",
- "noModelsTitle": "구성된 모델이 없습니다."
+ "noModelsTitle": "구성된 모델이 없습니다.",
+ "intelligenceRank": "지능",
+ "speedRank": "속도",
+ "rankHint": "카탈로그 내 순위 — 1이 가장 좋습니다.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "제한 없음으로 두려면 비워 두세요."
},
"strategies": {
"title": "라우팅 전략",
diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.json
index c8c5e286..a3b8278f 100644
--- a/client/src/i18n/locales/lt.json
+++ b/client/src/i18n/locales/lt.json
@@ -179,7 +179,15 @@
"showingCount": "{total} modelių {shown}",
"clearFilters": "Skaidrūs filtrai",
"noMatches": "Nėra modelių, atitinkančių jūsų filtrus.",
- "noModelsTitle": "Nėra jokių modelių, kurie būtų sukonfigūruoti"
+ "noModelsTitle": "Nėra jokių modelių, kurie būtų sukonfigūruoti",
+ "intelligenceRank": "Intelektas",
+ "speedRank": "Greitis",
+ "rankHint": "Reitingas kataloge — 1 yra geriausias.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Palikite tuščią, jei nėra ribos."
},
"strategies": {
"title": "Maršrutizavimo strategija",
diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.json
index c499ad51..1ccbf2cc 100644
--- a/client/src/i18n/locales/ml.json
+++ b/client/src/i18n/locales/ml.json
@@ -179,7 +179,15 @@
"showingCount": "{total} മോഡലുകളുടെ {shown}",
"clearFilters": "ഫിൽട്ടറുകൾ മായ്ക്കുക",
"noMatches": "നിങ്ങളുടെ ഫിൽട്ടറുകളുമായി പൊരുത്തപ്പെടുന്ന മോഡലുകളൊന്നുമില്ല.",
- "noModelsTitle": "മോഡലുകളൊന്നും കോൺഫിഗർ ചെയ്തിട്ടില്ല"
+ "noModelsTitle": "മോഡലുകളൊന്നും കോൺഫിഗർ ചെയ്തിട്ടില്ല",
+ "intelligenceRank": "ഇൻ്റലിജൻസ്",
+ "speedRank": "വേഗത",
+ "rankHint": "കാറ്റലോഗിലെ റാങ്ക് — 1 ആണ് ഏറ്റവും മികച്ചത്.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "പരിധി വേണ്ടെങ്കിൽ ശൂന്യമായി വിടുക."
},
"strategies": {
"title": "റൂട്ടിംഗ് തന്ത്രം",
diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.json
index 049b5209..bb8354b8 100644
--- a/client/src/i18n/locales/mr.json
+++ b/client/src/i18n/locales/mr.json
@@ -179,7 +179,15 @@
"showingCount": "{total} मॉडेलचे {shown}",
"clearFilters": "फिल्टर साफ करा",
"noMatches": "कोणतेही मॉडेल तुमच्या फिल्टरशी जुळत नाहीत.",
- "noModelsTitle": "कोणतेही मॉडेल कॉन्फिगर केलेले नाहीत"
+ "noModelsTitle": "कोणतेही मॉडेल कॉन्फिगर केलेले नाहीत",
+ "intelligenceRank": "बुद्धिमत्ता",
+ "speedRank": "गती",
+ "rankHint": "कॅटलॉगमधील क्रमांक — 1 सर्वोत्तम आहे.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "मर्यादा नको असल्यास रिकामे ठेवा."
},
"strategies": {
"title": "राउटिंग धोरण",
diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.json
index 1c7cf5ff..87f68cf9 100644
--- a/client/src/i18n/locales/ms.json
+++ b/client/src/i18n/locales/ms.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} model {total}",
"clearFilters": "Padam penapis",
"noMatches": "Tiada model yang sepadan dengan penapis anda.",
- "noModelsTitle": "Tiada model yang dikonfigurasikan"
+ "noModelsTitle": "Tiada model yang dikonfigurasikan",
+ "intelligenceRank": "Perisikan",
+ "speedRank": "Kelajuan",
+ "rankHint": "Kedudukan dalam katalog — 1 adalah yang terbaik.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Biarkan kosong untuk tiada had."
},
"strategies": {
"title": "Strategi penghalaan",
diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.json
index c6131746..39e25f2c 100644
--- a/client/src/i18n/locales/my.json
+++ b/client/src/i18n/locales/my.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total}",
"clearFilters": "စစ်ထုတ်မှုများ ဖယ်ရှားပါ",
"noMatches": "မော်ဒယ်တွေက သင့်ဖလ်တာနဲ့ မကိုက်ညီပါဘူး။",
- "noModelsTitle": "မော်ဒယ်များ မပြင်ဆင်ထားပါ"
+ "noModelsTitle": "မော်ဒယ်များ မပြင်ဆင်ထားပါ",
+ "intelligenceRank": "ဉာဏ်ရည်",
+ "speedRank": "အမြန်နှုန်း",
+ "rankHint": "ကတ်တလောက်အတွင်း အဆင့် — 1 သည် အကောင်းဆုံးဖြစ်သည်။",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "ကန့်သတ်ချက်မလိုပါက ကွက်လပ်ထားပါ။"
},
"strategies": {
"title": "လမ်းကြောင်းသတ်မှတ်မှု မဟာဗျူဟာ",
diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.json
index 0995f134..f4f87567 100644
--- a/client/src/i18n/locales/ne.json
+++ b/client/src/i18n/locales/ne.json
@@ -179,7 +179,15 @@
"showingCount": "{total} मोडेलहरूको {shown}",
"clearFilters": "फिल्टर खाली गर्नुहोस्",
"noMatches": "कुनै पनि मोडेलहरू तपाईंको फिल्टरहरूसँग मेल खाँदैनन्।",
- "noModelsTitle": "कुनै नमूना कन्फिगर गरिएको छैन"
+ "noModelsTitle": "कुनै नमूना कन्फिगर गरिएको छैन",
+ "intelligenceRank": "इन्टेलिजेन्स",
+ "speedRank": "गति",
+ "rankHint": "क्याटलगमा श्रेणी — 1 उत्तम हो।",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "कुनै सीमा नराख्न खाली छोड्नुहोस्।"
},
"strategies": {
"title": "राउटिङ रणनीति",
diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.json
index cc70204e..3d12a842 100644
--- a/client/src/i18n/locales/nl.json
+++ b/client/src/i18n/locales/nl.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} van {total} modellen",
"clearFilters": "Doorzichtige filters",
"noMatches": "Geen enkel model past bij jouw filters.",
- "noModelsTitle": "Geen modellen geconfigureerd"
+ "noModelsTitle": "Geen modellen geconfigureerd",
+ "intelligenceRank": "Intelligentie",
+ "speedRank": "Snelheid",
+ "rankHint": "Rang in de catalogus — 1 is het beste.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Laat leeg voor geen limiet."
},
"strategies": {
"title": "Routingstrategie",
diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.json
index 9cd23e38..789fec7b 100644
--- a/client/src/i18n/locales/no.json
+++ b/client/src/i18n/locales/no.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} av {total} modeller",
"clearFilters": "Gjennomsiktige filtre",
"noMatches": "Ingen modeller matcher filtrene dine.",
- "noModelsTitle": "Ingen modeller konfigurert"
+ "noModelsTitle": "Ingen modeller konfigurert",
+ "intelligenceRank": "Etterretning",
+ "speedRank": "Hastighet",
+ "rankHint": "Rangering i katalogen — 1 er best.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "La stå tomt for ingen grense."
},
"strategies": {
"title": "Routingstrategi",
diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.json
index bb6a253d..e23630fa 100644
--- a/client/src/i18n/locales/or.json
+++ b/client/src/i18n/locales/or.json
@@ -179,7 +179,15 @@
"showingCount": "{total} ମଡେଲଗୁଡିକର {shown}",
"clearFilters": "ଫିଲ୍ଟରଗୁଡିକ ଖାଲି କରନ୍ତୁ",
"noMatches": "କୌଣସି ମଡେଲ୍ ଆପଣଙ୍କ ଫିଲ୍ଟରଗୁଡିକ ସହ ମେଳକ ହେଉନାହିଁ।",
- "noModelsTitle": "କୌଣସି ମଡେଲ୍ କନଫିଗର୍ ହୋଇନାହିଁ"
+ "noModelsTitle": "କୌଣସି ମଡେଲ୍ କନଫିଗର୍ ହୋଇନାହିଁ",
+ "intelligenceRank": "ବୁଦ୍ଧିମତା",
+ "speedRank": "ବେଗ",
+ "rankHint": "କାଟାଲଗରେ ର୍ୟାଙ୍କ — 1 ସର୍ବୋତ୍ତମ।",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "କୌଣସି ସୀମା ନ ରଖିବାକୁ ଖାଲି ଛାଡ଼ନ୍ତୁ।"
},
"strategies": {
"title": "ରାଉଟିଂ ରଣନୀତି",
diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.json
index 9278d4de..9b17692c 100644
--- a/client/src/i18n/locales/pa.json
+++ b/client/src/i18n/locales/pa.json
@@ -179,7 +179,15 @@
"showingCount": "{total} ਮਾਡਲਾਂ ਦਾ {shown}",
"clearFilters": "ਫਿਲਟਰ ਸਾਫ਼ ਕਰੋ",
"noMatches": "ਕੋਈ ਵੀ ਮਾਡਲ ਤੁਹਾਡੇ ਫਿਲਟਰਾਂ ਨਾਲ ਮੇਲ ਨਹੀਂ ਖਾਂਦਾ।",
- "noModelsTitle": "ਕੋਈ ਮਾਡਲ ਕੌਂਫਿਗਰ ਨਹੀਂ ਕੀਤੇ ਗਏ"
+ "noModelsTitle": "ਕੋਈ ਮਾਡਲ ਕੌਂਫਿਗਰ ਨਹੀਂ ਕੀਤੇ ਗਏ",
+ "intelligenceRank": "ਬੁੱਧੀ",
+ "speedRank": "ਗਤੀ",
+ "rankHint": "ਕੈਟਾਲਾਗ ਵਿੱਚ ਦਰਜਾ — 1 ਸਭ ਤੋਂ ਵਧੀਆ ਹੈ।",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "ਕੋਈ ਹੱਦ ਨਾ ਰੱਖਣ ਲਈ ਖਾਲੀ ਛੱਡੋ।"
},
"strategies": {
"title": "ਰੂਟਿੰਗ ਰਣਨੀਤੀ",
diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.json
index 7e85288b..ae17c681 100644
--- a/client/src/i18n/locales/pl.json
+++ b/client/src/i18n/locales/pl.json
@@ -179,7 +179,15 @@
"showingCount": "Modele {shown} lub {total}",
"clearFilters": "Wyczyść filtry",
"noMatches": "Żaden model nie pasuje do Twoich filtrów.",
- "noModelsTitle": "Nie skonfigurowano żadnych modeli"
+ "noModelsTitle": "Nie skonfigurowano żadnych modeli",
+ "intelligenceRank": "Inteligencja",
+ "speedRank": "Prędkość",
+ "rankHint": "Ranga w katalogu — 1 jest najlepsza.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Pozostaw puste, aby nie było limitu."
},
"strategies": {
"title": "Strategia routingu",
diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.json
index 2a856f57..e81d3751 100644
--- a/client/src/i18n/locales/pt-BR.json
+++ b/client/src/i18n/locales/pt-BR.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} de {total} modelos",
"clearFilters": "Limpar filtros",
"noMatches": "Nenhum modelo corresponde aos seus filtros.",
- "noModelsTitle": "Nenhum modelo configurado"
+ "noModelsTitle": "Nenhum modelo configurado",
+ "intelligenceRank": "Inteligência",
+ "speedRank": "Velocidade",
+ "rankHint": "Classificação no catálogo — 1 é a melhor.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Deixe em branco para não ter limite."
},
"strategies": {
"title": "Estratégia de roteamento",
diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.json
index 859c41f6..1431c5bb 100644
--- a/client/src/i18n/locales/pt-PT.json
+++ b/client/src/i18n/locales/pt-PT.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} dos modelos {total}",
"clearFilters": "Filtros transparentes",
"noMatches": "Nenhum modelo corresponde aos teus filtros.",
- "noModelsTitle": "Sem modelos configurados"
+ "noModelsTitle": "Sem modelos configurados",
+ "intelligenceRank": "Inteligência",
+ "speedRank": "Velocidade",
+ "rankHint": "Classificação no catálogo — 1 é a melhor.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Deixe em branco para não ter limite."
},
"strategies": {
"title": "Estratégia de encaminhamento",
diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.json
index 0d0fe304..c4cfdf22 100644
--- a/client/src/i18n/locales/ro.json
+++ b/client/src/i18n/locales/ro.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} modelelor {total}",
"clearFilters": "Filtre clare",
"noMatches": "Niciun model nu se potrivește cu filtrele tale.",
- "noModelsTitle": "Niciun model configurat"
+ "noModelsTitle": "Niciun model configurat",
+ "intelligenceRank": "Inteligență",
+ "speedRank": "Viteză",
+ "rankHint": "Rangul în catalog — 1 este cel mai bun.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Lăsați gol pentru nicio limită."
},
"strategies": {
"title": "Strategia de rutare",
diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.json
index 6ea83cb3..038e610a 100644
--- a/client/src/i18n/locales/ru.json
+++ b/client/src/i18n/locales/ru.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} моделей {total}",
"clearFilters": "Очистить фильтры",
"noMatches": "Ни одна модель не соответствует вашим фильтрам.",
- "noModelsTitle": "Ни одна модель не настроена"
+ "noModelsTitle": "Ни одна модель не настроена",
+ "intelligenceRank": "Интеллект",
+ "speedRank": "Скорость",
+ "rankHint": "Ранг в каталоге — 1 лучший.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Оставьте пустым, чтобы не было ограничения."
},
"strategies": {
"title": "Стратегия маршрутизации",
diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.json
index 5d8a43eb..05e6113d 100644
--- a/client/src/i18n/locales/si.json
+++ b/client/src/i18n/locales/si.json
@@ -179,7 +179,15 @@
"showingCount": "{total} මාදිලිවල {shown}",
"clearFilters": "පෙරහන් හිස් කරන්න",
"noMatches": "ඔබගේ ෆිල්ටර වලට ගැලපෙන මාදිලි නොමැත.",
- "noModelsTitle": "මාදිලි කිසිවක් වින්‍යාස කර නැත"
+ "noModelsTitle": "මාදිලි කිසිවක් වින්‍යාස කර නැත",
+ "intelligenceRank": "බුද්ධිය",
+ "speedRank": "වේගය",
+ "rankHint": "නාමාවලියේ ශ්‍රේණිය — 1 හොඳම වේ.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "සීමාවක් නොමැති නම් හිස්ව තබන්න."
},
"strategies": {
"title": "මාර්ගගත කිරීමේ උපාය",
diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.json
index 5fba552c..e7700ffb 100644
--- a/client/src/i18n/locales/sk.json
+++ b/client/src/i18n/locales/sk.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} modelov",
"clearFilters": "Priehľadné filtre",
"noMatches": "Žiadny model nezodpovedá vašim filtrom.",
- "noModelsTitle": "Žiadne modely nie sú nakonfigurované"
+ "noModelsTitle": "Žiadne modely nie sú nakonfigurované",
+ "intelligenceRank": "Spravodajstvo",
+ "speedRank": "Rýchlosť",
+ "rankHint": "Poradie v katalógu — 1 je najlepšie.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Ponechajte prázdne pre žiadny limit."
},
"strategies": {
"title": "Stratégia smerovania",
diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.json
index 00ce9bbd..177d376a 100644
--- a/client/src/i18n/locales/sr.json
+++ b/client/src/i18n/locales/sr.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} модела {total}",
"clearFilters": "Обриши филтере",
"noMatches": "Ниједан модел не одговара вашим филтерима.",
- "noModelsTitle": "Ниједан модел није конфигурисан"
+ "noModelsTitle": "Ниједан модел није конфигурисан",
+ "intelligenceRank": "Интелигенција",
+ "speedRank": "Брзина",
+ "rankHint": "Ранг у каталогу — 1 је најбољи.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Оставите празно за без ограничења."
},
"strategies": {
"title": "Стратегија рутирања",
diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json
index 56c244fd..235b335f 100644
--- a/client/src/i18n/locales/sv.json
+++ b/client/src/i18n/locales/sv.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} av {total} modeller",
"clearFilters": "Genomskinliga filter",
"noMatches": "Inga modeller matchar dina filter.",
- "noModelsTitle": "Inga modeller konfigurerade"
+ "noModelsTitle": "Inga modeller konfigurerade",
+ "intelligenceRank": "Underrättelse",
+ "speedRank": "Hastighet",
+ "rankHint": "Rankning i katalogen — 1 är bäst.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Lämna tomt för ingen gräns."
},
"strategies": {
"title": "Routingstrategi",
diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.json
index 01698ddb..f865312a 100644
--- a/client/src/i18n/locales/sw.json
+++ b/client/src/i18n/locales/sw.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} ya miundo ya {total}",
"clearFilters": "Futa vichungi",
"noMatches": "Hakuna miundo inayolingana na vichujio vyako.",
- "noModelsTitle": "Hakuna miundo iliyosanidiwa"
+ "noModelsTitle": "Hakuna miundo iliyosanidiwa",
+ "intelligenceRank": "Akili",
+ "speedRank": "Kasi",
+ "rankHint": "Nafasi katika katalogi — 1 ndiyo bora.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Acha wazi ili kusiwe na kikomo."
},
"strategies": {
"title": "Mkakati wa uelekezaji",
diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.json
index 5d367a5c..d639ad9f 100644
--- a/client/src/i18n/locales/ta.json
+++ b/client/src/i18n/locales/ta.json
@@ -179,7 +179,15 @@
"showingCount": "{total} மாடல்களின் {shown}",
"clearFilters": "வடிகட்டிகளை அழிக்கவும்",
"noMatches": "உங்கள் வடிப்பான்களுடன் எந்த மாதிரியும் பொருந்தவில்லை.",
- "noModelsTitle": "மாதிரிகள் எதுவும் கட்டமைக்கப்படவில்லை"
+ "noModelsTitle": "மாதிரிகள் எதுவும் கட்டமைக்கப்படவில்லை",
+ "intelligenceRank": "உளவுத்துறை",
+ "speedRank": "வேகம்",
+ "rankHint": "பட்டியலில் தரவரிசை — 1 சிறந்தது.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "வரம்பு வேண்டாம் எனில் காலியாக விடவும்."
},
"strategies": {
"title": "ரூட்டிங் உத்தி",
diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.json
index 9151da57..99d459bc 100644
--- a/client/src/i18n/locales/te.json
+++ b/client/src/i18n/locales/te.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} {total} మోడల్స్",
"clearFilters": "ఫిల్టర్‌లను క్లియర్ చేయండి",
"noMatches": "మీ ఫిల్టర్‌లకు సరిపోలే మోడల్‌లు లేవు.",
- "noModelsTitle": "మోడల్‌లు ఏవీ కాన్ఫిగర్ చేయబడలేదు"
+ "noModelsTitle": "మోడల్‌లు ఏవీ కాన్ఫిగర్ చేయబడలేదు",
+ "intelligenceRank": "ఇంటెలిజెన్స్",
+ "speedRank": "వేగం",
+ "rankHint": "కేటలాగ్‌లో ర్యాంక్ — 1 ఉత్తమం.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "పరిమితి వద్దనుకుంటే ఖాళీగా వదిలేయండి."
},
"strategies": {
"title": "రూటింగ్ వ్యూహం",
diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.json
index 4151357c..0d25d1a9 100644
--- a/client/src/i18n/locales/th.json
+++ b/client/src/i18n/locales/th.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} ของรุ่น {total}",
"clearFilters": "ล้างตัวกรอง",
"noMatches": "ไม่มีรุ่นที่ตรงกับตัวกรองของคุณ",
- "noModelsTitle": "ไม่มีโมเดลที่กำหนดค่าไว้"
+ "noModelsTitle": "ไม่มีโมเดลที่กำหนดค่าไว้",
+ "intelligenceRank": "ความฉลาด",
+ "speedRank": "ความเร็ว",
+ "rankHint": "อันดับในแคตตาล็อก — 1 ดีที่สุด",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "เว้นว่างไว้หากไม่จำกัด"
},
"strategies": {
"title": "กลยุทธ์การกำหนดเส้นทาง",
diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.json
index 7b6000fd..cd0e8fab 100644
--- a/client/src/i18n/locales/tl.json
+++ b/client/src/i18n/locales/tl.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} ng mga modelo ng {total}",
"clearFilters": "Linisin ang mga filter",
"noMatches": "Walang modelo na tumutugma sa iyong mga filter.",
- "noModelsTitle": "Walang mga modelong naka-configure"
+ "noModelsTitle": "Walang mga modelong naka-configure",
+ "intelligenceRank": "Intelihensiya",
+ "speedRank": "Bilis",
+ "rankHint": "Ranggo sa katalogo — 1 ang pinakamahusay.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Iwanang blangko para walang limitasyon."
},
"strategies": {
"title": "Estratehiya sa Pag-ruta",
diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.json
index 4722474a..927b1fa6 100644
--- a/client/src/i18n/locales/tr.json
+++ b/client/src/i18n/locales/tr.json
@@ -179,7 +179,15 @@
"showingCount": "{total} modellerinin {shown}'si",
"clearFilters": "Filtreleri temizle",
"noMatches": "Filtrelerinizle eşleşen model yok.",
- "noModelsTitle": "Yapılandırılmış model yok"
+ "noModelsTitle": "Yapılandırılmış model yok",
+ "intelligenceRank": "İstihbarat",
+ "speedRank": "Hız",
+ "rankHint": "Katalogdaki sıra — 1 en iyisidir.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Sınır olmaması için boş bırakın."
},
"strategies": {
"title": "Yönlendirme stratejisi",
diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.json
index 7f4daa05..9f51eaae 100644
--- a/client/src/i18n/locales/uk.json
+++ b/client/src/i18n/locales/uk.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} моделей {total}",
"clearFilters": "Очистити фільтри",
"noMatches": "Жодна модель не відповідає вашим фільтрам.",
- "noModelsTitle": "Немає налаштованих моделей"
+ "noModelsTitle": "Немає налаштованих моделей",
+ "intelligenceRank": "Інтелект",
+ "speedRank": "швидкість",
+ "rankHint": "Ранг у каталозі — 1 найкращий.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Залиште порожнім, щоб не було обмеження."
},
"strategies": {
"title": "Стратегія маршрутизації",
diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.json
index d2c50e6b..92960588 100644
--- a/client/src/i18n/locales/ur.json
+++ b/client/src/i18n/locales/ur.json
@@ -179,7 +179,15 @@
"showingCount": "{total} ماڈلز کے {shown}",
"clearFilters": "فلٹرز صاف کریں۔",
"noMatches": "کوئی ماڈل آپ کے فلٹرز سے مماثل نہیں ہے۔",
- "noModelsTitle": "کوئی ماڈل ترتیب نہیں دیا گیا ہے۔"
+ "noModelsTitle": "کوئی ماڈل ترتیب نہیں دیا گیا ہے۔",
+ "intelligenceRank": "ذہانت",
+ "speedRank": "رفتار",
+ "rankHint": "کیٹلاگ میں درجہ — 1 بہترین ہے۔",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "کوئی حد نہ رکھنے کے لیے خالی چھوڑیں۔"
},
"strategies": {
"title": "روٹنگ کی حکمت عملی",
diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.json
index 2632473d..c07f0ebd 100644
--- a/client/src/i18n/locales/uz.json
+++ b/client/src/i18n/locales/uz.json
@@ -179,7 +179,15 @@
"showingCount": "{total} modellarining {shown}",
"clearFilters": "Filtrlarni tozalash",
"noMatches": "Filtrlaringizga mos modellar topilmadi.",
- "noModelsTitle": "Hech qanday model sozlanmagan"
+ "noModelsTitle": "Hech qanday model sozlanmagan",
+ "intelligenceRank": "Intellekt",
+ "speedRank": "Tezlik",
+ "rankHint": "Katalogdagi reyting — 1 eng yaxshisi.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Cheklov boʻlmasligi uchun boʻsh qoldiring."
},
"strategies": {
"title": "Marshrut strategiyasi",
diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.json
index 44aa34eb..4510ef76 100644
--- a/client/src/i18n/locales/vi.json
+++ b/client/src/i18n/locales/vi.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} của mẫu {total}",
"clearFilters": "Xóa bộ lọc",
"noMatches": "Không có mô hình nào phù hợp với bộ lọc của bạn.",
- "noModelsTitle": "Không có mô hình nào được định cấu hình"
+ "noModelsTitle": "Không có mô hình nào được định cấu hình",
+ "intelligenceRank": "Tình báo",
+ "speedRank": "Tốc độ",
+ "rankHint": "Thứ hạng trong danh mục — 1 là tốt nhất.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Để trống nếu không giới hạn."
},
"strategies": {
"title": "Chiến lược định tuyến",
diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.json
index 61732698..1c93e5e4 100644
--- a/client/src/i18n/locales/yo.json
+++ b/client/src/i18n/locales/yo.json
@@ -179,7 +179,15 @@
"showingCount": "{shown} ti {total} si dede",
"clearFilters": "Ko awọn asẹ kuro",
"noMatches": "Ko si awọn awoṣe ti o baamu awọn asẹ rẹ.",
- "noModelsTitle": "Ko si awọn awoṣe tunto"
+ "noModelsTitle": "Ko si awọn awoṣe tunto",
+ "intelligenceRank": "Imọye",
+ "speedRank": "Iyara",
+ "rankHint": "Ipò nínú àkójọ — 1 ni ó dára jùlọ.",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "Fi sílẹ̀ ní òfìfo fún àìní ààlà."
},
"strategies": {
"title": "Ilana ipa ọna",
diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.json
index 83e42125..6931b880 100644
--- a/client/src/i18n/locales/zh-CN.json
+++ b/client/src/i18n/locales/zh-CN.json
@@ -179,7 +179,15 @@
"showingCount": "{total} 个模型中的 {shown} 个",
"clearFilters": "清除筛选",
"noMatches": "没有符合筛选条件的模型。",
- "noModelsTitle": "尚未配置模型"
+ "noModelsTitle": "尚未配置模型",
+ "intelligenceRank": "智能",
+ "speedRank": "速度",
+ "rankHint": "目录中的排名 — 1 为最佳。",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "留空表示不限制。"
},
"strategies": {
"title": "路由策略",
diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.json
index 17d8c838..1239fa4f 100644
--- a/client/src/i18n/locales/zh-TW.json
+++ b/client/src/i18n/locales/zh-TW.json
@@ -179,7 +179,15 @@
"showingCount": "{total}型號{shown}",
"clearFilters": "透明濾網",
"noMatches": "沒有任何模型符合你的濾鏡。",
- "noModelsTitle": "未設定任何模型"
+ "noModelsTitle": "未設定任何模型",
+ "intelligenceRank": "智慧",
+ "speedRank": "速度",
+ "rankHint": "目錄中的排名 — 1 為最佳。",
+ "limitRpm": "RPM",
+ "limitRpd": "RPD",
+ "limitTpm": "TPM",
+ "limitTpd": "TPD",
+ "limitHint": "留空表示不限制。"
},
"strategies": {
"title": "路由策略",
diff --git a/client/src/lib/model-settings.test.ts b/client/src/lib/model-settings.test.ts
new file mode 100644
index 00000000..9c2a967a
--- /dev/null
+++ b/client/src/lib/model-settings.test.ts
@@ -0,0 +1,94 @@
+import { describe, expect, it } from 'vitest'
+import {
+ modelSettingsForm,
+ parseOptionalCount,
+ parseRank,
+ reviewModelSettings,
+ type ModelSettingsSource,
+} from './model-settings'
+
+const model: ModelSettingsSource = {
+ displayName: 'Llama 3.3 70B',
+ contextWindow: 131072,
+ intelligenceRank: 42,
+ speedRank: 17,
+ rpmLimit: 30,
+ rpdLimit: 1000,
+ tpmLimit: null,
+ tpdLimit: null,
+ supportsVision: false,
+ supportsTools: true,
+ enabled: true,
+}
+
+describe('parseRank (#551)', () => {
+ it('accepts integers inside the catalog range', () => {
+ expect(parseRank('1')).toBe(1)
+ expect(parseRank(' 1000 ')).toBe(1000)
+ })
+
+ it('rejects blanks, fractions and out-of-range values', () => {
+ for (const input of ['', ' ', '0', '1001', '1.5', 'abc', '-3']) {
+ expect(parseRank(input)).toBeUndefined()
+ }
+ })
+})
+
+describe('parseOptionalCount (#551)', () => {
+ it('reads a blank field as "no limit"', () => {
+ expect(parseOptionalCount('')).toBeNull()
+ expect(parseOptionalCount(' ')).toBeNull()
+ })
+
+ it('accepts positive integers and rejects everything else', () => {
+ expect(parseOptionalCount('30')).toBe(30)
+ for (const input of ['0', '-1', '2.5', 'lots']) {
+ expect(parseOptionalCount(input)).toBeUndefined()
+ }
+ })
+})
+
+describe('reviewModelSettings (#551)', () => {
+ it('is clean and valid for an untouched form', () => {
+ const review = reviewModelSettings(model, modelSettingsForm(model))
+ expect(review.dirty).toBe(false)
+ expect(Object.values(review.invalid).some(Boolean)).toBe(false)
+ expect(review.patch).toEqual({})
+ })
+
+ it('sends only the edited ranks and limits, so untouched fields keep tracking the catalog', () => {
+ const form = { ...modelSettingsForm(model), intelligenceRank: '3', tpmLimit: '6000' }
+ const review = reviewModelSettings(model, form)
+ expect(review.dirty).toBe(true)
+ expect(review.patch).toEqual({ intelligenceRank: 3, tpmLimit: 6000 })
+ })
+
+ it('sends the fallback toggle under its own key', () => {
+ const review = reviewModelSettings(model, { ...modelSettingsForm(model), fallbackEnabled: false })
+ expect(review.patch).toEqual({ fallbackEnabled: false })
+ })
+
+ it('clears a rate limit with an explicit null when the field is emptied', () => {
+ const review = reviewModelSettings(model, { ...modelSettingsForm(model), rpmLimit: '' })
+ expect(review.dirty).toBe(true)
+ expect(review.patch).toEqual({ rpmLimit: null })
+ })
+
+ it('blocks the save while a rank is out of range', () => {
+ const review = reviewModelSettings(model, { ...modelSettingsForm(model), speedRank: '5000' })
+ expect(review.invalid.speedRank).toBe(true)
+ expect(review.dirty).toBe(true)
+ expect(review.patch).toBeNull()
+ })
+
+ it('blocks the save on a blank rank rather than sending a null the API rejects', () => {
+ const review = reviewModelSettings(model, { ...modelSettingsForm(model), intelligenceRank: '' })
+ expect(review.invalid.intelligenceRank).toBe(true)
+ expect(review.patch).toBeNull()
+ })
+
+ it('treats a missing tpm/tpd on the source as "no limit", not as a change', () => {
+ const sparse: ModelSettingsSource = { ...model, tpmLimit: undefined, tpdLimit: undefined }
+ expect(reviewModelSettings(sparse, modelSettingsForm(sparse)).dirty).toBe(false)
+ })
+})
diff --git a/client/src/lib/model-settings.ts b/client/src/lib/model-settings.ts
new file mode 100644
index 00000000..c4941be2
--- /dev/null
+++ b/client/src/lib/model-settings.ts
@@ -0,0 +1,168 @@
+// Per-provider model settings edited on the model detail page (#551).
+//
+// The form holds every numeric field as a string (that is what an <input>
+// gives us), so parsing, validation and the PATCH body are pure functions
+// here instead of being spread through the component. The bounds mirror the
+// Zod schema on PATCH /api/models/:id — the server stays the authority, this
+// just keeps the Save button honest.
+
+// The fields the model page can override, in the order they are rendered.
+export const RANK_FIELDS = ['intelligenceRank', 'speedRank'] as const
+export const LIMIT_FIELDS = ['rpmLimit', 'rpdLimit', 'tpmLimit', 'tpdLimit'] as const
+
+export type RankField = typeof RANK_FIELDS[number]
+export type LimitField = typeof LIMIT_FIELDS[number]
+export type NumericField = RankField | LimitField | 'contextWindow'
+export type EditableField = NumericField | 'displayName' | 'supportsVision' | 'supportsTools'
+
+export const RANK_MIN = 1
+export const RANK_MAX = 1000
+
+// What the edit form binds to. Numbers are strings; a blank optional number
+// means "unset" (null on the wire).
+export type ModelSettingsForm = {
+ displayName: string
+ contextWindow: string
+ intelligenceRank: string
+ speedRank: string
+ rpmLimit: string
+ rpdLimit: string
+ tpmLimit: string
+ tpdLimit: string
+ supportsVision: boolean
+ supportsTools: boolean
+ fallbackEnabled: boolean
+}
+
+// The PATCH body — only the fields the user actually changed. Every field the
+// server receives for a catalog model is recorded as a durable override, so
+// sending untouched fields would silently freeze them at today's catalog value.
+// The limits and the context window accept null ("no limit"), which is stored
+// as an override too and therefore survives the next catalog sync.
+export type ModelSettingsPatch = {
+ displayName?: string
+ contextWindow?: number | null
+ intelligenceRank?: number
+ speedRank?: number
+ rpmLimit?: number | null
+ rpdLimit?: number | null
+ tpmLimit?: number | null
+ tpdLimit?: number | null
+ supportsVision?: boolean
+ supportsTools?: boolean
+ fallbackEnabled?: boolean
+}
+
+// The effective (post-override) model as the API reports it.
+export type ModelSettingsSource = {
+ displayName: string
+ contextWindow?: number | null
+ intelligenceRank: number
+ speedRank: number
+ rpmLimit: number | null
+ rpdLimit: number | null
+ tpmLimit?: number | null
+ tpdLimit?: number | null
+ supportsVision: boolean
+ supportsTools: boolean
+ enabled: boolean
+}
+
+export type ModelSettingsReview = {
+ // The body to send, or null while anything is invalid.
+ patch: ModelSettingsPatch | null
+ invalid: Record<EditableField, boolean>
+ dirty: boolean
+}
+
+function numberFrom(text: string): number | undefined {
+ const trimmed = text.trim()
+ if (trimmed === '') return undefined
+ const value = Number(trimmed)
+ return Number.isInteger(value) ? value : undefined
+}
+
+// Blank clears the field; anything else must be a positive integer.
+// `undefined` means the input is invalid.
+export function parseOptionalCount(text: string): number | null | undefined {
+ if (text.trim() === '') return null
+ const value = numberFrom(text)
+ return value !== undefined && value > 0 ? value : undefined
+}
+
+// Ranks are required and bounded, same as the PATCH schema.
+export function parseRank(text: string): number | undefined {
+ const value = numberFrom(text)
+ return value !== undefined && value >= RANK_MIN && value <= RANK_MAX ? value : undefined
+}
+
+function countText(value: number | null | undefined): string {
+ return value == null ? '' : String(value)
+}
+
+export function modelSettingsForm(model: ModelSettingsSource): ModelSettingsForm {
+ return {
+ displayName: model.displayName,
+ contextWindow: countText(model.contextWindow),
+ intelligenceRank: countText(model.intelligenceRank),
+ speedRank: countText(model.speedRank),
+ rpmLimit: countText(model.rpmLimit),
+ rpdLimit: countText(model.rpdLimit),
+ tpmLimit: countText(model.tpmLimit),
+ tpdLimit: countText(model.tpdLimit),
+ supportsVision: model.supportsVision,
+ supportsTools: model.supportsTools,
+ fallbackEnabled: model.enabled,
+ }
+}
+
+export function reviewModelSettings(
+ model: ModelSettingsSource,
+ form: ModelSettingsForm,
+): ModelSettingsReview {
+ const displayName = form.displayName.trim()
+ const parsed = {
+ intelligenceRank: parseRank(form.intelligenceRank),
+ speedRank: parseRank(form.speedRank),
+ contextWindow: parseOptionalCount(form.contextWindow),
+ rpmLimit: parseOptionalCount(form.rpmLimit),
+ rpdLimit: parseOptionalCount(form.rpdLimit),
+ tpmLimit: parseOptionalCount(form.tpmLimit),
+ tpdLimit: parseOptionalCount(form.tpdLimit),
+ }
+ const invalid: Record<EditableField, boolean> = {
+ displayName: displayName.length === 0,
+ intelligenceRank: parsed.intelligenceRank === undefined,
+ speedRank: parsed.speedRank === undefined,
+ contextWindow: parsed.contextWindow === undefined,
+ rpmLimit: parsed.rpmLimit === undefined,
+ rpdLimit: parsed.rpdLimit === undefined,
+ tpmLimit: parsed.tpmLimit === undefined,
+ tpdLimit: parsed.tpdLimit === undefined,
+ supportsVision: false,
+ supportsTools: false,
+ }
+
+ // Only the changed fields go on the wire. An unparseable field reads as
+ // `undefined`, which never equals the stored value — so a typo leaves the row
+ // dirty with Save disabled, rather than silently looking saved.
+ const changes: ModelSettingsPatch = {}
+ if (displayName !== model.displayName) changes.displayName = displayName
+ if (parsed.intelligenceRank !== model.intelligenceRank) changes.intelligenceRank = parsed.intelligenceRank
+ if (parsed.speedRank !== model.speedRank) changes.speedRank = parsed.speedRank
+ if (parsed.contextWindow !== (model.contextWindow ?? null)) changes.contextWindow = parsed.contextWindow
+ if (parsed.rpmLimit !== (model.rpmLimit ?? null)) changes.rpmLimit = parsed.rpmLimit
+ if (parsed.rpdLimit !== (model.rpdLimit ?? null)) changes.rpdLimit = parsed.rpdLimit
+ if (parsed.tpmLimit !== (model.tpmLimit ?? null)) changes.tpmLimit = parsed.tpmLimit
+ if (parsed.tpdLimit !== (model.tpdLimit ?? null)) changes.tpdLimit = parsed.tpdLimit
+ if (form.supportsVision !== model.supportsVision) changes.supportsVision = form.supportsVision
+ if (form.supportsTools !== model.supportsTools) changes.supportsTools = form.supportsTools
+ if (form.fallbackEnabled !== model.enabled) changes.fallbackEnabled = form.fallbackEnabled
+
+ const anyInvalid = Object.values(invalid).some(Boolean)
+ return {
+ patch: anyInvalid ? null : changes,
+ invalid,
+ dirty: Object.keys(changes).length > 0,
+ }
+}
diff --git a/client/src/lib/routing.ts b/client/src/lib/routing.ts
index 272b904e..88757cfb 100644
--- a/client/src/lib/routing.ts
+++ b/client/src/lib/routing.ts
@@ -17,6 +17,8 @@ export interface FallbackEntry {
sizeLabel: string
rpmLimit: number | null
rpdLimit: number | null
+ tpmLimit?: number | null
+ tpdLimit?: number | null
monthlyTokenBudget: string
// Parsed token count from the server (single source of truth — see
// server/src/lib/budget.ts). Optional only because the dev mock omits it.
@@ -30,6 +32,9 @@ export interface FallbackEntry {
keyId?: number | null
keyLabel?: string | null
hasOverrides?: boolean
+ // Which fields a local override replaces, so the model page can mark the
+ // individual inputs that no longer show the catalog default (#551).
+ overrideFields?: string[]
// The provider reported this model as permanently gone (410 / end of life),
// so the gateway disabled it by itself — distinct from a switch the user
// flipped off. `retiredReason` is the upstream wording. See #634.
diff --git a/client/src/pages/ModelDetailPage.tsx b/client/src/pages/ModelDetailPage.tsx
index 6760d32a..412905c7 100644
--- a/client/src/pages/ModelDetailPage.tsx
+++ b/client/src/pages/ModelDetailPage.tsx
@@ -1,4 +1,4 @@
-import { useEffect, useState } from 'react'
+import { useEffect, useMemo, useState } from 'react'
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'
import { Link, useParams } from 'react-router-dom'
import { ChevronLeft, Merge, Save, Split, Trash2 } from 'lucide-react'
@@ -21,14 +21,14 @@ import {
type RoutingData,
type Row,
} from '@/lib/routing'
-
-type ModelSettingsPatch = {
- displayName: string
- contextWindow: number | null
- supportsVision: boolean
- supportsTools: boolean
- fallbackEnabled: boolean
-}
+import {
+ modelSettingsForm,
+ reviewModelSettings,
+ RANK_MAX,
+ RANK_MIN,
+ type ModelSettingsPatch,
+ type ModelSettingsSource,
+} from '@/lib/model-settings'
// The persisted unify overrides (see server model-groups.ts). `splits` forces a
// "platform:model_id" member out of its computed group into its own entry.
@@ -283,41 +283,33 @@ function ProviderSettingsRow({
splitAction?: SplitAction
}) {
const { t } = useI18n()
- const [displayName, setDisplayName] = useState(model.displayName)
- const [contextWindow, setContextWindow] = useState(model.contextWindow ? String(model.contextWindow) : '')
- const [supportsVision, setSupportsVision] = useState(model.supportsVision)
- const [supportsTools, setSupportsTools] = useState(model.supportsTools)
- const [fallbackEnabled, setFallbackEnabled] = useState(model.enabled)
+ // `members` is rebuilt on every render, so depend on the model's own values
+ // rather than the object identity — otherwise the form resets mid-edit.
+ const {
+ modelDbId, displayName, contextWindow, intelligenceRank, speedRank,
+ rpmLimit, rpdLimit, tpmLimit, tpdLimit, supportsVision, supportsTools, enabled,
+ } = model
+ const source: ModelSettingsSource = useMemo(() => ({
+ displayName, contextWindow, intelligenceRank, speedRank,
+ rpmLimit, rpdLimit, tpmLimit, tpdLimit, supportsVision, supportsTools, enabled,
+ }), [displayName, contextWindow, intelligenceRank, speedRank, rpmLimit, rpdLimit,
+ tpmLimit, tpdLimit, supportsVision, supportsTools, enabled])
- useEffect(() => {
- setDisplayName(model.displayName)
- setContextWindow(model.contextWindow ? String(model.contextWindow) : '')
- setSupportsVision(model.supportsVision)
- setSupportsTools(model.supportsTools)
- setFallbackEnabled(model.enabled)
- }, [model.modelDbId, model.displayName, model.contextWindow, model.supportsVision, model.supportsTools, model.enabled])
+ const [form, setForm] = useState(() => modelSettingsForm(source))
+ useEffect(() => setForm(modelSettingsForm(source)), [modelDbId, source])
+ const setField = <K extends keyof typeof form>(key: K, value: typeof form[K]) =>
+ setForm(current => ({ ...current, [key]: value }))
- const parsedContext = contextWindow.trim() === '' ? null : Number(contextWindow)
- const contextInvalid = parsedContext !== null && (!Number.isInteger(parsedContext) || parsedContext <= 0)
- const nameInvalid = displayName.trim().length === 0
- const dirty =
- displayName.trim() !== model.displayName ||
- parsedContext !== (model.contextWindow ?? null) ||
- supportsVision !== model.supportsVision ||
- supportsTools !== model.supportsTools ||
- fallbackEnabled !== model.enabled
- const canSave = dirty && !nameInvalid && !contextInvalid && !saving && !deleting
+ const { patch, invalid, dirty } = reviewModelSettings(source, form)
+ const canSave = dirty && patch !== null && !saving && !deleting
const sourceLabel = model.source === 'custom' ? t('models.customModel') : t('models.catalogModel')
+ // Fields whose effective value comes from a local override instead of the
+ // catalog. Custom models are never catalog-managed, so this stays empty.
+ const overridden = new Set(model.overrideFields ?? [])
function save() {
- if (!canSave) return
- onSave({
- displayName: displayName.trim(),
- contextWindow: parsedContext,
- supportsVision,
- supportsTools,
- fallbackEnabled,
- })
+ if (!canSave || !patch) return
+ onSave(patch)
}
return (
@@ -354,36 +346,31 @@ function ProviderSettingsRow({
</div>
<div className="grid gap-3 md:grid-cols-[minmax(12rem,1fr)_8rem_auto_auto_auto_auto] md:items-end">
<label className="space-y-1 text-xs text-muted-foreground">
- <span>{t('models.displayName')}</span>
+ <FieldLabel text={t('models.displayName')} overridden={overridden.has('displayName')} />
<Input
- value={displayName}
- onChange={e => setDisplayName(e.target.value)}
- aria-invalid={nameInvalid}
+ value={form.displayName}
+ onChange={e => setField('displayName', e.target.value)}
+ aria-invalid={invalid.displayName}
className="text-sm"
/>
</label>
- <label className="space-y-1 text-xs text-muted-foreground">
- <span>{t('models.contextWindow')}</span>
- <Input
- type="number"
- min={1}
- step={1}
- value={contextWindow}
- onChange={e => setContextWindow(e.target.value)}
- aria-invalid={contextInvalid}
- className="text-sm tabular-nums"
- />
- </label>
+ <NumberField
+ label={t('models.contextWindow')}
+ value={form.contextWindow}
+ invalid={invalid.contextWindow}
+ overridden={overridden.has('contextWindow')}
+ onChange={value => setField('contextWindow', value)}
+ />
<label className="flex h-8 items-center gap-2 text-xs">
- <Switch size="sm" checked={supportsTools} onCheckedChange={setSupportsTools} />
- <span>{t('models.tools')}</span>
+ <Switch size="sm" checked={form.supportsTools} onCheckedChange={value => setField('supportsTools', value)} />
+ <FieldLabel text={t('models.tools')} overridden={overridden.has('supportsTools')} />
</label>
<label className="flex h-8 items-center gap-2 text-xs">
- <Switch size="sm" checked={supportsVision} onCheckedChange={setSupportsVision} />
- <span>{t('models.vision')}</span>
+ <Switch size="sm" checked={form.supportsVision} onCheckedChange={value => setField('supportsVision', value)} />
+ <FieldLabel text={t('models.vision')} overridden={overridden.has('supportsVision')} />
</label>
<label className="flex h-8 items-center gap-2 text-xs">
- <Switch size="sm" checked={fallbackEnabled} onCheckedChange={setFallbackEnabled} />
+ <Switch size="sm" checked={form.fallbackEnabled} onCheckedChange={value => setField('fallbackEnabled', value)} />
<span>{t('models.inFallback')}</span>
</label>
<div className="flex items-center justify-end gap-1">
@@ -405,6 +392,118 @@ function ProviderSettingsRow({
</ConfirmButton>
</div>
</div>
+
+ {/* Router inputs: the two ranks feed the scoring axes, the four limits
+ feed rate-limit accounting. Editable because the catalog can be wrong
+ for a given account, or silent about a brand-new model (#551). */}
+ <div className="mt-3 grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-6">
+ <NumberField
+ label={t('models.intelligenceRank')}
+ hint={t('models.rankHint')}
+ min={RANK_MIN}
+ max={RANK_MAX}
+ value={form.intelligenceRank}
+ invalid={invalid.intelligenceRank}
+ overridden={overridden.has('intelligenceRank')}
+ onChange={value => setField('intelligenceRank', value)}
+ />
+ <NumberField
+ label={t('models.speedRank')}
+ hint={t('models.rankHint')}
+ min={RANK_MIN}
+ max={RANK_MAX}
+ value={form.speedRank}
+ invalid={invalid.speedRank}
+ overridden={overridden.has('speedRank')}
+ onChange={value => setField('speedRank', value)}
+ />
+ <NumberField
+ label={t('models.limitRpm')}
+ hint={t('models.limitHint')}
+ value={form.rpmLimit}
+ invalid={invalid.rpmLimit}
+ overridden={overridden.has('rpmLimit')}
+ onChange={value => setField('rpmLimit', value)}
+ />
+ <NumberField
+ label={t('models.limitRpd')}
+ hint={t('models.limitHint')}
+ value={form.rpdLimit}
+ invalid={invalid.rpdLimit}
+ overridden={overridden.has('rpdLimit')}
+ onChange={value => setField('rpdLimit', value)}
+ />
+ <NumberField
+ label={t('models.limitTpm')}
+ hint={t('models.limitHint')}
+ value={form.tpmLimit}
+ invalid={invalid.tpmLimit}
+ overridden={overridden.has('tpmLimit')}
+ onChange={value => setField('tpmLimit', value)}
+ />
+ <NumberField
+ label={t('models.limitTpd')}
+ hint={t('models.limitHint')}
+ value={form.tpdLimit}
+ invalid={invalid.tpdLimit}
+ overridden={overridden.has('tpdLimit')}
+ onChange={value => setField('tpdLimit', value)}
+ />
+ </div>
</div>
)
}
+
+// A field label that says whether the value below it is still the catalog's or
+// has been replaced locally — the same emerald the row-level badge uses.
+function FieldLabel({ text, overridden }: { text: string; overridden: boolean }) {
+ const { t } = useI18n()
+ return (
+ <span className="flex items-center gap-1">
+ {text}
+ {overridden && (
+ <span
+ title={t('models.localOverride')}
+ aria-label={t('models.localOverride')}
+ className="size-1.5 shrink-0 rounded-full bg-emerald-600 dark:bg-emerald-400"
+ />
+ )}
+ </span>
+ )
+}
+
+function NumberField({
+ label,
+ hint,
+ value,
+ invalid,
+ overridden,
+ onChange,
+ min = 1,
+ max,
+}: {
+ label: string
+ hint?: string
+ value: string
+ invalid: boolean
+ overridden: boolean
+ onChange: (value: string) => void
+ min?: number
+ max?: number
+}) {
+ return (
+ <label className="space-y-1 text-xs text-muted-foreground" title={hint}>
+ <FieldLabel text={label} overridden={overridden} />
+ <Input
+ type="number"
+ min={min}
+ max={max}
+ step={1}
+ value={value}
+ onChange={e => onChange(e.target.value)}
+ aria-invalid={invalid}
+ className="text-sm tabular-nums"
+ />
+ </label>
+ )
+}
diff --git a/server/src/__tests__/routes/models-management.test.ts b/server/src/__tests__/routes/models-management.test.ts
index b5903159..36f88e55 100644
--- a/server/src/__tests__/routes/models-management.test.ts
+++ b/server/src/__tests__/routes/models-management.test.ts
@@ -3,6 +3,7 @@ import type { Express } from 'express';
import { createApp } from '../../app.js';
import { initDb, getDb, getSetting, setSetting } from '../../db/index.js';
import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';
+import { applyAllModelOverrides } from '../../services/model-state.js';
let dashToken = '';
@@ -185,6 +186,97 @@ describe('Model management API', () => {
expect(savedFusionConfig.judge).toBeNull();
});
+ it('persists rank and rate-limit edits as overrides that survive a catalog re-apply (#551)', async () => {
+ const target = getDb().prepare(`
+ SELECT m.id, m.platform, m.model_id FROM models m
+ JOIN fallback_config fc ON fc.model_db_id = m.id
+ WHERE m.platform = 'groq' AND m.key_id IS NULL AND m.source != 'user'
+ ORDER BY m.id DESC LIMIT 1
+ `).get() as { id: number; platform: string; model_id: string };
+
+ const edits = {
+ intelligenceRank: 7,
+ speedRank: 11,
+ rpmLimit: 13,
+ rpdLimit: 17,
+ tpmLimit: 19,
+ tpdLimit: 23,
+ };
+ const { status } = await request(app, 'PATCH', `/api/models/${target.id}`, edits);
+ expect(status).toBe(200);
+
+ const readColumns = () => getDb().prepare(`
+ SELECT intelligence_rank, speed_rank, rpm_limit, rpd_limit, tpm_limit, tpd_limit
+ FROM models WHERE id = ?
+ `).get(target.id);
+ const expectedColumns = {
+ intelligence_rank: 7, speed_rank: 11,
+ rpm_limit: 13, rpd_limit: 17, tpm_limit: 19, tpd_limit: 23,
+ };
+ expect(readColumns()).toEqual(expectedColumns);
+
+ const override = getDb().prepare('SELECT overrides_json FROM model_overrides WHERE platform = ? AND model_id = ?')
+ .get(target.platform, target.model_id) as { overrides_json: string };
+ expect(JSON.parse(override.overrides_json)).toMatchObject(edits);
+
+ // A catalog sync rewrites every catalog-owned column before the overrides
+ // are re-applied, so simulate the rewrite and check the edits come back.
+ getDb().prepare(`
+ UPDATE models SET intelligence_rank = 500, speed_rank = 500, rpm_limit = NULL,
+ rpd_limit = NULL, tpm_limit = NULL, tpd_limit = NULL
+ WHERE id = ?
+ `).run(target.id);
+ expect(applyAllModelOverrides(getDb())).toBeGreaterThan(0);
+ expect(readColumns()).toEqual(expectedColumns);
+
+ // Per-field provenance, so the model page can mark the overridden inputs.
+ const listed = await request(app, 'GET', '/api/models');
+ const item = listed.body.find((m: any) => m.id === target.id);
+ expect(item.overrideFields).toEqual(expect.arrayContaining(Object.keys(edits)));
+ expect(item.intelligenceRank).toBe(7);
+ expect(item.speedRank).toBe(11);
+
+ const chain = await request(app, 'GET', '/api/fallback');
+ const entry = chain.body.find((e: any) => e.modelDbId === target.id);
+ expect(entry.overrideFields).toEqual(expect.arrayContaining(Object.keys(edits)));
+ expect(entry.tpmLimit).toBe(19);
+ expect(entry.tpdLimit).toBe(23);
+ });
+
+ it('clears a rate limit back to unlimited with an explicit null (#551)', async () => {
+ const target = getDb().prepare(`
+ SELECT m.id, m.platform, m.model_id FROM models m
+ WHERE m.platform = 'cerebras' AND m.key_id IS NULL AND m.source != 'user'
+ ORDER BY m.id LIMIT 1
+ `).get() as { id: number; platform: string; model_id: string };
+
+ expect((await request(app, 'PATCH', `/api/models/${target.id}`, { rpmLimit: 41 })).status).toBe(200);
+ expect((await request(app, 'PATCH', `/api/models/${target.id}`, { rpmLimit: null })).status).toBe(200);
+
+ const row = getDb().prepare('SELECT rpm_limit FROM models WHERE id = ?').get(target.id) as { rpm_limit: number | null };
+ expect(row.rpm_limit).toBeNull();
+
+ // The null has to be stored too, or the next catalog sync would put the
+ // catalog's limit back.
+ const override = getDb().prepare('SELECT overrides_json FROM model_overrides WHERE platform = ? AND model_id = ?')
+ .get(target.platform, target.model_id) as { overrides_json: string };
+ expect(JSON.parse(override.overrides_json).rpmLimit).toBeNull();
+
+ getDb().prepare('UPDATE models SET rpm_limit = 99 WHERE id = ?').run(target.id);
+ applyAllModelOverrides(getDb());
+ expect((getDb().prepare('SELECT rpm_limit FROM models WHERE id = ?').get(target.id) as any).rpm_limit).toBeNull();
+ });
+
+ it('rejects an out-of-range intelligence rank (#551)', async () => {
+ const target = getDb().prepare(`
+ SELECT id FROM models WHERE platform = 'groq' AND key_id IS NULL ORDER BY id LIMIT 1
+ `).get() as { id: number };
+
+ expect((await request(app, 'PATCH', `/api/models/${target.id}`, { intelligenceRank: 0 })).status).toBe(400);
+ expect((await request(app, 'PATCH', `/api/models/${target.id}`, { speedRank: 1001 })).status).toBe(400);
+ expect((await request(app, 'PATCH', `/api/models/${target.id}`, { rpmLimit: 0 })).status).toBe(400);
+ });
+
it('deletes a catalog model with a tombstone', async () => {
const target = getDb().prepare(`
SELECT id, platform, model_id FROM models
diff --git a/server/src/routes/fallback.ts b/server/src/routes/fallback.ts
index 59f236d7..e0a3060a 100644
--- a/server/src/routes/fallback.ts
+++ b/server/src/routes/fallback.ts
@@ -13,6 +13,7 @@ import { parseBudget } from '../lib/budget.js';
import { getModelGroups } from '../services/model-groups.js';
import { getPenaltyInspector } from '../services/penalty-inspector.js';
import { getActiveProfileId } from '../services/profile-models.js';
+import { overriddenFieldNames } from '../services/model-state.js';
export const fallbackRouter = Router();
@@ -73,6 +74,7 @@ fallbackRouter.get('/', (_req: Request, res: Response) => {
m.monthly_token_budget, m.supports_vision, m.supports_tools,
m.key_id, ak.label AS key_label,
mo.overrides_json IS NOT NULL AS has_overrides,
+ mo.overrides_json,
ts.source AS tombstone_source, ts.reason AS tombstone_reason
FROM profile_models pm
JOIN models m ON m.id = pm.model_db_id
@@ -93,6 +95,7 @@ fallbackRouter.get('/', (_req: Request, res: Response) => {
m.monthly_token_budget, m.supports_vision, m.supports_tools,
m.key_id, ak.label AS key_label,
mo.overrides_json IS NOT NULL AS has_overrides,
+ mo.overrides_json,
ts.source AS tombstone_source, ts.reason AS tombstone_reason
FROM fallback_config fc
JOIN models m ON m.id = fc.model_db_id
@@ -166,6 +169,9 @@ fallbackRouter.get('/', (_req: Request, res: Response) => {
keyId: r.key_id ?? null,
keyLabel: r.key_label ?? null,
hasOverrides: Boolean(r.has_overrides),
+ // Which fields the local override actually replaces, so the model page
+ // can mark the individual inputs it edits (#551).
+ overrideFields: overriddenFieldNames(r.overrides_json),
// Why the switch is off: a model auto-disabled because the provider
// retired it upstream (410 / end of life, #634) is a different state from
// one the user turned off, and the dashboard says so. The reason is the
diff --git a/server/src/routes/models.ts b/server/src/routes/models.ts
index 862aaa77..cf8bd0d4 100644
--- a/server/src/routes/models.ts
+++ b/server/src/routes/models.ts
@@ -6,6 +6,7 @@ import { hasProvider } from '../providers/index.js';
import { deleteUnusedCustomEndpointKey } from '../lib/custom-provider-cleanup.js';
import {
isCatalogManagedModel,
+ overriddenFieldNames,
recordCatalogModelTombstone,
upsertModelOverrides,
type ModelOverridePatch,
@@ -200,7 +201,7 @@ modelsRouter.get('/', (_req: Request, res: Response) => {
const activeProfileId = getActiveProfileId(db);
const models = activeProfileId == null ? db.prepare(`
SELECT m.*, fc.priority, fc.enabled as fallback_enabled,
- mo.overrides_json IS NOT NULL AS has_overrides,
+ mo.overrides_json IS NOT NULL AS has_overrides, mo.overrides_json,
ak.label AS key_label
FROM models m
LEFT JOIN fallback_config fc ON fc.model_db_id = m.id
@@ -210,7 +211,7 @@ modelsRouter.get('/', (_req: Request, res: Response) => {
`).all() as any[] : db.prepare(`
SELECT m.*, COALESCE(pm.priority, fc.priority) AS priority,
COALESCE(pm.enabled, fc.enabled) AS fallback_enabled,
- mo.overrides_json IS NOT NULL AS has_overrides,
+ mo.overrides_json IS NOT NULL AS has_overrides, mo.overrides_json,
ak.label AS key_label
FROM models m
LEFT JOIN fallback_config fc ON fc.model_db_id = m.id
@@ -257,6 +258,7 @@ modelsRouter.get('/', (_req: Request, res: Response) => {
keyId: m.key_id ?? null,
keyLabel: m.key_label ?? null,
hasOverrides: Boolean(m.has_overrides),
+ overrideFields: overriddenFieldNames(m.overrides_json),
hasProvider: hasProvider(m.platform),
keyCount: keyCountMap.get(m.platform) ?? 0,
}));
diff --git a/server/src/services/model-state.ts b/server/src/services/model-state.ts
index cb2d8829..b52f55c7 100644
--- a/server/src/services/model-state.ts
+++ b/server/src/services/model-state.ts
@@ -61,6 +61,17 @@ function cleanPatch(patch: ModelOverridePatch): StoredOverrides {
return cleaned;
}
+/**
+ * The fields a stored overrides blob actually overrides, for callers that
+ * already selected `model_overrides.overrides_json` alongside the model row.
+ * The dashboard uses this to mark individual inputs as locally overridden
+ * instead of flagging the whole model (#551).
+ */
+export function overriddenFieldNames(overridesJson: string | null | undefined): Array<keyof ModelOverridePatch> {
+ const stored = parseOverrides(overridesJson ?? undefined);
+ return (Object.keys(stored) as Array<keyof ModelOverridePatch>).filter(key => key in OVERRIDE_COLUMNS);
+}
+
export function isCatalogManagedModel(row: { platform: string; key_id?: number | null; source?: string }): boolean {
// `source` is the authoritative provenance (models.source, 'catalog'|'user');
// callers that select it get an exact answer. The platform/key_id fallback