mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-18 03:07:27 +00:00
Introduce two new visualizations to the “Model Data Analysis” panel: 1. Model Consumption Trend (line chart) • Added `spec_model_line` state and legend support. • Calculates per-model counts over time and updates via `updateChartData`. 2. Model Call Ranking (bar chart) • Added `spec_rank_bar` state with `seriesField` and legend enabled. • Ranks models by total call count. Additional changes: • Extended tab navigation with two new `TabPane`s and adjusted chart rendering logic. • Swapped icons/texts to match new chart purposes. • Reused existing color mapping to ensure consistent palette. No breaking changes; UI now offers richer insights into model usage patterns.