feat: 全局模型新增活跃 Provider 数量统计

- 后端优化查询,使用条件聚合同时获取总 Provider 数和活跃数
- 前端展示格式改为「活跃数/总数」,便于了解可用 Provider 情况
This commit is contained in:
fawney19
2026-02-09 22:26:30 +08:00
parent 7b28680cda
commit b11e9de6a7
5 changed files with 64 additions and 9 deletions

View File

@@ -810,6 +810,7 @@ export interface GlobalModelResponse {
config?: Record<string, any> | null
// 统计数据
provider_count?: number
active_provider_count?: number
usage_count?: number
created_at: string
updated_at?: string