[WRONG BRANCH] fix(catalog): account for auxiliary model charges - #486
[WRONG BRANCH] fix(catalog): account for auxiliary model charges#486luvs01 wants to merge 1 commit into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
Motivation
prompt/inputandcompletion/outputtoken rates and could mark a modelfreewhile other published pricing dimensions (e.g.request,image,web_search) were positive.paid, and unsupported or malformed auxiliary components yieldunknownrather than erroneouslyfree.Description
discoveredPricingStatusinsrc/codex/catalog/provider-fetch.tsto inspect all fields on the providerpricingobject viadiscoveredPricingRate, returning"paid"if any numeric component is greater than zero,"unknown"if any component is unusable, and"free"only when the required prompt/completion pair exists and every published numeric component is zero.paidand that unsupported shapes are treated asunknown.tests/codex-integration/catalog-free-pricing-status.test.tscovering positive per-request auxiliary pricing, fully-zero auxiliary dimensions, and unsupported/malformed auxiliary pricing shapes.Testing
bun test tests/codex-integration/catalog-free-pricing-status.test.ts, which passed all tests (13 pass, 0 fail).bun x tsc --noEmit, which completed successfully.bun run privacy:scan, which passed and reported the modified files in the scan output.bun run test:changedcould not run in this environment because the checkout has no comparison ref (dev/origin/dev/upstream/dev), andgit diff --checkreported no issues.Codex Task