Skip to content

Commit 4bce388

Browse files
authored
Merge branch 'main' into 2144
2 parents d94dea2 + 0ebf80e commit 4bce388

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/usage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const tokensSchema = z.object({
1313
const detailSchema = z.object({
1414
timestamp: z.string().optional(),
1515
source: z.string().optional(),
16-
// auth_index 可能是字符串或数字,统一保留原值并在后续转为字符串
16+
// 保留 auth_index 原值(字符串或数字),避免历史/异构格式被丢弃
1717
auth_index: z.union([z.string(), z.number()]).optional(),
1818
tokens: tokensSchema.optional(),
1919
failed: z.boolean().optional(),

0 commit comments

Comments
 (0)