mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 12:26:38 -06:00
fix(failover): preserve Moonshot balance 429 billing
This commit is contained in:
@@ -652,10 +652,11 @@ function classifyFailoverClassificationFromHttpStatus(
|
||||
}
|
||||
if (status === 429) {
|
||||
if (
|
||||
messageReason === "billing" &&
|
||||
(isProvider(provider, "moonshot") || isProvider(provider, "kimi"))
|
||||
message &&
|
||||
(isProvider(provider, "moonshot") || isProvider(provider, "kimi")) &&
|
||||
isBillingErrorMessage(message)
|
||||
) {
|
||||
return messageClassification;
|
||||
return toReasonClassification("billing");
|
||||
}
|
||||
return toReasonClassification("rate_limit");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user