Every word list that decides why a reply failed (creditWords,
brokeWords, rateWords, plannedWords, usedUpWords, quotaCodes) and
af0558e6d's resetsWhen were matched against the raw body. A JSON error
whose encoder escapes what isn't ASCII (Python's json.dumps by default)
carries 用量 as 用量, so none of the Chinese words matched:
WorkBuddy's escaped refusal read as a 1-minute rate limit with no reset
time, Zhipu's escaped 1113 "余额不足…请充值" as a rate limit instead of
out of credit, a sub2api key's escaped "7天限额已用完" as a rate limit
instead of out of quota.
wordsOf is the one shared point: a JSON body containing \u has its
string values decoded and put after it, one to a line; any other body
is matched as it is. failure() matches its words on it, resetsWritten
reads the reset from it, the per-model rest's otherModels check uses
it, and the two creditWords checks beside failure() (fallback.go's
same-one retry, patience.go's busy) use it too.
Tests: TestResetsWritten gains the reporter's Chinese refusal escaped
(read, 3h16m2s) and escaped-but-cut-short (not read);
TestWrittenResetRestsUntilThen rests the escaped refusal's model until
then; TestFailureReadsEscapedWords: escaped Zhipu 1113 is credit,
escaped sub2api 7天限额已用完 is quota, escaped WorkBuddy is quota.
With wordsOf returning the body unchanged, all three fail.
internal/gateway passes; go test -tags nogui ./... under a temp HOME;
gofmt -l, go vet darwin, GOOS=linux, GOOS=windows on internal/gateway.