Fix image billing size normalization

This commit is contained in:
2ue
2026-05-12 15:21:31 +08:00
parent 62ccd0ff39
commit bb4c1abe28
45 changed files with 3270 additions and 313 deletions
+6
View File
@@ -1154,6 +1154,8 @@ export interface CodexSessionImportResult {
export type RedeemCodeType = 'balance' | 'concurrency' | 'subscription' | 'invitation'
export type UsageRequestType = 'unknown' | 'sync' | 'stream' | 'ws_v2'
export type ImageSizeSource = 'output' | 'input' | 'default' | 'legacy'
export type ImageSizeBreakdown = Record<string, number>
export interface UsageLog {
id: number
@@ -1195,6 +1197,10 @@ export interface UsageLog {
// 图片生成字段
image_count: number
image_size: string | null
image_input_size: string | null
image_output_size: string | null
image_size_source: ImageSizeSource | null
image_size_breakdown: ImageSizeBreakdown | null
// User-Agent
user_agent: string | null