feat: add provider analytics summary

This commit is contained in:
2026-04-18 22:01:34 +08:00
parent e99a7fbe14
commit 4d54c144a8
15 changed files with 437 additions and 36 deletions

View File

@@ -49,3 +49,14 @@ export interface GenerationProviderStats {
estimated_cost_usd: number
by_provider: GenerationProviderStat[]
}
export interface GenerationProviderAnalytics {
total_calls: number
successful_calls: number
failed_calls: number
avg_latency_ms: number | null
estimated_cost_usd: number
job_count: number
story_count: number
by_provider: GenerationProviderStat[]
}