Skip to content

[bug]: accept OpenRouter limit_remaining null (free tier) - #245

Merged
slkiser merged 4 commits into
slkiser:mainfrom
log0u7:fix/openrouter-limit_remaining-null
Sep 9, 2026
Merged

[bug]: accept OpenRouter limit_remaining null (free tier)#245
slkiser merged 4 commits into
slkiser:mainfrom
log0u7:fix/openrouter-limit_remaining-null

Conversation

@log0u7

@log0u7 log0u7 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Closes #244

log0u7 added 2 commits August 27, 2026 12:33
- Treat null as absent for limit_remaining validation
- Add test case for OpenRouter free-tier response (limit_remaining: null)
- Fixes issue slkiser#244
- The v4 grouped-entry shape is kind value with a formatted USD amount,
  not the legacy top-level spend fields the expectation described
- Full suite green in docker node:22 (2178 tests)
@log0u7

log0u7 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback on #244 and for planning to include this in the next release!

Small note: the CI runs on this PR are still stuck in "action_required" since it comes from a fork.
Could someone click "Approve and run workflows" in the Checks tab?
A review would also be appreciated so this can land.

@slkiser
slkiser merged commit c57dfb9 into slkiser:main Sep 9, 2026
4 checks 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.

[bug]: OpenRouter free tier => 'Invalid openrouter-key-v1 response' (limit_remaining: null not handled)

2 participants