feat(usage): track native compaction requests

This commit is contained in:
Jarl committed 2026-08-28 23:32:11 +08:00
1 parent 7b693ae429
commit 1cc6999ada
42 files changed
+797 -69

No files matched your search

+4
View File
@@ -55,6 +55,7 @@ export interface TrendParams {
group_id?: number
request_type?: UsageRequestType
stream?: boolean
native_compaction_v2?: boolean | null
billing_type?: number | null
upstream_model_mismatch?: boolean
}
@@ -87,6 +88,7 @@ export interface ModelStatsParams {
group_id?: number
request_type?: UsageRequestType
stream?: boolean
native_compaction_v2?: boolean | null
billing_type?: number | null
upstream_model_mismatch?: boolean
}
@@ -116,6 +118,7 @@ export interface GroupStatsParams {
group_id?: number
request_type?: UsageRequestType
stream?: boolean
native_compaction_v2?: boolean | null
billing_type?: number | null
upstream_model_mismatch?: boolean
}
@@ -178,6 +181,7 @@ export interface UserBreakdownParams {
account_id?: number
request_type?: UsageRequestType
stream?: boolean
native_compaction_v2?: boolean | null
billing_type?: number | null
}
+1
View File
@@ -124,6 +124,7 @@ export async function getStats(params: {
model?: string
request_type?: UsageRequestType
stream?: boolean
native_compaction_v2?: boolean | null
upstream_model_mismatch?: boolean
period?: string
start_date?: string
+2
View File
@@ -64,6 +64,7 @@ export interface TrendParams {
group_id?: number
request_type?: UsageRequestType
stream?: boolean
native_compaction_v2?: boolean | null
billing_type?: number | null
billing_mode?: string | null
timezone?: string
@@ -285,6 +286,7 @@ export async function getDashboardModels(params?: {
group_id?: number
request_type?: UsageRequestType
stream?: boolean
native_compaction_v2?: boolean | null
billing_type?: number | null
billing_mode?: string | null
timezone?: string