Skip to content

fix: add OpenRouter guidance when API returns 402#52

Merged
iagooar merged 1 commit into
masterfrom
fix/openrouter-402-hint
Jun 25, 2026
Merged

fix: add OpenRouter guidance when API returns 402#52
iagooar merged 1 commit into
masterfrom
fix/openrouter-402-hint

Conversation

@iagooar

@iagooar iagooar commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

This is not a qqqa bug: OpenRouter returns 402 when the account has never purchased credits or the balance is negative, even for some free-tier usage. Reporters were using paid slugs like openai/gpt-oss-20b rather than :free variants.

Test plan

  • cargo test (including new unit tests for hint formatting)
  • Trigger a 402 against OpenRouter and confirm the appended hint appears

Fixes #39 (documentation/UX side; users may still need to add credits or pick :free models).

Made with Cursor

Clarify that free usage usually requires :free model slugs and a positive
OpenRouter credit balance, which matches the reports in #39.

Co-authored-by: Cursor <cursoragent@cursor.com>
@iagooar
iagooar merged commit eccde6c into master Jun 25, 2026
1 check passed
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.

qq: is there any way to use the tool with OpenRouter's free models?

1 participant