Merge pull request #6283 from okbexx/feat/usage-compaction-kind

feat(usage): track native compaction requests
This commit is contained in:
Wesley Liddick authored and GitHub committed 2026-08-31 11:19:37 +08:00
commit 0678b24d58
44 files changed
+806 -77

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