feat(usage): 新增输出速度统计与请求详情性能分析

- 把 upstream_is_stream 物化到 usage 与 billing facts,避免 Provider 聚合回连 public.usage
- 统一前端标准/流式 TPS 计算与显示,流式按首字后生成耗时计算
- 新增请求详情抽屉展示单请求输出速度与 Provider 聚合 TPS
This commit is contained in:
mayrain
2026-05-05 17:34:12 +08:00
parent f0197b685f
commit 6b6d32b4a3
14 changed files with 712 additions and 64 deletions

View File

@@ -207,6 +207,7 @@ export interface RequestDetail {
errors?: RequestErrorDomains | null
error_flow?: RequestErrorFlow | null
response_time_ms: number
first_byte_time_ms?: number | null
created_at: string
request_headers?: Record<string, unknown>
request_body?: Record<string, unknown>