Merge pull request #7001 from SavitarC/feat/ops-token-stats-all-platforms

feat(ops): 扩展 Token 请求统计至所有平台
This commit is contained in:
Wesley Liddick authored and GitHub committed 2026-09-12 19:34:45 +08:00
commit c7ed614240
7 files changed
+169 -13

No files matched your search

@@ -219,7 +219,8 @@ func (h *OpsHandler) GetDashboardErrorDistribution(c *gin.Context) {
response.Success(c, data)
}
// GetDashboardOpenAITokenStats returns OpenAI token efficiency stats grouped by model.
// GetDashboardOpenAITokenStats returns token efficiency stats for all platforms, grouped by model.
// The endpoint name is retained for compatibility; platform and group_id optionally narrow the scope.
// GET /api/v1/admin/ops/dashboard/openai-token-stats
func (h *OpsHandler) GetDashboardOpenAITokenStats(c *gin.Context) {
if h.opsService == nil {