Repository navigation
chore(cost-map): add search_free_requests to the model prices schema - #47635
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@litellm-stampbot |
1 similar comment
|
@litellm-stampbot |
litellm-stampbot: risk lowApproved at Rules (
Cursor Bugbot: Low Risk at Pushes do not re-run this check. Comment |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9df258b. Configure here.
kerry-berri
left a comment
There was a problem hiding this comment.
Low risk by rule and by judgement at 9df258b
…erriAI#47635) Co-authored-by: kerry <kerry@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Backport of BerriAI#47635 to stable/1.106.x Cherry-picked from 2cba80c (main)
The provider pricing sync can't open cost map PRs right now because 47 rows gained
search_free_requestsin #47494 and the legacy model prices schema never got that field. This adds it to the schema so the sync can publish againDetails
TLDR
Problem this solves:
search_free_requestsHow it solves it:
search_free_requeststo$defs.modelEntry.propertiesby handSearchFreeRequeststype, with count, period and shared_groupPre-Submission checklist
uv run pytest tests/unit/<your_test_file>.py -vScreenshots / Proof of Fix
Before (dc9c31e)
The catalog uses fields its schema does not define and the sync cannot classify: search_free_requestsAfter (9df258b)
python -m pytest tests/unit/test_cost_map_guard.py -qreports30 passedsearch_free_requests, so the service keeps it as an existing property instead of refusing itType
🚄 Infrastructure
Caveats (if any)
Low
Link to Devin session: https://app.devin.ai/sessions/5bae2a21b4b74b68bdacd0577c58b117
Open in Devin Desktop: https://app.devin.ai/desktop/session/5bae2a21b4b74b68bdacd0577c58b117?variant=devin
Requested by: @kerrylu-berri
Note
Low Risk
Schema-only change to a legacy JSON Schema file; no runtime logic or pricing behavior changes.
Overview
Unblocks provider pricing sync by defining the optional
search_free_requestsfield on model entries inmodel_prices_and_context_window.schema.json, so the catalog PR service no longer rejects rows that already carry this property.The new schema object describes free Google Search grounding allowances: required
count,period(dayormonth), andshared_group(non-empty string), with no extra properties—aligned with the in-repoSearchFreeRequestsshape used by catalog tests and cost tracking.Reviewed by Cursor Bugbot for commit 9df258b. Bugbot is set up for automated code reviews on this repo. Configure here.