Skip to content

Allow larger free Smart requests within provider budget - #134

Merged
mrmps merged 1 commit into
mainfrom
codex/free-smart-spending
Sep 25, 2026
Merged

mrmps merged 1 commit into
mainfrom
codex/free-smart-spending

Conversation

@mrmps

@mrmps mrmps commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Free Smart requests could be rejected before inference because a worst-case JSON size estimate was compared with the Fast provider allowance.

  • Give free Smart requests a $0.10 provider-cost ceiling while Fast stays at $0.01. Keep the $0.50 per-IP and $100 shared daily ceilings.
  • Admit requests using the provider budget and allow a smaller reservation when daily allowance is nearly spent.
  • Return completed fast answers when later Smart reviews cannot fit; report missed reviews in usage.escalation_failed.
Before (Pricing page) After (Pricing page)
Before After
Before (Markdown pricing) After (Markdown pricing)
Before After

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5e962b7a-91dc-4f03-bd64-7d9b6c9a2e32

📥 Commits

Reviewing files that changed from the base of the PR and between 3be4b2c and cc448f2.

📒 Files selected for processing (11)
  • e2e/spending.mjs
  • src/docs.ts
  • src/index.ts
  • src/openapi.ts
  • src/pages.ts
  • src/pricingui.ts
  • src/spending/free-budget.ts
  • src/spending/index.ts
  • src/spending/policy.ts
  • tests/spending.e2e.test.ts
  • wrangler.example.toml
 ______________________________
< Bugs bunny, at your service. >
 ------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mrmps
mrmps force-pushed the codex/free-smart-spending branch from b9d3477 to cc448f2 Compare September 25, 2026 08:15
@mrmps
mrmps marked this pull request as ready for review September 25, 2026 08:24
@mrmps
mrmps merged commit e0413f8 into main Sep 25, 2026
3 checks passed
@mrmps
mrmps deleted the codex/free-smart-spending branch September 25, 2026 08:24
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