mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
修复 ChatGPT Web 生图额度递减显示
This commit is contained in:
@@ -105,6 +105,28 @@ describe('providerKeyQuota', () => {
|
||||
}, 'grok')).toBe('Auto剩余 40.0% (60/150) | Heavy剩余 0.0% (0/20)')
|
||||
})
|
||||
|
||||
it('formats ChatGPT Web image quota as remaining count', () => {
|
||||
expect(getQuotaDisplayText({
|
||||
status_snapshot: {
|
||||
quota: {
|
||||
provider_type: 'chatgpt_web',
|
||||
code: 'ok',
|
||||
exhausted: false,
|
||||
windows: [
|
||||
{
|
||||
code: 'image_gen',
|
||||
scope: 'account',
|
||||
remaining_ratio: 0.96,
|
||||
used_value: 1,
|
||||
remaining_value: 24,
|
||||
limit_value: 25,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
}, 'chatgpt_web')).toBe('生图剩余 24/25')
|
||||
})
|
||||
|
||||
it('surfaces Windsurf hard account states', () => {
|
||||
expect(getQuotaDisplayText({
|
||||
status_snapshot: {
|
||||
|
||||
Reference in New Issue
Block a user