From 63dc359fb45b9d8e1b78faa4250c0bea454e8c16 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 3 Nov 2026 13:54:53 +0800 Subject: [PATCH] providers: a subscription account's rest, or its model's, shows on its row (maxleebeta) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit maxleebeta on Discord (#feedback): WorkBuddy answered 429 {"type":"rate_limit_error","message":"WorkBuddy: 您的使用量已超出频率限制,将在 2026-11-03 23:57:19 UTC+8 重置,您也可以切换其他模型继续使用。"} while the provider's card said 1,934/2,350 credits left (82%), and nothing on the Providers page said the account was held back. Routing already handled the refusal: resetsWhen reads the time (UTC+8, the space before 重置 included), failure() gives failQuota, and since it says 切换其他模型 the rest is that model's alone (restID), by "resets", till 15:57:19 UTC; the account's other models are still asked (#1669). What was missing was the page: a key's rest showed on its row, an account's never did. - gateway.RestsUnder(prefix) lists the rests in force under a key prefix (provider@ for a subscription's accounts, provider@user/model for a model's), with Key and the rest's note (Model, By, Error). - providerJSON.accountRests gives them by user in lower case, the model filled in from the key when the note has none; provider.KeyRest gains By, Model and Error. - app.js: the account row in the provider editor gets a line per rest (accountRestLines): " resting · 429 quota used up · back at