Repository navigation
gateway: filter discovery by exact price ranges - #513
Merged
Merged
Conversation
sjungwon03-ai
approved these changes
Oct 18, 2026
sjungwon03-ai
left a comment
Member
There was a problem hiding this comment.
Review summary
Verdict: Approved
- Reviewed: exact price-range parsing, matching, paging, and schema-pin coverage
- Checks: GitHub Checks passed; local typecheck and 137 targeted tests passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #512
Refs #116
Plan: docs/plans/512-model-price-ranges.md
Contract: contracts/model-price-ranges.md
TDD and validation
npm run compatibility:drift: all four selected subsets match. Request, response and count pins remain byte-identical to main.env -u NODE_NO_WARNINGS -u NODE_OPTIONS PATH="/home/ubuntu/.local/bin:$PATH" npm run checkretry passed: 6,877 cases, 6,876 passed, one optional external PostgreSQL skip, zero failures/cancellations. Strict types, lint, planning/link/contract/fixture-secret checks and all four offline integrity checks passed. Evidence:/tmp/opengranter-512-check-retry.log.Source and limits
Official source: https://openrouter.ai/openapi.json, retrieved 2026-10-18.
Canonical source SHA-256:
e14bcc1e02453bff8807cc79d03170ce7d229a9d0836e253ff49b764b8aa811d.Query v4 projection SHA-256:
aa9f1298d0c56d6d786499f859c3ee9062b2bc01407e2c9926bff1e85921ff62.The bounded unsigned decimal syntax, 128-unit length, finite-input restriction and exact reversed-pair rejection are local restrictions, separate from the official optional number/null schemas. SDK numeric serialization can lose precision before transmission; accepted raw strings retain exact comparisons and continuation spelling. Prices may be stale/inaccurate and filtering does not calculate billed cost, apply overrides/discounts, refresh metadata or choose providers. No inference, credentials, limits, usage or database schema changes. Full #116 and unresolved #7 remain open.
Assisted-by: Codex
Signed-off-by: sjungwon03 sjungwon03@gmail.com