Skip to content

fix(web): clear free-quota-exhausted message on HTTP 429#563

Merged
devswha merged 1 commit into
mainfrom
fix/free-quota-message
Jun 30, 2026
Merged

fix(web): clear free-quota-exhausted message on HTTP 429#563
devswha merged 1 commit into
mainfrom
fix/free-quota-message

Conversation

@devswha

@devswha devswha commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Free tier returns 429 with a reason (daily quota exceeded / hourly burst exceeded), but the client discarded the body and showed a generic 'check the mode/key' note. Now streamRewrite captures the server reason and the chat UI renders a dedicated quota message (daily vs hourly) pointing users to BYOK. ko/en/zh/ja. Unit-verified; deployed to prod. NOTE: PR #562 (monetization) branched before this; rebase it on updated main to keep this fix.

The free tier returns 429 with a specific reason (daily quota exceeded / hourly burst exceeded), but streamRewrite discarded the body and the chat UI showed a generic 'check the mode/key' note — misleading for a rate-limit case. streamRewrite now reads the JSON error body and carries the reason in the error frame (falls back to the generic string for non-JSON). chatgpt.js renders a dedicated quota message for 429 (daily vs hourly from the reason) and points users to BYOK. ko/en/zh/ja.
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
patina Ready Ready Preview, Comment Jun 30, 2026 8:47am

Request Review

@devswha devswha merged commit 141724a into main Jun 30, 2026
8 checks passed
@devswha devswha deleted the fix/free-quota-message branch June 30, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant