mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 05:17:40 +00:00
* Return user-facing message if API reuturn 429 API rate limit reached * clarify the error message * fix(agents): improve 429 user messaging (#10415) (thanks @vincenthsin) --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
@@ -104,4 +104,8 @@ describe("formatAssistantErrorText", () => {
|
||||
expect(result).toContain("API provider");
|
||||
expect(result).toBe(BILLING_ERROR_USER_MESSAGE);
|
||||
});
|
||||
it("returns a friendly message for rate limit errors", () => {
|
||||
const msg = makeAssistantError("429 rate limit reached");
|
||||
expect(formatAssistantErrorText(msg)).toContain("rate limit reached");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user