docs: update scheduler cost tracking and LLM provider aliases (fixes #807)#812
Conversation
…807) - Replace fake $0.0001 cost constant in Mermaid diagrams with real ModelPricing flow in async-agent-scheduler.mdx and async-scheduler.mdx - Add Note callouts explaining PR #2171 real cost tracking behavior - Update Budget Control accordions to reflect accurate per-token spend - Replace sample log lines in scheduler.mdx with real Run cost format - Add Safety Features Note in scheduler.mdx about --max-cost accuracy - Add Scheduler Integration H2 section to cost-tracking.mdx - Append alias verification note to custom-provider.mdx Note block Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Warning Review limit reached
More reviews will be available in 17 minutes and 56 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Code Review
This pull request updates the documentation across several files to reflect real cost tracking and pricing features introduced in PR #2171, including how AgentScheduler and AsyncAgentScheduler calculate per-token spend and how to register custom models. It also documents provider alias registration fixes. The feedback suggests a minor phrasing improvement in docs/cli/cost-tracking.mdx to make the explanation of cost tracking clearer.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
|
||
| ## Scheduler Integration | ||
|
|
||
| `AgentScheduler` and `AsyncAgentScheduler` price every run through `ModelPricing` (since [PR #2171](https://github.com/MervinPraison/PraisonAI/pull/2171)). Any model you register here becomes spendable from the scheduler's `max_cost` brake: |
There was a problem hiding this comment.
The phrase "becomes spendable from" is slightly awkward. Using "is tracked against" is more idiomatic and clearer for readers.
`AgentScheduler` and `AsyncAgentScheduler` price every run through `ModelPricing` (since [PR #2171](https://github.com/MervinPraison/PraisonAI/pull/2171)). Any model you register here is tracked against the scheduler's `max_cost` brake:
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Summary
total_cost += ~$0.0001Mermaid nodes inasync-agent-scheduler.mdxandasync-scheduler.mdxwith the realModelPricingcost flow introduced in PR #2171<Note>callouts explaining the before/after behavior for cost tracking in both scheduler feature docsscheduler.mdx(Estimated cost this run: $0.0001) with the realRun cost: $X (model=..., in=..., out=...)format<Note>inscheduler.mdxabout--max-costaccuracy## Scheduler IntegrationH2 section tocost-tracking.mdxshowing howModelPricing/DEFAULT_PRICINGconnects to the schedulermax_costbrakecustom-provider.mdxconfirmingoai/claude/gemini/google_genainow resolve correctlyFixes #807
Generated with Claude Code