mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-04 00:42:14 +00:00
Merge pull request #6283 from okbexx/feat/usage-compaction-kind
feat(usage): track native compaction requests
This commit is contained in:
44 files changed
+806
-77
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user