feat: Add model performance metrics to dashboard

Add a shared `performance-metrics` feature module for perf metric APIs, DTOs, and formatting, then surface global 24h model performance on the dashboard with cards and a top-model table.

Reuse the shared metrics module from pricing model details, remove duplicated perf API/formatting code from pricing, and add localized labels for the new dashboard performance UI.
This commit is contained in:
t0ng7u
2026-05-08 01:06:44 +08:00
parent a7475a1e67
commit c19d5aa663
19 changed files with 471 additions and 113 deletions
+4
View File
@@ -2383,6 +2383,7 @@
"More templates...": "Другие шаблоны…",
"More...": "Подробнее...",
"Most-used models in the selected period and category": "Самые используемые модели в выбранном периоде и категории",
"Monitored relay requests": "Отслеживаемые ретрансляционные запросы",
"Move": "Переместить",
"Move a request header": "Переместить заголовок запроса",
"Move affiliate rewards to your main balance": "Перевести партнерские вознаграждения на основной баланс",
@@ -2555,6 +2556,7 @@
"No payment methods configured": "Способы оплаты не настроены",
"No payment methods configured. Click \"Add method\" or use templates to get started.": "Способы оплаты не настроены. Нажмите \"Добавить способ\" или используйте шаблоны, чтобы начать.",
"No payment methods match your search": "Нет способов оплаты, соответствующих вашему поиску",
"No performance data available": "Нет доступных данных о производительности",
"No plans available": "Нет доступных планов",
"No preference": "Без предпочтений",
"No prefill groups yet": "Пока нет групп предзаполнения",
@@ -2849,6 +2851,7 @@
"Percentage:": "Процент:",
"Performance": "Производительность",
"Performance data is not yet available for this model.": "Данные о производительности этой модели пока недоступны.",
"Performance metrics for the last 24 hours": "Метрики производительности за последние 24 часа",
"Performance metrics shown here are simulated for preview purposes and will be replaced with live observability data once the backend integration is complete.": "Показанные метрики производительности сгенерированы для предпросмотра и будут заменены реальными данными наблюдаемости после интеграции бэкенда.",
"Performance Monitor": "Монитор производительности",
"Performance Settings": "Настройки производительности",
@@ -4330,6 +4333,7 @@
"Weekly token usage by model since launch": "Еженедельное использование токенов по моделям с момента запуска",
"Weekly Window": "Недельное окно",
"Weight": "Вес",
"Weighted by request count": "Взвешено по количеству запросов",
"Welcome back!": "Добро пожаловать обратно!",
"Welcome to our New API...": "Добро пожаловать в наш New API...",
"Well-Known URL": "Известный эксперт",