Merge 2f280f6f2b313c44b8423fafc6aeb6bed4fd794a into 598f1826d8b2bc969aace2c6459824737667218c

This commit is contained in:
Julian 2026-03-21 12:26:35 +08:00 committed by GitHub
commit f3c3e5ce83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -67,8 +67,6 @@ const USED_KEYS = [
"usedPrompt",
"prompts_used",
"promptsUsed",
"current_interval_usage_count",
"currentIntervalUsageCount",
"consumed",
] as const;
@ -132,6 +130,10 @@ const REMAINING_KEYS = [
"promptLeft",
"prompts_left",
"promptsLeft",
"current_interval_usage_count",
"currentIntervalUsageCount",
"current_interval_remaining_count",
"currentIntervalRemainingCount",
"left",
] as const;

View File

@ -219,7 +219,7 @@ describe("provider usage loading", () => {
},
],
},
expected: { usedPercent: 25 },
expected: { usedPercent: 75 },
},
{
name: "keeps payload-level MiniMax plan metadata when the usage candidate is nested",