chore: increase price weight in routing score - #2312
Conversation
Bump PRICE_WEIGHT from 0.3 to 0.6 and IMAGE_PRICE_WEIGHT from 0.5 to 1.0 so price has a larger influence than any single other factor (uptime, throughput, latency, cache) in weighted routing. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR modifies the provider selection routing logic by increasing price weighting in the scoring algorithm. The ChangesProvider Price Weighting
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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.
Pull request overview
Adjusts routing weights so price has greater influence in provider selection scoring.
Changes:
PRICE_WEIGHTraised from 0.3 to 0.6IMAGE_PRICE_WEIGHTraised from 0.5 to 1.0
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
PRICE_WEIGHTfrom 0.3 → 0.6 andIMAGE_PRICE_WEIGHTfrom 0.5 → 1.0 inpackages/actions/src/get-cheapest-from-available-providers.ts.Test plan
pnpm formatpnpm build🤖 Generated with Claude Code
Summary by CodeRabbit