Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat: model benchmark rating radar with detail & compare modal (#17011)

YuTengjing995ea7dcdd21
diff --git a/locales/ar/components.json b/locales/ar/components.json
index 7301795bbfc..0f82f2270d8 100644
--- a/locales/ar/components.json
+++ b/locales/ar/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "مخرج",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "إنشاء الفيديو",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "مدخل الفيديو",
+ "ModelSwitchPanel.detail.rating": "المعايير",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "الوكالة",
+ "ModelSwitchPanel.detail.rating.dimension.design": "التصميم",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "الذكاء",
+ "ModelSwitchPanel.detail.rating.dimension.price": "السعر",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "السرعة",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "الكتابة",
"ModelSwitchPanel.detail.releasedAt": "تم الإصدار في {{date}}",
"ModelSwitchPanel.emptyModel": "لا يوجد نموذج مفعل. يرجى الذهاب إلى الإعدادات لتفعيله.",
"ModelSwitchPanel.emptyProvider": "لا يوجد مزود مفعل. يرجى الذهاب إلى الإعدادات لتفعيل أحدهم.",
diff --git a/locales/bg-BG/components.json b/locales/bg-BG/components.json
index a9a0320c3ce..7d68ea6d28b 100644
--- a/locales/bg-BG/components.json
+++ b/locales/bg-BG/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Изход",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Генериране на видео",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Видео вход",
+ "ModelSwitchPanel.detail.rating": "Бенчмаркове",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Агентност",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Дизайн",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Интелигентност",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Цена",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Скорост",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Писане",
"ModelSwitchPanel.detail.releasedAt": "Пуснат на {{date}}",
"ModelSwitchPanel.emptyModel": "Няма активиран модел. Моля, отидете в настройките, за да активирате.",
"ModelSwitchPanel.emptyProvider": "Няма активирани доставчици. Моля, отидете в настройките, за да активирате такъв.",
diff --git a/locales/de-DE/components.json b/locales/de-DE/components.json
index 4cd454e0b10..78351dd4810 100644
--- a/locales/de-DE/components.json
+++ b/locales/de-DE/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Ausgabe",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Videoerstellung",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Videoeingang",
+ "ModelSwitchPanel.detail.rating": "Benchmarks",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agentisch",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Design",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Intelligenz",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Preis",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Geschwindigkeit",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Schreiben",
"ModelSwitchPanel.detail.releasedAt": "Veröffentlicht am {{date}}",
"ModelSwitchPanel.emptyModel": "Kein Modell aktiviert. Bitte aktivieren Sie eines in den Einstellungen.",
"ModelSwitchPanel.emptyProvider": "Keine Anbieter aktiviert. Bitte aktivieren Sie einen in den Einstellungen.",
diff --git a/locales/en-US/components.json b/locales/en-US/components.json
index 60d5d8c16d8..ed4c4170462 100644
--- a/locales/en-US/components.json
+++ b/locales/en-US/components.json
@@ -161,6 +161,28 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Output",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Video Generation",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Video Input",
+ "ModelSwitchPanel.detail.rating": "Benchmarks",
+ "ModelSwitchPanel.detail.rating.clickHint": "Click to view details & compare",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agentic",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Design",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Intelligence",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Price",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Speed",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Writing",
+ "ModelSwitchPanel.detail.rating.modal.compare.add": "Compare",
+ "ModelSwitchPanel.detail.rating.modal.compare.limit": "Compare up to {{count}} models",
+ "ModelSwitchPanel.detail.rating.modal.rules.missing": "A greyed-out dimension means the model is not yet listed by the source or has too few samples — it does not mean a zero score.",
+ "ModelSwitchPanel.detail.rating.modal.rules.price": "Price uses the billed text-input rate — cheaper scores higher. Speed and price are normalized on a log scale to match human perception.",
+ "ModelSwitchPanel.detail.rating.modal.rules.relative": "Scores are relative within the currently rated model pool: the best model on each dimension scores 100, with a floor of 20. They are not absolute measures and shift as the pool updates.",
+ "ModelSwitchPanel.detail.rating.modal.rules.sources": "Intelligence, Agentic, Writing and Design come from public leaderboards (Artificial Analysis, LMArena, Design Arena); raw values are index points or Elo ratings.",
+ "ModelSwitchPanel.detail.rating.modal.rules.speed": "Speed is measured from real traffic on this platform: the median wall-time to finish a typical answer (time to first token + generation speed) over recent requests — lower is faster.",
+ "ModelSwitchPanel.detail.rating.modal.rules.title": "Scoring rules & notes",
+ "ModelSwitchPanel.detail.rating.modal.table.dimension": "Dimension",
+ "ModelSwitchPanel.detail.rating.modal.table.raw": "Raw value",
+ "ModelSwitchPanel.detail.rating.modal.table.score": "Score",
+ "ModelSwitchPanel.detail.rating.modal.table.source": "Source",
+ "ModelSwitchPanel.detail.rating.modal.table.updatedAt": "Updated",
+ "ModelSwitchPanel.detail.rating.modal.title": "Model Benchmarks",
"ModelSwitchPanel.detail.releasedAt": "Released {{date}}",
"ModelSwitchPanel.emptyModel": "No enabled model. Please go to settings to enable.",
"ModelSwitchPanel.emptyProvider": "No enabled providers. Please go to settings to enable one.",
diff --git a/locales/es-ES/components.json b/locales/es-ES/components.json
index 9867d2f1974..fcad6592f88 100644
--- a/locales/es-ES/components.json
+++ b/locales/es-ES/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Salida",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Generación de vídeo",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Entrada de video",
+ "ModelSwitchPanel.detail.rating": "Puntos de referencia",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agente",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Diseño",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Inteligencia",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Precio",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Velocidad",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Escritura",
"ModelSwitchPanel.detail.releasedAt": "Lanzado el {{date}}",
"ModelSwitchPanel.emptyModel": "No hay modelos habilitados. Ve a configuración para habilitar uno.",
"ModelSwitchPanel.emptyProvider": "No hay proveedores habilitados. Ve a configuración para habilitar uno.",
diff --git a/locales/fa-IR/components.json b/locales/fa-IR/components.json
index 9690a5f5182..3938ac8265b 100644
--- a/locales/fa-IR/components.json
+++ b/locales/fa-IR/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "خروجی",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "تولید ویدیو",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "ورودی ویدئو",
+ "ModelSwitchPanel.detail.rating": "معیارها",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "عاملیت",
+ "ModelSwitchPanel.detail.rating.dimension.design": "طراحی",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "هوش",
+ "ModelSwitchPanel.detail.rating.dimension.price": "قیمت",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "سرعت",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "نوشتن",
"ModelSwitchPanel.detail.releasedAt": "منتشر شده در {{date}}",
"ModelSwitchPanel.emptyModel": "مدلی فعال نیست. لطفاً به تنظیمات بروید و فعال کنید.",
"ModelSwitchPanel.emptyProvider": "ارائه‌دهنده‌ای فعال نیست. لطفاً به تنظیمات بروید و یکی را فعال کنید.",
diff --git a/locales/fr-FR/components.json b/locales/fr-FR/components.json
index c86f68aefb0..6893591a0bc 100644
--- a/locales/fr-FR/components.json
+++ b/locales/fr-FR/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Sortie",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Génération de vidéo",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Entrée vidéo",
+ "ModelSwitchPanel.detail.rating": "Benchmarks",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agentique",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Conception",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Intelligence",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Prix",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Vitesse",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Écriture",
"ModelSwitchPanel.detail.releasedAt": "Publié le {{date}}",
"ModelSwitchPanel.emptyModel": "Aucun modèle activé. Veuillez aller dans les paramètres pour en activer un.",
"ModelSwitchPanel.emptyProvider": "Aucun fournisseur activé. Veuillez aller dans les paramètres pour en activer un.",
diff --git a/locales/it-IT/components.json b/locales/it-IT/components.json
index 55ae26d8f21..33c83ff84b4 100644
--- a/locales/it-IT/components.json
+++ b/locales/it-IT/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Output",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Generazione Video",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Ingresso video",
+ "ModelSwitchPanel.detail.rating": "Benchmark",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agentico",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Design",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Intelligenza",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Prezzo",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Velocità",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Scrittura",
"ModelSwitchPanel.detail.releasedAt": "Rilasciato il {{date}}",
"ModelSwitchPanel.emptyModel": "Nessun modello abilitato. Vai alle impostazioni per abilitarne uno.",
"ModelSwitchPanel.emptyProvider": "Nessun provider abilitato. Vai alle impostazioni per abilitarne uno.",
diff --git a/locales/ja-JP/components.json b/locales/ja-JP/components.json
index 4e824bce058..e2d2137bb90 100644
--- a/locales/ja-JP/components.json
+++ b/locales/ja-JP/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "出力",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "ビデオ生成",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "ビデオ入力",
+ "ModelSwitchPanel.detail.rating": "ベンチマーク",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "主体性",
+ "ModelSwitchPanel.detail.rating.dimension.design": "デザイン",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "知能",
+ "ModelSwitchPanel.detail.rating.dimension.price": "価格",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "速度",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "執筆",
"ModelSwitchPanel.detail.releasedAt": "{{date}} にリリース",
"ModelSwitchPanel.emptyModel": "有効なモデルがありません。設定に移動して有効にしてください。",
"ModelSwitchPanel.emptyProvider": "有効なサービスプロバイダーがありません。設定に移動して有効にしてください。",
diff --git a/locales/ko-KR/components.json b/locales/ko-KR/components.json
index f8906f789b7..9d6dcbd0934 100644
--- a/locales/ko-KR/components.json
+++ b/locales/ko-KR/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "출력",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "비디오 생성",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "비디오 입력",
+ "ModelSwitchPanel.detail.rating": "벤치마크",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "능동성",
+ "ModelSwitchPanel.detail.rating.dimension.design": "디자인",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "지능",
+ "ModelSwitchPanel.detail.rating.dimension.price": "가격",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "속도",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "글쓰기",
"ModelSwitchPanel.detail.releasedAt": "{{date}} 출시",
"ModelSwitchPanel.emptyModel": "활성화된 모델이 없습니다. 설정에서 활성화하세요.",
"ModelSwitchPanel.emptyProvider": "활성화된 서비스 제공자가 없습니다. 설정에서 활성화하세요.",
diff --git a/locales/nl-NL/components.json b/locales/nl-NL/components.json
index aaeef0b9eb5..4acfbf74750 100644
--- a/locales/nl-NL/components.json
+++ b/locales/nl-NL/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Uitvoer",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Videogeneratie",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Video-ingang",
+ "ModelSwitchPanel.detail.rating": "Benchmarks",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agentisch",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Ontwerp",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Intelligentie",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Prijs",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Snelheid",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Schrijven",
"ModelSwitchPanel.detail.releasedAt": "Uitgebracht op {{date}}",
"ModelSwitchPanel.emptyModel": "Geen ingeschakeld model. Ga naar instellingen om er een in te schakelen.",
"ModelSwitchPanel.emptyProvider": "Geen ingeschakelde providers. Ga naar instellingen om er een in te schakelen.",
diff --git a/locales/pl-PL/components.json b/locales/pl-PL/components.json
index 0991b56744b..73a05dafdb0 100644
--- a/locales/pl-PL/components.json
+++ b/locales/pl-PL/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Wyjście",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Generowanie wideo",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Wejście wideo",
+ "ModelSwitchPanel.detail.rating": "Wyniki testów",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agentura",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Projekt",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Inteligencja",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Cena",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Szybkość",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Pisanie",
"ModelSwitchPanel.detail.releasedAt": "Wydano {{date}}",
"ModelSwitchPanel.emptyModel": "Brak włączonych modeli. Przejdź do ustawień, aby je włączyć.",
"ModelSwitchPanel.emptyProvider": "Brak włączonych dostawców. Przejdź do ustawień, aby włączyć jednego.",
diff --git a/locales/pt-BR/components.json b/locales/pt-BR/components.json
index f0658697014..bb43e00c963 100644
--- a/locales/pt-BR/components.json
+++ b/locales/pt-BR/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Saída",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Geração de Vídeo",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Entrada de Vídeo",
+ "ModelSwitchPanel.detail.rating": "Benchmarks",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agente",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Design",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Inteligência",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Preço",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Velocidade",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Escrita",
"ModelSwitchPanel.detail.releasedAt": "Lançado em {{date}}",
"ModelSwitchPanel.emptyModel": "Nenhum modelo ativado. Vá para as configurações para ativar.",
"ModelSwitchPanel.emptyProvider": "Nenhum provedor ativado. Vá para as configurações para ativar um.",
diff --git a/locales/ru-RU/components.json b/locales/ru-RU/components.json
index 077a9c6a9b2..8555209c617 100644
--- a/locales/ru-RU/components.json
+++ b/locales/ru-RU/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Вывод",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Генерация видео",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Видеовход",
+ "ModelSwitchPanel.detail.rating": "Бенчмарки",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Агентность",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Дизайн",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Интеллект",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Цена",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Скорость",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Письмо",
"ModelSwitchPanel.detail.releasedAt": "Выпущено {{date}}",
"ModelSwitchPanel.emptyModel": "Нет включённых моделей. Перейдите в настройки, чтобы включить.",
"ModelSwitchPanel.emptyProvider": "Нет включённых провайдеров. Перейдите в настройки, чтобы включить одного из них.",
diff --git a/locales/tr-TR/components.json b/locales/tr-TR/components.json
index 42ef1fa0106..41b88d0008c 100644
--- a/locales/tr-TR/components.json
+++ b/locales/tr-TR/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Çıktı",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Video Oluşturma",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Video Girişi",
+ "ModelSwitchPanel.detail.rating": "Karşılaştırmalar",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Etkileyici",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Tasarım",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Zeka",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Fiyat",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Hız",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Yazma",
"ModelSwitchPanel.detail.releasedAt": "{{date}} tarihinde yayınlandı",
"ModelSwitchPanel.emptyModel": "Etkinleştirilmiş model yok. Lütfen ayarlardan etkinleştirin.",
"ModelSwitchPanel.emptyProvider": "Etkinleştirilmiş sağlayıcı yok. Lütfen ayarlardan birini etkinleştirin.",
diff --git a/locales/vi-VN/components.json b/locales/vi-VN/components.json
index 1c2a9281bc5..6f4153930c7 100644
--- a/locales/vi-VN/components.json
+++ b/locales/vi-VN/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "Đầu ra",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "Tạo Video",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "Đầu vào video",
+ "ModelSwitchPanel.detail.rating": "Đánh giá",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Tự chủ",
+ "ModelSwitchPanel.detail.rating.dimension.design": "Thiết kế",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "Trí tuệ",
+ "ModelSwitchPanel.detail.rating.dimension.price": "Giá cả",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "Tốc độ",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "Viết",
"ModelSwitchPanel.detail.releasedAt": "Phát hành vào {{date}}",
"ModelSwitchPanel.emptyModel": "Không có mô hình nào được bật. Vui lòng vào cài đặt để bật.",
"ModelSwitchPanel.emptyProvider": "Không có nhà cung cấp nào được bật. Vui lòng vào cài đặt để bật.",
diff --git a/locales/zh-CN/components.json b/locales/zh-CN/components.json
index 10891c08f32..d9bd2e6887b 100644
--- a/locales/zh-CN/components.json
+++ b/locales/zh-CN/components.json
@@ -161,6 +161,28 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "输出",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "视频生成",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "视频输入",
+ "ModelSwitchPanel.detail.rating": "能力测评",
+ "ModelSwitchPanel.detail.rating.clickHint": "点击查看详情与对比",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "Agentic",
+ "ModelSwitchPanel.detail.rating.dimension.design": "设计",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "智力",
+ "ModelSwitchPanel.detail.rating.dimension.price": "价格",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "速度",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "写作",
+ "ModelSwitchPanel.detail.rating.modal.compare.add": "对比",
+ "ModelSwitchPanel.detail.rating.modal.compare.limit": "最多对比 {{count}} 个模型",
+ "ModelSwitchPanel.detail.rating.modal.rules.missing": "灰色维度表示该模型尚未被数据源收录或样本不足,并不代表 0 分。",
+ "ModelSwitchPanel.detail.rating.modal.rules.price": "价格取实际计费的文本输入单价,越便宜得分越高;速度与价格按对数尺度归一化,更贴近人的感知。",
+ "ModelSwitchPanel.detail.rating.modal.rules.relative": "分数为当前模型池内的相对值:每个维度池内最强的模型记 100 分,下限 20 分;分数不代表绝对能力,且会随模型池更新而变化。",
+ "ModelSwitchPanel.detail.rating.modal.rules.sources": "智力、Agentic、写作、设计来自公开榜单(Artificial Analysis、LMArena、Design Arena),原始值为指数或 Elo 分。",
+ "ModelSwitchPanel.detail.rating.modal.rules.speed": "速度基于本平台真实流量实测:最近一段时间内完成一段典型回答的中位耗时(首字延迟 + 生成速度),耗时越短越快。",
+ "ModelSwitchPanel.detail.rating.modal.rules.title": "评分规则与说明",
+ "ModelSwitchPanel.detail.rating.modal.table.dimension": "维度",
+ "ModelSwitchPanel.detail.rating.modal.table.raw": "原始值",
+ "ModelSwitchPanel.detail.rating.modal.table.score": "分数",
+ "ModelSwitchPanel.detail.rating.modal.table.source": "来源",
+ "ModelSwitchPanel.detail.rating.modal.table.updatedAt": "更新于",
+ "ModelSwitchPanel.detail.rating.modal.title": "模型评测",
"ModelSwitchPanel.detail.releasedAt": "发布于 {{date}}",
"ModelSwitchPanel.emptyModel": "还没有启用模型。去设置启用后再试",
"ModelSwitchPanel.emptyProvider": "还没有启用模型服务商。去设置启用后再试",
diff --git a/locales/zh-TW/components.json b/locales/zh-TW/components.json
index e5755bbdaef..188e991ccf2 100644
--- a/locales/zh-TW/components.json
+++ b/locales/zh-TW/components.json
@@ -161,6 +161,13 @@
"ModelSwitchPanel.detail.pricing.unit.textOutput": "輸出",
"ModelSwitchPanel.detail.pricing.unit.videoGeneration": "影片生成",
"ModelSwitchPanel.detail.pricing.unit.videoInput": "視頻輸入",
+ "ModelSwitchPanel.detail.rating": "基準",
+ "ModelSwitchPanel.detail.rating.dimension.agentic": "自主性",
+ "ModelSwitchPanel.detail.rating.dimension.design": "設計",
+ "ModelSwitchPanel.detail.rating.dimension.intelligence": "智慧",
+ "ModelSwitchPanel.detail.rating.dimension.price": "價格",
+ "ModelSwitchPanel.detail.rating.dimension.speed": "速度",
+ "ModelSwitchPanel.detail.rating.dimension.writing": "寫作",
"ModelSwitchPanel.detail.releasedAt": "發布於 {{date}}",
"ModelSwitchPanel.emptyModel": "沒有啟用的模型,請前往設定開啟",
"ModelSwitchPanel.emptyProvider": "沒有啟用的服務商,請前往設定開啟",
diff --git a/packages/locales/src/default/components.ts b/packages/locales/src/default/components.ts
index f5ecdbbf17d..0cd2a8bd9dd 100644
--- a/packages/locales/src/default/components.ts
+++ b/packages/locales/src/default/components.ts
@@ -181,6 +181,33 @@ export default {
'ModelSwitchPanel.detail.pricing.unit.textOutput': 'Output',
'ModelSwitchPanel.detail.pricing.unit.videoGeneration': 'Video Generation',
'ModelSwitchPanel.detail.pricing.unit.videoInput': 'Video Input',
+ 'ModelSwitchPanel.detail.rating': 'Benchmarks',
+ 'ModelSwitchPanel.detail.rating.clickHint': 'Click to view details & compare',
+ 'ModelSwitchPanel.detail.rating.dimension.agentic': 'Agentic',
+ 'ModelSwitchPanel.detail.rating.dimension.design': 'Design',
+ 'ModelSwitchPanel.detail.rating.dimension.intelligence': 'Intelligence',
+ 'ModelSwitchPanel.detail.rating.dimension.price': 'Price',
+ 'ModelSwitchPanel.detail.rating.dimension.speed': 'Speed',
+ 'ModelSwitchPanel.detail.rating.dimension.writing': 'Writing',
+ 'ModelSwitchPanel.detail.rating.modal.compare.add': 'Compare',
+ 'ModelSwitchPanel.detail.rating.modal.compare.limit': 'Compare up to {{count}} models',
+ 'ModelSwitchPanel.detail.rating.modal.rules.missing':
+ 'A greyed-out dimension means the model is not yet listed by the source or has too few samples — it does not mean a zero score.',
+ 'ModelSwitchPanel.detail.rating.modal.rules.price':
+ 'Price uses the billed text-input rate — cheaper scores higher. Speed and price are normalized on a log scale to match human perception.',
+ 'ModelSwitchPanel.detail.rating.modal.rules.relative':
+ 'Scores are relative within the currently rated model pool: the best model on each dimension scores 100, with a floor of 20. They are not absolute measures and shift as the pool updates.',
+ 'ModelSwitchPanel.detail.rating.modal.rules.sources':
+ 'Intelligence, Agentic, Writing and Design come from public leaderboards (Artificial Analysis, LMArena, Design Arena); raw values are index points or Elo ratings.',
+ 'ModelSwitchPanel.detail.rating.modal.rules.speed':
+ 'Speed is measured from real traffic on this platform: the median wall-time to finish a typical answer (time to first token + generation speed) over recent requests — lower is faster.',
+ 'ModelSwitchPanel.detail.rating.modal.rules.title': 'Scoring rules & notes',
+ 'ModelSwitchPanel.detail.rating.modal.table.dimension': 'Dimension',
+ 'ModelSwitchPanel.detail.rating.modal.table.raw': 'Raw value',
+ 'ModelSwitchPanel.detail.rating.modal.table.score': 'Score',
+ 'ModelSwitchPanel.detail.rating.modal.table.source': 'Source',
+ 'ModelSwitchPanel.detail.rating.modal.table.updatedAt': 'Updated',
+ 'ModelSwitchPanel.detail.rating.modal.title': 'Model Benchmarks',
'ModelSwitchPanel.detail.releasedAt': 'Released {{date}}',
'ModelSwitchPanel.emptyModel': 'No enabled model. Please go to settings to enable.',
'ModelSwitchPanel.emptyProvider': 'No enabled providers. Please go to settings to enable one.',
diff --git a/packages/model-bank/src/aiModels/anthropic.ts b/packages/model-bank/src/aiModels/anthropic.ts
index 05b3d37c8e3..7a580eebbe4 100644
--- a/packages/model-bank/src/aiModels/anthropic.ts
+++ b/packages/model-bank/src/aiModels/anthropic.ts
@@ -11,7 +11,7 @@ const anthropicChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_000_000,
description:
- "Claude Fable 5 is Anthropic's most capable model — a new tier above Opus for the most demanding reasoning and long-horizon agentic work.",
+ "Claude Fable 5 is Anthropic's strongest model — a new tier above Opus for the most demanding reasoning, agentic work, and coding, at a premium price.",
displayName: 'Claude Fable 5',
enabled: true,
family: 'claude-mythos',
@@ -82,7 +82,7 @@ const anthropicChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_000_000,
description:
- "Claude Opus 4.8 is Anthropic's most capable model, building on Opus 4.7 with improvements across reasoning, agentic coding, and tool use.",
+ "Claude Opus 4.8 is Anthropic's flagship Opus model, building on Opus 4.7 with improvements across reasoning, agentic coding, and tool use.",
displayName: 'Claude Opus 4.8',
enabled: true,
family: 'claude-opus',
diff --git a/packages/model-bank/src/aiModels/deepseek.ts b/packages/model-bank/src/aiModels/deepseek.ts
index af8e7c0775d..a0350a50017 100644
--- a/packages/model-bank/src/aiModels/deepseek.ts
+++ b/packages/model-bank/src/aiModels/deepseek.ts
@@ -10,7 +10,7 @@ const deepseekChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_048_576,
description:
- 'DeepSeek V4 Flash is DeepSeek’s fast 1M-context flagship model, supporting both non-thinking and thinking modes with strong agent capabilities.',
+ 'DeepSeek V4 Flash is the fast, cost-efficient member of the V4 family with a 1M context window and hybrid thinking — one of the cheapest capable models available.',
displayName: 'DeepSeek V4 Flash',
enabled: true,
family: 'deepseek',
@@ -40,7 +40,7 @@ const deepseekChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_048_576,
description:
- 'DeepSeek V4 Pro is DeepSeek’s most capable 1M-context flagship model, supporting both non-thinking and thinking modes for advanced reasoning and tool use.',
+ 'DeepSeek V4 Pro is the flagship of the V4 family, built for high-intensity reasoning and agentic workflows with a 1M context window — excellent Chinese writing and outstanding value for money.',
displayName: 'DeepSeek V4 Pro',
enabled: true,
family: 'deepseek',
diff --git a/packages/model-bank/src/aiModels/minimax.ts b/packages/model-bank/src/aiModels/minimax.ts
index 22be9d18ef5..9afcb83bf59 100644
--- a/packages/model-bank/src/aiModels/minimax.ts
+++ b/packages/model-bank/src/aiModels/minimax.ts
@@ -14,7 +14,7 @@ const minimaxChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_000_000,
description:
- 'Frontier coding model with native multimodal input, 1M context, and strong agent capabilities.',
+ "MiniMax M3 is MiniMax's first multimodal model, with native image and video understanding and strong coding and agentic capabilities.",
displayName: 'MiniMax M3',
enabled: true,
family: 'minimax',
diff --git a/packages/model-bank/src/aiModels/openai.ts b/packages/model-bank/src/aiModels/openai.ts
index a89fb598ace..193e0d9dfb5 100644
--- a/packages/model-bank/src/aiModels/openai.ts
+++ b/packages/model-bank/src/aiModels/openai.ts
@@ -46,7 +46,7 @@ export const openaiChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_050_000,
description:
- "GPT-5.6 Sol is OpenAI's frontier model for complex reasoning, coding, and long-horizon agentic work. The gpt-5.6 alias routes to Sol.",
+ "GPT-5.6 Sol is OpenAI's latest flagship and most capable model, the top choice in the GPT family for coding and agentic work.",
displayName: 'GPT-5.6 Sol',
enabled: true,
family: 'gpt',
@@ -240,7 +240,8 @@ export const openaiChatModels: AIChatModelCard[] = [
vision: true,
},
contextWindowTokens: 1_050_000,
- description: 'GPT-5.5 is our newest frontier model for the most complex professional work.',
+ description:
+ "GPT-5.5 is OpenAI's previous-generation frontier model for complex professional work.",
displayName: 'GPT-5.5',
enabled: true,
family: 'gpt',
diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen.ts
index 26bb471f90e..4ba04ce8d1f 100644
--- a/packages/model-bank/src/aiModels/qwen.ts
+++ b/packages/model-bank/src/aiModels/qwen.ts
@@ -230,7 +230,7 @@ const qwenChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_000_000,
description:
- 'DeepSeek V4 Flash is the cost-efficient member of the V4 family with a 1M context window and hybrid thinking. Thinking mode is on by default and can be toggled via the `thinking` parameter; non-thinking mode is optimized for latency-sensitive workflows.',
+ 'DeepSeek V4 Flash is the fast, cost-efficient member of the V4 family with a 1M context window and hybrid thinking — one of the cheapest capable models available.',
displayName: 'DeepSeek V4 Flash',
family: 'deepseek',
generation: 'deepseek-v4',
@@ -257,7 +257,7 @@ const qwenChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_000_000,
description:
- 'DeepSeek V4 Pro is the flagship of the V4 family, optimized for high-intensity reasoning, agentic workflows, and long-horizon planning. Thinking mode is on by default and can be toggled via the `thinking` parameter.',
+ 'DeepSeek V4 Pro is the flagship of the V4 family, built for high-intensity reasoning and agentic workflows with a 1M context window — excellent Chinese writing and outstanding value for money.',
displayName: 'DeepSeek V4 Pro',
family: 'deepseek',
generation: 'deepseek-v4',
diff --git a/packages/model-bank/src/aiModels/xai.ts b/packages/model-bank/src/aiModels/xai.ts
index 7f47280193c..e348c896bb9 100644
--- a/packages/model-bank/src/aiModels/xai.ts
+++ b/packages/model-bank/src/aiModels/xai.ts
@@ -12,7 +12,7 @@ const xaiChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 500_000,
description:
- "SpaceXAI's flagship model for coding, agentic tasks, and knowledge work — configurable reasoning (low/medium/high, always on).",
+ "SpaceXAI's flagship model for agentic tasks and knowledge work — remarkably fast, with coding ability on par with Claude Opus.",
displayName: 'Grok 4.5',
enabled: true,
family: 'grok',
diff --git a/packages/model-bank/src/types/aiModel.ts b/packages/model-bank/src/types/aiModel.ts
index 6253d30a0dc..70f16326ed0 100644
--- a/packages/model-bank/src/types/aiModel.ts
+++ b/packages/model-bank/src/types/aiModel.ts
@@ -228,6 +228,44 @@ export interface Pricing {
units: PricingUnit[];
}
+/**
+ * Where a benchmark dimension's raw value comes from. `lobehub` marks values
+ * derived from our own data (e.g. the price axis) rather than an external board.
+ */
+export type ModelRatingSource = 'artificial-analysis' | 'design-arena' | 'lmarena' | 'lobehub';
+
+export interface ModelBenchmarkScore {
+ /**
+ * raw value from the source platform (index points / Elo / tokens per second /
+ * credits per million tokens), kept for tooltips and offline re-normalization
+ */
+ raw?: number;
+ /**
+ * normalized 0-100 score; semantics are pool-relative (the strongest model in
+ * the rated pool scores 100 on that dimension), not an absolute capability value
+ */
+ score: number;
+ source: ModelRatingSource;
+ /** click-through target showing the source leaderboard */
+ sourceUrl: string;
+ /** date the raw value was collected (YYYY-MM-DD) */
+ updatedAt: string;
+}
+
+/**
+ * Per-dimension benchmark ratings rendered as a radar chart. Every dimension is
+ * optional — external leaderboards lag behind new models, so the UI must handle
+ * missing dimensions (grey them out / skip the radar below a coverage threshold).
+ */
+export interface ModelRating {
+ agentic?: ModelBenchmarkScore;
+ design?: ModelBenchmarkScore;
+ intelligence?: ModelBenchmarkScore;
+ price?: ModelBenchmarkScore;
+ speed?: ModelBenchmarkScore;
+ writing?: ModelBenchmarkScore;
+}
+
export interface AIBaseModelCard {
/**
* the context window (or input + output tokens limit)
diff --git a/src/business/client/hooks/useBusinessModelRating.ts b/src/business/client/hooks/useBusinessModelRating.ts
new file mode 100644
index 00000000000..5fecf4d186e
--- /dev/null
+++ b/src/business/client/hooks/useBusinessModelRating.ts
@@ -0,0 +1,12 @@
+import type { ModelRating } from 'model-bank';
+
+export interface BusinessModelRatingParams {
+ model?: string;
+ provider?: string;
+}
+
+export const applyBusinessModelRating = (
+ _params: BusinessModelRatingParams,
+): ModelRating | undefined => undefined;
+
+export const useBusinessModelRating = () => applyBusinessModelRating;
diff --git a/src/features/ModelSwitchPanel/components/BenchmarkModal/CompareRadar.tsx b/src/features/ModelSwitchPanel/components/BenchmarkModal/CompareRadar.tsx
new file mode 100644
index 00000000000..1cc42bdf275
--- /dev/null
+++ b/src/features/ModelSwitchPanel/components/BenchmarkModal/CompareRadar.tsx
@@ -0,0 +1,193 @@
+import { createStaticStyles } from 'antd-style';
+import type { FC } from 'react';
+import { memo } from 'react';
+
+/**
+ * Slot colors for compared models, assigned by selection order. Hardcoded hex
+ * (matching the section-bar colors in ModelDetailPanel) so the polygons stay
+ * distinguishable regardless of the user's primary theme color.
+ */
+export const COMPARE_SERIES_COLORS = ['#1677ff', '#fa8c16', '#13c2c2', '#eb2f96'] as const;
+
+export const MAX_COMPARE_MODELS = COMPARE_SERIES_COLORS.length;
+
+export interface CompareRadarDimension {
+ key: string;
+ label: string;
+}
+
+export interface CompareRadarSeries {
+ color: string;
+ id: string;
+ /** aligned with the dimensions array; undefined = no data (vertex omitted) */
+ scores: (number | undefined)[];
+}
+
+const styles = createStaticStyles(({ css, cssVar }) => ({
+ axis: css`
+ stroke: ${cssVar.colorBorderSecondary};
+ stroke-width: 1;
+ `,
+ axisMissing: css`
+ stroke: ${cssVar.colorBorderSecondary};
+ stroke-dasharray: 3 3;
+ stroke-width: 1;
+ `,
+ container: css`
+ display: block;
+ margin-inline: auto;
+ `,
+ labelMissing: css`
+ font-size: 12px;
+ fill: ${cssVar.colorTextQuaternary};
+ `,
+ labelName: css`
+ font-size: 12px;
+ fill: ${cssVar.colorTextSecondary};
+ `,
+ labelScore: css`
+ font-size: 12px;
+ font-weight: 600;
+ fill: ${cssVar.colorText};
+ `,
+ ring: css`
+ fill: none;
+ stroke: ${cssVar.colorBorderSecondary};
+ stroke-width: 1;
+ `,
+}));
+
+const WIDTH = 400;
+const HEIGHT = 300;
+const CX = WIDTH / 2;
+const CY = HEIGHT / 2;
+const RADIUS = 96;
+const LABEL_RADIUS = RADIUS + 18;
+const RING_LEVELS = [0.25, 0.5, 0.75, 1];
+
+const pointAt = (index: number, total: number, ratio: number): [number, number] => {
+ const angle = ((-90 + (360 / total) * index) * Math.PI) / 180;
+
+ return [CX + RADIUS * ratio * Math.cos(angle), CY + RADIUS * ratio * Math.sin(angle)];
+};
+
+const toPoints = (coords: [number, number][]) =>
+ coords.map(([x, y]) => `${x.toFixed(2)},${y.toFixed(2)}`).join(' ');
+
+interface CompareRadarProps {
+ dimensions: CompareRadarDimension[];
+ series: CompareRadarSeries[];
+}
+
+/**
+ * Multi-series variant of ModelRatingRadar for the benchmark modal: overlays up
+ * to MAX_COMPARE_MODELS polygons. With a single series the vertex labels carry
+ * the scores; with more, scores move to the table below to avoid clutter.
+ */
+const CompareRadar: FC<CompareRadarProps> = memo(({ dimensions, series }) => {
+ const total = dimensions.length;
+ const single = series.length === 1;
+
+ return (
+ <svg
+ className={styles.container}
+ height={HEIGHT}
+ role={'img'}
+ viewBox={`0 0 ${WIDTH} ${HEIGHT}`}
+ width={WIDTH}
+ >
+ {RING_LEVELS.map((level) => (
+ <polygon
+ className={styles.ring}
+ key={level}
+ points={toPoints(dimensions.map((_, i) => pointAt(i, total, level)))}
+ />
+ ))}
+ {dimensions.map((dimension, i) => {
+ const [x, y] = pointAt(i, total, 1);
+ const missing = series.every((s) => s.scores[i] === undefined);
+
+ return (
+ <line
+ className={missing ? styles.axisMissing : styles.axis}
+ key={dimension.key}
+ x1={CX}
+ x2={x}
+ y1={CY}
+ y2={y}
+ />
+ );
+ })}
+ {series.map((s) => (
+ <g key={s.id}>
+ {/* connect scored vertices only — a missing dimension at the center would read as a real 0 */}
+ <polygon
+ fill={s.color}
+ fillOpacity={0.12}
+ stroke={s.color}
+ strokeWidth={1.5}
+ points={toPoints(
+ s.scores.flatMap((score, i) =>
+ score === undefined ? [] : [pointAt(i, total, score / 100)],
+ ),
+ )}
+ />
+ {s.scores.map((score, i) => {
+ if (score === undefined) return null;
+ const [x, y] = pointAt(i, total, score / 100);
+
+ return <circle cx={x} cy={y} fill={s.color} key={dimensions[i].key} r={3} />;
+ })}
+ </g>
+ ))}
+ {dimensions.map((dimension, i) => {
+ const angle = ((-90 + (360 / total) * i) * Math.PI) / 180;
+ const x = CX + LABEL_RADIUS * Math.cos(angle);
+ const y = CY + LABEL_RADIUS * Math.sin(angle);
+ const cos = Math.cos(angle);
+ const sin = Math.sin(angle);
+ const anchor = cos > 0.3 ? 'start' : cos < -0.3 ? 'end' : 'middle';
+ const missing = series.every((s) => s.scores[i] === undefined);
+ // single series shows a two-line label block (name + score) like the small radar
+ const baseY = single
+ ? sin < -0.3
+ ? y - 16
+ : sin > 0.3
+ ? y + 10
+ : y - 3
+ : sin < -0.3
+ ? y - 6
+ : sin > 0.3
+ ? y + 14
+ : y + 4;
+
+ return (
+ <g key={dimension.key}>
+ <text
+ className={missing ? styles.labelMissing : styles.labelName}
+ textAnchor={anchor}
+ x={x}
+ y={baseY}
+ >
+ {dimension.label}
+ </text>
+ {single && (
+ <text
+ className={missing ? styles.labelMissing : styles.labelScore}
+ textAnchor={anchor}
+ x={x}
+ y={baseY + 15}
+ >
+ {series[0].scores[i] ?? '-'}
+ </text>
+ )}
+ </g>
+ );
+ })}
+ </svg>
+ );
+});
+
+CompareRadar.displayName = 'CompareRadar';
+
+export default CompareRadar;
diff --git a/src/features/ModelSwitchPanel/components/BenchmarkModal/index.test.tsx b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.test.tsx
new file mode 100644
index 00000000000..54d8074300f
--- /dev/null
+++ b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.test.tsx
@@ -0,0 +1,232 @@
+/**
+ * @vitest-environment happy-dom
+ */
+import { fireEvent, render, screen } from '@testing-library/react';
+import type { ModelRating } from 'model-bank';
+import type { ReactNode } from 'react';
+import { describe, expect, it, vi } from 'vitest';
+
+import BenchmarkModalContent from './index';
+
+vi.mock('antd-style', () => ({
+ createStaticStyles: () =>
+ new Proxy({}, { get: (_target, prop: string) => prop }) as Record<string, string>,
+}));
+
+vi.mock('@lobehub/ui', () => ({
+ Flexbox: ({ children, ...props }: { children?: ReactNode }) => {
+ const {
+ horizontal: _h,
+ align: _a,
+ justify: _j,
+ gap: _g,
+ paddingBlock: _p,
+ ...rest
+ } = props as any;
+
+ return <div {...rest}>{children}</div>;
+ },
+ Icon: () => <span />,
+ Tooltip: ({ children, title }: { children: ReactNode; title?: ReactNode }) => (
+ <span>
+ <span data-testid={'tooltip'}>{title}</span>
+ {children}
+ </span>
+ ),
+}));
+
+interface MockMenuItem {
+ key: string;
+ label: ReactNode;
+ onClick: () => void;
+}
+
+vi.mock('@lobehub/ui/base-ui', () => ({
+ createModal: vi.fn(),
+ DropdownMenu: ({ children, items }: { children: ReactNode; items: MockMenuItem[] }) => (
+ <div>
+ {children}
+ {items.map((item) => (
+ <button key={item.key} type={'button'} onClick={item.onClick}>
+ {item.label}
+ </button>
+ ))}
+ </div>
+ ),
+}));
+
+// hoisted so the vi.mock factories below can reference it safely
+const { translate } = vi.hoisted(() => {
+ const translations: Record<string, string> = {
+ 'ModelSwitchPanel.detail.rating.dimension.agentic': 'Agentic',
+ 'ModelSwitchPanel.detail.rating.dimension.design': 'Design',
+ 'ModelSwitchPanel.detail.rating.dimension.intelligence': 'Intelligence',
+ 'ModelSwitchPanel.detail.rating.dimension.price': 'Price',
+ 'ModelSwitchPanel.detail.rating.dimension.speed': 'Speed',
+ 'ModelSwitchPanel.detail.rating.dimension.writing': 'Writing',
+ 'ModelSwitchPanel.detail.rating.modal.compare.add': 'Compare',
+ 'ModelSwitchPanel.detail.rating.modal.compare.limit': 'Compare up to {{count}} models',
+ 'ModelSwitchPanel.detail.rating.modal.rules.missing': 'rule missing',
+ 'ModelSwitchPanel.detail.rating.modal.rules.price': 'rule price',
+ 'ModelSwitchPanel.detail.rating.modal.rules.relative': 'rule relative',
+ 'ModelSwitchPanel.detail.rating.modal.rules.sources': 'rule sources',
+ 'ModelSwitchPanel.detail.rating.modal.rules.speed': 'rule speed',
+ 'ModelSwitchPanel.detail.rating.modal.rules.title': 'Scoring rules & notes',
+ 'ModelSwitchPanel.detail.rating.modal.table.dimension': 'Dimension',
+ 'ModelSwitchPanel.detail.rating.modal.table.raw': 'Raw value',
+ 'ModelSwitchPanel.detail.rating.modal.table.score': 'Score',
+ 'ModelSwitchPanel.detail.rating.modal.table.source': 'Source',
+ 'ModelSwitchPanel.detail.rating.modal.table.updatedAt': 'Updated',
+ };
+
+ return {
+ translate: (key: string, options?: Record<string, unknown>) => {
+ const template = translations[key] ?? key;
+
+ return template.replaceAll(/\{\{(\w+)\}\}/g, (_, name) => String(options?.[name] ?? ''));
+ },
+ };
+});
+
+vi.mock('i18next', () => ({ t: translate }));
+
+vi.mock('react-i18next', () => ({
+ useTranslation: () => ({ t: translate }),
+}));
+
+const score = (
+ value: number,
+ source: ModelRating['intelligence'] extends infer T
+ ? T extends { source: infer S }
+ ? S
+ : never
+ : never = 'artificial-analysis',
+): NonNullable<ModelRating['intelligence']> => ({
+ raw: value * 10,
+ score: value,
+ source,
+ sourceUrl: 'https://example.com',
+ updatedAt: '2026-07-10',
+});
+
+const fullRating = (base: number): ModelRating => ({
+ agentic: score(base - 5),
+ design: score(base - 10, 'design-arena'),
+ intelligence: score(base),
+ price: score(base - 20, 'lobehub'),
+ speed: score(base - 15, 'lobehub'),
+ writing: score(base - 2, 'lmarena'),
+});
+
+const ratings: Record<string, ModelRating | undefined> = {
+ 'model-a': fullRating(90),
+ 'model-b': fullRating(80),
+ 'model-c': fullRating(70),
+ 'model-d': fullRating(60),
+ 'model-e': { intelligence: score(50) },
+ 'unrated-model': undefined,
+};
+
+vi.mock('@/business/client/hooks/useBusinessModelRating', () => ({
+ useBusinessModelRating:
+ () =>
+ ({ model }: { model?: string }) =>
+ model ? ratings[model] : undefined,
+}));
+
+vi.mock('@/hooks/useEnabledChatModels', () => ({
+ useEnabledChatModels: () => [
+ {
+ children: Object.keys(ratings).map((id) => ({
+ abilities: {},
+ displayName: id.toUpperCase(),
+ id,
+ type: 'chat',
+ })),
+ id: 'lobehub',
+ name: 'LobeHub',
+ source: 'builtin',
+ },
+ ],
+}));
+
+describe('BenchmarkModalContent', () => {
+ it('renders the current model details with source, raw value and rules by default', () => {
+ const { container } = render(
+ <BenchmarkModalContent modelId={'model-a'} provider={'lobehub'} />,
+ );
+
+ expect(container.querySelector('svg')).toBeInTheDocument();
+ expect(screen.getByText('MODEL-A')).toBeInTheDocument();
+ // detail table columns
+ expect(screen.getByText('Raw value')).toBeInTheDocument();
+ // intelligence + agentic rows both come from Artificial Analysis
+ expect(screen.getAllByText('Artificial Analysis').length).toBe(2);
+ expect(screen.getByText('900')).toBeInTheDocument();
+ expect(screen.getAllByText('2026-07-10').length).toBeGreaterThan(0);
+ // rules are collapsed behind a footer toggle by default
+ expect(screen.getByText('Scoring rules & notes')).toBeInTheDocument();
+ expect(screen.queryByText('rule relative')).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByText('Scoring rules & notes'));
+ expect(screen.getByText('rule relative')).toBeInTheDocument();
+ expect(screen.getByText('rule missing')).toBeInTheDocument();
+
+ fireEvent.click(screen.getByText('Scoring rules & notes'));
+ expect(screen.queryByText('rule relative')).not.toBeInTheDocument();
+ });
+
+ it('marks missing dimensions with a dash in the detail table', () => {
+ const { container } = render(
+ <BenchmarkModalContent modelId={'model-e'} provider={'lobehub'} />,
+ );
+
+ // model-e only has intelligence — the other five dimension rows are dashed
+ expect(container.querySelectorAll('.cellMissing').length).toBeGreaterThan(0);
+ // radar vertex label + table row label
+ expect(screen.getAllByText('Intelligence').length).toBe(2);
+ });
+
+ it('switches to a compare matrix when another model is added', () => {
+ const { container } = render(
+ <BenchmarkModalContent modelId={'model-a'} provider={'lobehub'} />,
+ );
+
+ fireEvent.click(screen.getByText('MODEL-B'));
+
+ // matrix header shows both models, one polygon per series
+ expect(screen.getAllByText('MODEL-B').length).toBeGreaterThan(1);
+ expect(screen.getByText('Dimension')).toBeInTheDocument();
+ // detail-only columns disappear in compare mode
+ expect(screen.queryByText('Raw value')).not.toBeInTheDocument();
+ // best-in-row highlighting: model-a wins every dimension, pill tinted with its series color
+ expect(container.querySelectorAll('.bestPill').length).toBe(6);
+ });
+
+ it('caps the selection at four models', () => {
+ render(<BenchmarkModalContent modelId={'model-a'} provider={'lobehub'} />);
+
+ fireEvent.click(screen.getByText('MODEL-B'));
+ fireEvent.click(screen.getByText('MODEL-C'));
+ fireEvent.click(screen.getByText('MODEL-D'));
+
+ // at the limit the picker collapses to a disabled button with a tooltip
+ expect(screen.queryByRole('button', { name: 'MODEL-E' })).not.toBeInTheDocument();
+ expect(screen.getByText('Compare up to 4 models')).toBeInTheDocument();
+ });
+
+ it('removes a compared model via its chip', () => {
+ render(<BenchmarkModalContent modelId={'model-a'} provider={'lobehub'} />);
+
+ fireEvent.click(screen.getByText('MODEL-B'));
+ expect(screen.queryByText('Raw value')).not.toBeInTheDocument();
+
+ const removeButtons = screen
+ .getAllByRole('button')
+ .filter((el) => el.classList.contains('chipRemove'));
+ fireEvent.click(removeButtons[1]);
+
+ // back to single-model detail view
+ expect(screen.getByText('Raw value')).toBeInTheDocument();
+ });
+});
diff --git a/src/features/ModelSwitchPanel/components/BenchmarkModal/index.tsx b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.tsx
new file mode 100644
index 00000000000..4ed2432cd0b
--- /dev/null
+++ b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.tsx
@@ -0,0 +1,463 @@
+import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { createModal, DropdownMenu } from '@lobehub/ui/base-ui';
+import { createStaticStyles } from 'antd-style';
+import { t } from 'i18next';
+import { ChevronDownIcon, ChevronUpIcon, InfoIcon, PlusIcon, XIcon } from 'lucide-react';
+import type { ModelRating } from 'model-bank';
+import type { FC } from 'react';
+import { memo, useMemo, useState } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { useBusinessModelRating } from '@/business/client/hooks/useBusinessModelRating';
+import { useEnabledChatModels } from '@/hooks/useEnabledChatModels';
+
+import type { RatingDimensionKey } from '../ModelRatingRadar';
+import { RATING_DIMENSION_ORDER, RATING_SOURCE_NAMES } from '../ModelRatingRadar';
+import type { CompareRadarSeries } from './CompareRadar';
+import CompareRadar, { COMPARE_SERIES_COLORS, MAX_COMPARE_MODELS } from './CompareRadar';
+
+const RULE_KEYS = ['relative', 'sources', 'speed', 'price', 'missing'] as const;
+
+const styles = createStaticStyles(({ css, cssVar }) => ({
+ addButton: css`
+ cursor: pointer;
+
+ display: inline-flex;
+ gap: 4px;
+ align-items: center;
+
+ padding-block: 2px;
+ padding-inline: 8px;
+ border: 1px dashed ${cssVar.colorBorder};
+ border-radius: 16px;
+
+ font-size: 12px;
+ color: ${cssVar.colorTextSecondary};
+
+ &:hover {
+ border-color: ${cssVar.colorPrimary};
+ color: ${cssVar.colorPrimary};
+ }
+ `,
+ addButtonDisabled: css`
+ cursor: not-allowed;
+
+ &:hover {
+ border-color: ${cssVar.colorBorder};
+ color: ${cssVar.colorTextSecondary};
+ }
+ `,
+ bestPill: css`
+ display: inline-block;
+
+ padding-block: 1px;
+ padding-inline: 8px;
+ border-radius: 10px;
+
+ font-weight: 600;
+ `,
+ cell: css`
+ font-size: 12px;
+ color: ${cssVar.colorText};
+ text-align: center;
+ `,
+ cellMissing: css`
+ color: ${cssVar.colorTextQuaternary};
+ `,
+ chip: css`
+ display: inline-flex;
+ gap: 6px;
+ align-items: center;
+
+ max-width: 200px;
+ padding-block: 2px;
+ padding-inline: 8px;
+ border: 1px solid ${cssVar.colorBorderSecondary};
+ border-radius: 16px;
+
+ font-size: 12px;
+ color: ${cssVar.colorText};
+ `,
+ chipName: css`
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ `,
+ chipRemove: css`
+ cursor: pointer;
+ display: inline-flex;
+ align-items: center;
+ color: ${cssVar.colorTextTertiary};
+
+ &:hover {
+ color: ${cssVar.colorText};
+ }
+ `,
+ colorDot: css`
+ flex-shrink: 0;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ `,
+ headerCell: css`
+ overflow: hidden;
+ display: inline-flex;
+ gap: 6px;
+ align-items: center;
+ justify-content: center;
+
+ font-size: 12px;
+ font-weight: 500;
+ color: ${cssVar.colorTextSecondary};
+ `,
+ headerName: css`
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ `,
+ ruleItem: css`
+ font-size: 12px;
+ line-height: 1.6;
+ color: ${cssVar.colorTextTertiary};
+ `,
+ rulesList: css`
+ margin: 0;
+ padding-inline-start: 16px;
+ `,
+ rulesToggle: css`
+ cursor: pointer;
+
+ display: inline-flex;
+ gap: 4px;
+ align-items: center;
+ align-self: flex-start;
+
+ padding: 0;
+ border: none;
+
+ font-size: 12px;
+ color: ${cssVar.colorTextTertiary};
+
+ background: none;
+
+ &:hover {
+ color: ${cssVar.colorTextSecondary};
+ }
+ `,
+ sourceLink: css`
+ color: ${cssVar.colorTextSecondary};
+
+ &:hover {
+ color: ${cssVar.colorPrimary};
+ }
+ `,
+ table: css`
+ display: grid;
+ row-gap: 4px;
+ `,
+ tableDivider: css`
+ grid-column: 1 / -1;
+ border-block-start: 1px solid ${cssVar.colorBorderSecondary};
+ `,
+ tableHeader: css`
+ font-size: 12px;
+ font-weight: 500;
+ color: ${cssVar.colorTextSecondary};
+ text-align: center;
+ `,
+ tableRowLabel: css`
+ font-size: 12px;
+ color: ${cssVar.colorTextSecondary};
+ text-align: start;
+ `,
+}));
+
+interface RatedModel {
+ displayName: string;
+ id: string;
+ rating: ModelRating;
+}
+
+interface SelectedSeries extends RatedModel {
+ color: string;
+}
+
+const dimensionLabel = (key: RatingDimensionKey) =>
+ String(t(`ModelSwitchPanel.detail.rating.dimension.${key}`, { ns: 'components' }));
+
+interface ScoreCellProps {
+ best: boolean;
+ /** the model's series color — the best-in-row pill is tinted with it */
+ color: string;
+ score: NonNullable<ModelRating[RatingDimensionKey]> | undefined;
+}
+
+const ScoreCell: FC<ScoreCellProps> = ({ best, color, score }) => {
+ if (!score) return <span className={`${styles.cell} ${styles.cellMissing}`}>-</span>;
+
+ const tooltip = [
+ RATING_SOURCE_NAMES[score.source],
+ score.raw === undefined ? undefined : String(score.raw),
+ score.updatedAt,
+ ]
+ .filter(Boolean)
+ .join(' · ');
+
+ return (
+ <Tooltip title={tooltip}>
+ <span className={styles.cell}>
+ {best ? (
+ // series color + '26' alpha suffix ≈ 15% tint background
+ <span className={styles.bestPill} style={{ background: `${color}26`, color }}>
+ {score.score}
+ </span>
+ ) : (
+ score.score
+ )}
+ </span>
+ </Tooltip>
+ );
+};
+
+interface BenchmarkModalContentProps {
+ modelId: string;
+ provider: string;
+}
+
+const BenchmarkModalContent: FC<BenchmarkModalContentProps> = memo(({ modelId, provider }) => {
+ const { t } = useTranslation('components');
+ const enabledList = useEnabledChatModels();
+ const applyRating = useBusinessModelRating();
+ const [selectedIds, setSelectedIds] = useState<string[]>([modelId]);
+ // rules are low-frequency reference content — collapsed by default so the
+ // radar and score table keep the modal's vertical space
+ const [rulesOpen, setRulesOpen] = useState(false);
+
+ // all rated models of the same provider — the compare candidate pool
+ const ratedModels = useMemo<RatedModel[]>(() => {
+ const providerData = enabledList.find((item) => item.id === provider);
+
+ return (providerData?.children ?? []).flatMap((model) => {
+ const rating = applyRating({ model: model.id, provider });
+ if (!rating || Object.keys(rating).length === 0) return [];
+
+ return [{ displayName: model.displayName || model.id, id: model.id, rating }];
+ });
+ }, [applyRating, enabledList, provider]);
+
+ const selected = useMemo<SelectedSeries[]>(
+ () =>
+ selectedIds.flatMap((id, index) => {
+ const model = ratedModels.find((item) => item.id === id);
+
+ return model ? [{ ...model, color: COMPARE_SERIES_COLORS[index] }] : [];
+ }),
+ [ratedModels, selectedIds],
+ );
+
+ const candidates = useMemo(
+ () => ratedModels.filter((model) => !selectedIds.includes(model.id)),
+ [ratedModels, selectedIds],
+ );
+
+ const dimensions = RATING_DIMENSION_ORDER.map((key) => ({ key, label: dimensionLabel(key) }));
+
+ const series: CompareRadarSeries[] = selected.map((model) => ({
+ color: model.color,
+ id: model.id,
+ scores: RATING_DIMENSION_ORDER.map((key) => model.rating[key]?.score),
+ }));
+
+ const isCompare = selected.length > 1;
+ const atLimit = selectedIds.length >= MAX_COMPARE_MODELS;
+ const canAdd = candidates.length > 0 && !atLimit;
+
+ const addButton = (
+ <button
+ className={canAdd ? styles.addButton : `${styles.addButton} ${styles.addButtonDisabled}`}
+ disabled={!canAdd}
+ type={'button'}
+ >
+ <Icon icon={PlusIcon} size={12} />
+ {t('ModelSwitchPanel.detail.rating.modal.compare.add')}
+ </button>
+ );
+
+ return (
+ <Flexbox gap={16} paddingBlock={'0 8px'}>
+ {/* selected model chips + compare picker */}
+ <Flexbox horizontal align={'center'} gap={8} style={{ flexWrap: 'wrap' }}>
+ {selected.map((model) => (
+ <span className={styles.chip} key={model.id}>
+ <span className={styles.colorDot} style={{ background: model.color }} />
+ <span className={styles.chipName}>{model.displayName}</span>
+ {selected.length > 1 && (
+ <span
+ className={styles.chipRemove}
+ role={'button'}
+ onClick={() => setSelectedIds((prev) => prev.filter((id) => id !== model.id))}
+ >
+ <Icon icon={XIcon} size={12} />
+ </span>
+ )}
+ </span>
+ ))}
+ {candidates.length > 0 &&
+ (canAdd ? (
+ <DropdownMenu
+ items={candidates.map((model) => ({
+ key: model.id,
+ label: model.displayName,
+ onClick: () => setSelectedIds((prev) => [...prev, model.id]),
+ }))}
+ >
+ {addButton}
+ </DropdownMenu>
+ ) : (
+ <Tooltip
+ title={t('ModelSwitchPanel.detail.rating.modal.compare.limit', {
+ count: MAX_COMPARE_MODELS,
+ })}
+ >
+ {addButton}
+ </Tooltip>
+ ))}
+ </Flexbox>
+
+ <CompareRadar dimensions={dimensions} series={series} />
+
+ {/* score details: single model = source breakdown, compare = score matrix */}
+ {isCompare ? (
+ <div
+ className={styles.table}
+ style={{ gridTemplateColumns: `88px repeat(${selected.length}, 1fr)` }}
+ >
+ <span className={`${styles.tableHeader} ${styles.tableRowLabel}`}>
+ {t('ModelSwitchPanel.detail.rating.modal.table.dimension')}
+ </span>
+ {selected.map((model) => (
+ <span className={styles.headerCell} key={model.id}>
+ <span className={styles.colorDot} style={{ background: model.color }} />
+ <span className={styles.headerName}>{model.displayName}</span>
+ </span>
+ ))}
+ <div className={styles.tableDivider} />
+ {RATING_DIMENSION_ORDER.flatMap((key, dimensionIndex) => {
+ const scores = selected.map((model) => model.rating[key]?.score);
+ const bestScore = Math.max(...scores.map((score) => score ?? -1));
+
+ return [
+ <span className={styles.tableRowLabel} key={`${key}-label`}>
+ {dimensions[dimensionIndex].label}
+ </span>,
+ ...selected.map((model) => (
+ <ScoreCell
+ best={model.rating[key]?.score === bestScore && bestScore >= 0}
+ color={model.color}
+ key={`${key}-${model.id}`}
+ score={model.rating[key]}
+ />
+ )),
+ ];
+ })}
+ </div>
+ ) : (
+ selected[0] && (
+ <div className={styles.table} style={{ gridTemplateColumns: '88px 1fr 1fr 1.4fr 1fr' }}>
+ {(['dimension', 'score', 'raw', 'source', 'updatedAt'] as const).map((column) => (
+ <span
+ key={column}
+ className={
+ column === 'dimension'
+ ? `${styles.tableHeader} ${styles.tableRowLabel}`
+ : styles.tableHeader
+ }
+ >
+ {t(`ModelSwitchPanel.detail.rating.modal.table.${column}`)}
+ </span>
+ ))}
+ <div className={styles.tableDivider} />
+ {RATING_DIMENSION_ORDER.flatMap((key, dimensionIndex) => {
+ const score = selected[0].rating[key];
+
+ if (!score)
+ return [
+ <span
+ className={`${styles.tableRowLabel} ${styles.cellMissing}`}
+ key={`${key}-label`}
+ >
+ {dimensions[dimensionIndex].label}
+ </span>,
+ ...Array.from({ length: 4 }, (_, i) => (
+ <span className={`${styles.cell} ${styles.cellMissing}`} key={`${key}-${i}`}>
+ -
+ </span>
+ )),
+ ];
+
+ return [
+ <span className={styles.tableRowLabel} key={`${key}-label`}>
+ {dimensions[dimensionIndex].label}
+ </span>,
+ <span className={styles.cell} key={`${key}-score`} style={{ fontWeight: 600 }}>
+ {score.score}
+ </span>,
+ <span className={styles.cell} key={`${key}-raw`}>
+ {score.raw ?? '-'}
+ </span>,
+ <span className={styles.cell} key={`${key}-source`}>
+ <a
+ className={styles.sourceLink}
+ href={score.sourceUrl}
+ rel={'noreferrer'}
+ target={'_blank'}
+ >
+ {RATING_SOURCE_NAMES[score.source]}
+ </a>
+ </span>,
+ <span className={styles.cell} key={`${key}-updated`}>
+ {score.updatedAt}
+ </span>,
+ ];
+ })}
+ </div>
+ )
+ )}
+
+ {/* scoring rules & caveats — collapsed footer entry */}
+ <Flexbox gap={8}>
+ <button
+ className={styles.rulesToggle}
+ type={'button'}
+ onClick={() => setRulesOpen((prev) => !prev)}
+ >
+ <Icon icon={InfoIcon} size={12} />
+ {t('ModelSwitchPanel.detail.rating.modal.rules.title')}
+ <Icon icon={rulesOpen ? ChevronUpIcon : ChevronDownIcon} size={12} />
+ </button>
+ {rulesOpen && (
+ <ul className={styles.rulesList}>
+ {RULE_KEYS.map((key) => (
+ <li className={styles.ruleItem} key={key}>
+ {t(`ModelSwitchPanel.detail.rating.modal.rules.${key}`)}
+ </li>
+ ))}
+ </ul>
+ )}
+ </Flexbox>
+ </Flexbox>
+ );
+});
+
+BenchmarkModalContent.displayName = 'BenchmarkModalContent';
+
+export const openBenchmarkModal = (props: BenchmarkModalContentProps) =>
+ createModal({
+ content: <BenchmarkModalContent {...props} />,
+ footer: null,
+ maskClosable: true,
+ title: t('ModelSwitchPanel.detail.rating.modal.title', { ns: 'components' }),
+ width: 560,
+ });
+
+export default BenchmarkModalContent;
diff --git a/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx b/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx
index 3f34d6921c0..04bdf333507 100644
--- a/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx
+++ b/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx
@@ -2,8 +2,9 @@
* @vitest-environment happy-dom
*/
import { render, screen } from '@testing-library/react';
+import type { ModelRating } from 'model-bank';
import type { ReactNode } from 'react';
-import { describe, expect, it, vi } from 'vitest';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
import type { EnabledProviderWithModels } from '@/types/aiProvider';
@@ -16,11 +17,17 @@ vi.mock('antd-style', () => ({
description: 'description',
originalPriceText: 'originalPriceText',
priceValue: 'priceValue',
+ radarClickable: 'radarClickable',
row: 'row',
titleText: 'titleText',
}),
}));
+// keep the panel test free of the modal's own dependency chain (@lobehub/ui/base-ui, i18next)
+vi.mock('./BenchmarkModal', () => ({
+ openBenchmarkModal: vi.fn(),
+}));
+
vi.mock('@lobehub/ui', () => ({
Accordion: ({ children }: { children: ReactNode }) => <div>{children}</div>,
AccordionItem: ({
@@ -58,6 +65,12 @@ vi.mock('@/hooks/useEnabledChatModels', () => ({
useEnabledChatModels: () => [],
}));
+let mockRating: ModelRating | undefined;
+
+vi.mock('@/business/client/hooks/useBusinessModelRating', () => ({
+ useBusinessModelRating: () => () => mockRating,
+}));
+
const globalState = {
status: {
modelDetailPanelExpandedKeys: ['pricing'],
@@ -94,6 +107,13 @@ const translations: Record<string, string> = {
'ModelSwitchPanel.detail.pricing.unit.imageGeneration': 'Image Generation',
'ModelSwitchPanel.detail.pricing.unit.textInput': 'Input',
'ModelSwitchPanel.detail.pricing.unit.textOutput': 'Output',
+ 'ModelSwitchPanel.detail.rating': 'Benchmarks',
+ 'ModelSwitchPanel.detail.rating.dimension.agentic': 'Agentic',
+ 'ModelSwitchPanel.detail.rating.dimension.design': 'Design',
+ 'ModelSwitchPanel.detail.rating.dimension.intelligence': 'Intelligence',
+ 'ModelSwitchPanel.detail.rating.dimension.price': 'Price',
+ 'ModelSwitchPanel.detail.rating.dimension.speed': 'Speed',
+ 'ModelSwitchPanel.detail.rating.dimension.writing': 'Writing',
'test-model.description': 'Localized model description.',
};
@@ -267,3 +287,79 @@ describe('ModelDetailPanel pricing', () => {
expect(container).toHaveTextContent('- credits/img');
});
});
+
+describe('ModelDetailPanel rating', () => {
+ beforeEach(() => {
+ mockRating = undefined;
+ });
+
+ const score = (value: number): NonNullable<ModelRating['intelligence']> => ({
+ raw: value * 10,
+ score: value,
+ source: 'artificial-analysis',
+ sourceUrl: 'https://artificialanalysis.ai/models/test-model',
+ updatedAt: '2026-07-10',
+ });
+
+ it('hides the benchmarks section when the model has no rating', () => {
+ const { container } = render(
+ <ModelDetailPanel
+ enabledList={createEnabledList('lobehub', textPricing)}
+ model="test-model"
+ provider="lobehub"
+ />,
+ );
+
+ expect(container).not.toHaveTextContent('Benchmarks');
+ });
+
+ it('renders the radar chart when five or more dimensions are rated', () => {
+ mockRating = {
+ design: score(78),
+ intelligence: score(100),
+ price: score(35),
+ speed: score(60),
+ writing: score(88),
+ };
+
+ const { container } = render(
+ <ModelDetailPanel
+ enabledList={createEnabledList('lobehub', textPricing)}
+ model="test-model"
+ provider="lobehub"
+ />,
+ );
+
+ expect(container).toHaveTextContent('Benchmarks');
+ expect(container.querySelector('svg')).toBeInTheDocument();
+ expect(container).toHaveTextContent('Intelligence');
+ expect(container).toHaveTextContent('100');
+ // agentic has no data: label greyed with a dash placeholder
+ expect(container).toHaveTextContent('Agentic');
+ // attribution lives in the per-dimension tooltip now that the footer is gone
+ expect(container).toHaveTextContent('Artificial Analysis');
+ });
+
+ it('renders a dimension list instead of the radar below five dimensions', () => {
+ mockRating = {
+ intelligence: score(91),
+ price: score(42),
+ speed: score(66),
+ };
+
+ const { container } = render(
+ <ModelDetailPanel
+ enabledList={createEnabledList('lobehub', textPricing)}
+ model="test-model"
+ provider="lobehub"
+ />,
+ );
+
+ expect(container).toHaveTextContent('Benchmarks');
+ expect(container.querySelector('svg')).not.toBeInTheDocument();
+ expect(container).toHaveTextContent('Intelligence');
+ expect(container).toHaveTextContent('91');
+ // unrated dimensions are not listed in the fallback view
+ expect(container).not.toHaveTextContent('Writing');
+ });
+});
diff --git a/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx b/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx
index 94031308181..fe094bc2baf 100644
--- a/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx
+++ b/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx
@@ -10,6 +10,13 @@ import type { EnabledProviderWithModels } from '@/types/aiProvider';
import type { FormattedUnitPrice } from '../hooks/useModelDetailPanel';
import { UNIT_ICON_MAP, useModelDetailPanel } from '../hooks/useModelDetailPanel';
import type { PricingMode } from '../types';
+import { openBenchmarkModal } from './BenchmarkModal';
+import type { RadarDimensionDatum } from './ModelRatingRadar';
+import ModelRatingRadar, {
+ RADAR_MIN_DIMENSIONS,
+ RATING_DIMENSION_ORDER,
+ RATING_SOURCE_NAMES,
+} from './ModelRatingRadar';
export type { PricingMode } from '../types';
@@ -31,6 +38,27 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
overflow-wrap: anywhere;
white-space: pre-wrap;
`,
+ radarClickable: css`
+ cursor: pointer;
+ border-radius: 8px;
+ transition: background 0.2s ${cssVar.motionEaseInOut};
+
+ &:hover {
+ background: ${cssVar.colorFillTertiary};
+ }
+ `,
+ ratingScoreLink: css`
+ display: inline-flex;
+ gap: 4px;
+ align-items: center;
+
+ font-weight: 600;
+ color: ${cssVar.colorText};
+
+ &:hover {
+ color: ${cssVar.colorPrimary};
+ }
+ `,
row: css`
padding-block: 4px;
padding-inline: 8px;
@@ -103,6 +131,7 @@ const ModelDetailPanel: FC<ModelDetailPanelProps> = memo(
isPricingExpanded,
model,
pricingGroups,
+ rating,
} = useModelDetailPanel({
enabledList: enabledListProp,
modelId,
@@ -113,6 +142,26 @@ const ModelDetailPanel: FC<ModelDetailPanelProps> = memo(
if (!model) return null;
+ const ratingDimensions: RadarDimensionDatum[] = rating
+ ? RATING_DIMENSION_ORDER.map((key) => {
+ const dimension = rating[key];
+
+ return {
+ key,
+ label: String(t(`ModelSwitchPanel.detail.rating.dimension.${key}` as any)),
+ score: dimension?.score,
+ sourceUrl: dimension?.sourceUrl,
+ tooltip: dimension
+ ? `${RATING_SOURCE_NAMES[dimension.source]}${
+ dimension.raw === undefined ? '' : ` · ${dimension.raw}`
+ }`
+ : undefined,
+ };
+ })
+ : [];
+ const ratedDimensions = ratingDimensions.filter((item) => item.score !== undefined);
+ const hasRating = ratedDimensions.length > 0;
+
const description = model.description
? String(
t(`${model.id}.description` as any, {
@@ -130,8 +179,76 @@ const ModelDetailPanel: FC<ModelDetailPanelProps> = memo(
</Text>
)}
{/* Sections */}
- {(hasPricing || contextWindowLabel || hasAbilities) && (
+ {(hasRating || hasPricing || contextWindowLabel || hasAbilities) && (
<Accordion expandedKeys={expandedKeys} gap={8} onExpandedChange={handleExpandedChange}>
+ {/* Benchmarks */}
+ {hasRating && (
+ <AccordionItem
+ itemKey="rating"
+ paddingBlock={6}
+ paddingInline={8}
+ title={
+ <Flexbox horizontal align={'center'} gap={8}>
+ <div
+ style={{
+ background: '#eb2f96',
+ borderRadius: 2,
+ flexShrink: 0,
+ height: 14,
+ width: 3,
+ }}
+ />
+ <span className={styles.titleText}>{t('ModelSwitchPanel.detail.rating')}</span>
+ </Flexbox>
+ }
+ >
+ <Flexbox gap={4}>
+ {ratedDimensions.length >= RADAR_MIN_DIMENSIONS ? (
+ <Tooltip title={t('ModelSwitchPanel.detail.rating.clickHint')}>
+ <div
+ className={styles.radarClickable}
+ role={'button'}
+ tabIndex={0}
+ onClick={() => {
+ if (provider) openBenchmarkModal({ modelId: model.id, provider });
+ }}
+ >
+ <ModelRatingRadar dimensions={ratingDimensions} />
+ </div>
+ </Tooltip>
+ ) : (
+ <Flexbox gap={4}>
+ {ratedDimensions.map((dimension) => (
+ <Flexbox
+ horizontal
+ align={'center'}
+ className={styles.row}
+ justify={'space-between'}
+ key={dimension.key}
+ >
+ <span>{dimension.label}</span>
+ <Tooltip title={dimension.tooltip}>
+ {dimension.sourceUrl ? (
+ <a
+ className={styles.ratingScoreLink}
+ href={dimension.sourceUrl}
+ rel={'noreferrer'}
+ target={'_blank'}
+ >
+ {dimension.score}
+ </a>
+ ) : (
+ <span className={styles.ratingScoreLink}>{dimension.score}</span>
+ )}
+ </Tooltip>
+ </Flexbox>
+ ))}
+ </Flexbox>
+ )}
+ </Flexbox>
+ </AccordionItem>
+ )}
+
{/* Context Length */}
{contextWindowLabel && (
<AccordionItem
diff --git a/src/features/ModelSwitchPanel/components/ModelRatingRadar.test.tsx b/src/features/ModelSwitchPanel/components/ModelRatingRadar.test.tsx
new file mode 100644
index 00000000000..9b16353779e
--- /dev/null
+++ b/src/features/ModelSwitchPanel/components/ModelRatingRadar.test.tsx
@@ -0,0 +1,76 @@
+/**
+ * @vitest-environment happy-dom
+ */
+import { render } from '@testing-library/react';
+import { describe, expect, it, vi } from 'vitest';
+
+import type { RadarDimensionDatum } from './ModelRatingRadar';
+import ModelRatingRadar, { RATING_DIMENSION_ORDER } from './ModelRatingRadar';
+
+vi.mock('antd-style', () => ({
+ createStaticStyles: () => ({
+ axis: 'axis',
+ axisMissing: 'axisMissing',
+ container: 'container',
+ dot: 'dot',
+ labelLink: 'labelLink',
+ labelMissing: 'labelMissing',
+ labelName: 'labelName',
+ labelScore: 'labelScore',
+ polygon: 'polygon',
+ ring: 'ring',
+ }),
+}));
+
+const createDimensions = (
+ scores: Partial<Record<(typeof RATING_DIMENSION_ORDER)[number], number>>,
+): RadarDimensionDatum[] =>
+ RATING_DIMENSION_ORDER.map((key) => ({
+ key,
+ label: key,
+ score: scores[key],
+ sourceUrl: scores[key] === undefined ? undefined : `https://example.com/${key}`,
+ }));
+
+const dataPolygonPoints = (container: HTMLElement) =>
+ container.querySelector('polygon.polygon')!.getAttribute('points')!.split(' ').filter(Boolean);
+
+describe('ModelRatingRadar', () => {
+ it('connects all six vertices when every dimension is scored', () => {
+ const { container } = render(
+ <ModelRatingRadar
+ dimensions={createDimensions({
+ agentic: 80,
+ design: 70,
+ intelligence: 90,
+ price: 40,
+ speed: 60,
+ writing: 85,
+ })}
+ />,
+ );
+
+ expect(dataPolygonPoints(container)).toHaveLength(6);
+ });
+
+ it('omits missing dimensions from the polygon instead of plotting them as zero', () => {
+ const { container } = render(
+ <ModelRatingRadar
+ dimensions={createDimensions({
+ design: 70,
+ intelligence: 90,
+ price: 40,
+ speed: 60,
+ writing: 85,
+ })}
+ />,
+ );
+
+ // 5 scored vertices only — a center vertex would read as a real 0 score
+ expect(dataPolygonPoints(container)).toHaveLength(5);
+ expect(container.querySelectorAll('line.axisMissing')).toHaveLength(1);
+ expect(container.querySelectorAll('circle.dot')).toHaveLength(5);
+ // the missing dimension keeps its greyed label with a dash placeholder
+ expect(container.querySelectorAll('text.labelMissing')).toHaveLength(2);
+ });
+});
diff --git a/src/features/ModelSwitchPanel/components/ModelRatingRadar.tsx b/src/features/ModelSwitchPanel/components/ModelRatingRadar.tsx
new file mode 100644
index 00000000000..ac8f0d20e3b
--- /dev/null
+++ b/src/features/ModelSwitchPanel/components/ModelRatingRadar.tsx
@@ -0,0 +1,213 @@
+import { createStaticStyles } from 'antd-style';
+import type { ModelRating, ModelRatingSource } from 'model-bank';
+import type { FC } from 'react';
+import { memo } from 'react';
+
+/** display order around the hexagon, starting from the top vertex, clockwise */
+export const RATING_DIMENSION_ORDER = [
+ 'intelligence',
+ 'agentic',
+ 'writing',
+ 'design',
+ 'speed',
+ 'price',
+] as const satisfies readonly (keyof ModelRating)[];
+
+export type RatingDimensionKey = (typeof RATING_DIMENSION_ORDER)[number];
+
+/** proper nouns — not translated */
+export const RATING_SOURCE_NAMES: Record<ModelRatingSource, string> = {
+ 'artificial-analysis': 'Artificial Analysis',
+ 'design-arena': 'Design Arena',
+ 'lmarena': 'LMArena',
+ 'lobehub': 'LobeHub',
+};
+
+/** below this coverage the radar reads as broken — callers fall back to a list */
+export const RADAR_MIN_DIMENSIONS = 5;
+
+export interface RadarDimensionDatum {
+ key: RatingDimensionKey;
+ label: string;
+ /** undefined = no data: grey label, dashed axis, vertex omitted from the polygon */
+ score?: number;
+ sourceUrl?: string;
+ tooltip?: string;
+}
+
+const styles = createStaticStyles(({ css, cssVar }) => ({
+ axis: css`
+ stroke: ${cssVar.colorBorderSecondary};
+ stroke-width: 1;
+ `,
+ axisMissing: css`
+ stroke: ${cssVar.colorBorderSecondary};
+ stroke-dasharray: 3 3;
+ stroke-width: 1;
+ `,
+ container: css`
+ display: block;
+ margin-block: 4px;
+ margin-inline: auto;
+ `,
+ dot: css`
+ fill: ${cssVar.colorPrimary};
+ `,
+ labelLink: css`
+ cursor: pointer;
+
+ &:hover text {
+ fill: ${cssVar.colorPrimary};
+ }
+ `,
+ labelMissing: css`
+ font-size: 11px;
+ fill: ${cssVar.colorTextQuaternary};
+ `,
+ labelName: css`
+ font-size: 11px;
+ fill: ${cssVar.colorTextSecondary};
+ `,
+ labelScore: css`
+ font-size: 11px;
+ font-weight: 600;
+ fill: ${cssVar.colorText};
+ `,
+ polygon: css`
+ fill: ${cssVar.colorPrimary};
+ fill-opacity: 0.16;
+ stroke: ${cssVar.colorPrimary};
+ stroke-width: 1.5;
+ `,
+ ring: css`
+ fill: none;
+ stroke: ${cssVar.colorBorderSecondary};
+ stroke-width: 1;
+ `,
+}));
+
+const WIDTH = 240;
+const HEIGHT = 204;
+const CX = WIDTH / 2;
+const CY = HEIGHT / 2;
+const RADIUS = 58;
+const LABEL_RADIUS = RADIUS + 12;
+const RING_LEVELS = [0.25, 0.5, 0.75, 1];
+
+const pointAt = (index: number, total: number, ratio: number): [number, number] => {
+ const angle = ((-90 + (360 / total) * index) * Math.PI) / 180;
+
+ return [CX + RADIUS * ratio * Math.cos(angle), CY + RADIUS * ratio * Math.sin(angle)];
+};
+
+const toPoints = (coords: [number, number][]) =>
+ coords.map(([x, y]) => `${x.toFixed(2)},${y.toFixed(2)}`).join(' ');
+
+interface ModelRatingRadarProps {
+ dimensions: RadarDimensionDatum[];
+}
+
+const ModelRatingRadar: FC<ModelRatingRadarProps> = memo(({ dimensions }) => {
+ const total = dimensions.length;
+
+ return (
+ <svg
+ className={styles.container}
+ height={HEIGHT}
+ role={'img'}
+ viewBox={`0 0 ${WIDTH} ${HEIGHT}`}
+ width={WIDTH}
+ >
+ {RING_LEVELS.map((level) => (
+ <polygon
+ className={styles.ring}
+ key={level}
+ points={toPoints(dimensions.map((_, i) => pointAt(i, total, level)))}
+ />
+ ))}
+ {dimensions.map((dimension, i) => {
+ const [x, y] = pointAt(i, total, 1);
+
+ return (
+ <line
+ className={dimension.score === undefined ? styles.axisMissing : styles.axis}
+ key={dimension.key}
+ x1={CX}
+ x2={x}
+ y1={CY}
+ y2={y}
+ />
+ );
+ })}
+ {/* connect scored vertices only — plotting a missing dimension at the center would read as a real 0 */}
+ <polygon
+ className={styles.polygon}
+ points={toPoints(
+ dimensions.flatMap((d, i) =>
+ d.score === undefined ? [] : [pointAt(i, total, d.score / 100)],
+ ),
+ )}
+ />
+ {dimensions.map((dimension, i) => {
+ if (dimension.score === undefined) return null;
+ const [x, y] = pointAt(i, total, dimension.score / 100);
+
+ return <circle className={styles.dot} cx={x} cy={y} key={dimension.key} r={2.5} />;
+ })}
+ {dimensions.map((dimension, i) => {
+ const angle = ((-90 + (360 / total) * i) * Math.PI) / 180;
+ const x = CX + LABEL_RADIUS * Math.cos(angle);
+ const y = CY + LABEL_RADIUS * Math.sin(angle);
+ const cos = Math.cos(angle);
+ const sin = Math.sin(angle);
+ const anchor = cos > 0.3 ? 'start' : cos < -0.3 ? 'end' : 'middle';
+ // keep the two-line label block clear of the vertex on top/bottom
+ const baseY = sin < -0.3 ? y - 16 : sin > 0.3 ? y + 10 : y - 3;
+ const missing = dimension.score === undefined;
+
+ const label = (
+ <g key={dimension.key}>
+ {dimension.tooltip && <title>{dimension.tooltip}</title>}
+ <text
+ className={missing ? styles.labelMissing : styles.labelName}
+ textAnchor={anchor}
+ x={x}
+ y={baseY}
+ >
+ {dimension.label}
+ </text>
+ <text
+ className={missing ? styles.labelMissing : styles.labelScore}
+ textAnchor={anchor}
+ x={x}
+ y={baseY + 13}
+ >
+ {missing ? '-' : dimension.score}
+ </text>
+ </g>
+ );
+
+ if (!dimension.sourceUrl || missing) return label;
+
+ return (
+ <a
+ className={styles.labelLink}
+ href={dimension.sourceUrl}
+ key={dimension.key}
+ // the whole radar can be a click target (benchmark modal) — a source
+ // link click must not bubble into it
+ rel={'noreferrer'}
+ target={'_blank'}
+ onClick={(e) => e.stopPropagation()}
+ >
+ {label}
+ </a>
+ );
+ })}
+ </svg>
+ );
+});
+
+ModelRatingRadar.displayName = 'ModelRatingRadar';
+
+export default ModelRatingRadar;
diff --git a/src/features/ModelSwitchPanel/hooks/useModelDetailPanel.ts b/src/features/ModelSwitchPanel/hooks/useModelDetailPanel.ts
index f15833fd527..49aa5f4cd55 100644
--- a/src/features/ModelSwitchPanel/hooks/useModelDetailPanel.ts
+++ b/src/features/ModelSwitchPanel/hooks/useModelDetailPanel.ts
@@ -26,6 +26,7 @@ import type {
import { useCallback, useMemo } from 'react';
import { useBusinessModelPricing } from '@/business/client/hooks/useBusinessModelPricing';
+import { useBusinessModelRating } from '@/business/client/hooks/useBusinessModelRating';
import { useEnabledChatModels } from '@/hooks/useEnabledChatModels';
import { useGlobalStore } from '@/store/global';
import type { ModelDetailPanelExpandedKey } from '@/store/global/initialState';
@@ -303,6 +304,12 @@ export const useModelDetailPanel = ({
const expandedKeys = useGlobalStore(systemStatusSelectors.modelDetailPanelExpandedKeys);
const updateExpandedKeys = useGlobalStore((s) => s.updateModelDetailPanelExpandedKeys);
const applyBusinessModelPricing = useBusinessModelPricing();
+ const applyBusinessModelRating = useBusinessModelRating();
+
+ const rating = useMemo(
+ () => applyBusinessModelRating({ model: modelId, provider }),
+ [applyBusinessModelRating, modelId, provider],
+ );
const pricing = model?.pricing;
const displayPricing = useMemo(
@@ -429,5 +436,6 @@ export const useModelDetailPanel = ({
isPricingExpanded: expandedKeys.includes('pricing'),
model,
pricingGroups,
+ rating,
};
};
diff --git a/src/store/global/initialState.ts b/src/store/global/initialState.ts
index 581814769ec..5f14446a1c8 100644
--- a/src/store/global/initialState.ts
+++ b/src/store/global/initialState.ts
@@ -99,6 +99,7 @@ export enum ProfileTabs {
}
export const MODEL_DETAIL_PANEL_EXPANDED_KEYS = [
+ 'rating',
'context',
'abilities',
'pricing',
@@ -108,6 +109,8 @@ export const MODEL_DETAIL_PANEL_EXPANDED_KEYS = [
export type ModelDetailPanelExpandedKey = (typeof MODEL_DETAIL_PANEL_EXPANDED_KEYS)[number];
export const DEFAULT_MODEL_DETAIL_PANEL_EXPANDED_KEYS = [
+ 'rating',
+ 'abilities',
'pricing',
'config',
] as const satisfies readonly ModelDetailPanelExpandedKey[];