Repository navigation
fix(cost-map): remove duplicate openrouter/perceptron/perceptron-mk1.5 entry - #43273
Merged
Merged
Conversation
…5 entry Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration
Bot
requested review from
mateo-berri and
ryan-crabbe-berri
as code owners
September 26, 2026 02:44
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
devin-ai-integration
Bot
requested a review
from kerry-berri
as a code owner
September 26, 2026 02:44
Contributor
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
shrey-berri
pushed a commit
that referenced
this pull request
Sep 26, 2026
…5 entry Ports the change from #43273 so the duplicate-key schema test passes on this branch. It no-ops once main carries the same fix
3 of 6 tasks
Merged
7 tasks done
6 tasks done
shrey-berri
added a commit
that referenced
this pull request
Sep 26, 2026
…5 entry Ports the change from #43273 so the duplicate-key schema test passes on this branch. It no-ops once main carries the same fix
5 tasks done
4 of 6 tasks
3 of 5 tasks
This was referenced Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Problem this solves:
openrouter/perceptron/perceptron-mk1.5is defined twice in the cost maptest_price_map_has_no_duplicate_keysis red on main and every open PRHow it solves it:
/api/v1/modelsas of 2026-09-25User Flow
Before: a developer routing tool calls to this model through the proxy sees the gateway report that the model cannot call tools
openrouter/perceptron/perceptron-mk1.5inmodel_listand starts the proxy"supports_function_calling": falseand"supports_tool_choice": falseAfter: the same call reports the model's real capabilities
openrouter/perceptron/perceptron-mk1.5inmodel_listand starts the proxy"supports_function_calling": true,"supports_tool_choice": trueand"supports_audio_input": truePre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/unit/test_model_prices_schema.py::test_price_map_has_no_duplicate_keysis the regression test and goes from red to green)uv run pytest tests/unit/test_model_prices_schema.py -q@greptileaito re-request a review after pushing changes)Screenshots / Proof of Fix
Setup: a DB-free proxy at each commit with
LITELLM_LOCAL_MODEL_COST_MAP=Trueand this configBefore (2530255)
curl -s localhost:4010/model/info -H "Authorization: Bearer $LITELLM_MASTER_KEY" | jq '.data[] | select(.model_name=="perceptron-mk1.5") | .model_info | {key, supports_function_calling, supports_tool_choice, supports_audio_input}'{ "key": "openrouter/perceptron/perceptron-mk1.5", "supports_function_calling": false, "supports_tool_choice": false, "supports_audio_input": false }After (e2535ba)
curl -s localhost:4011/model/info -H "Authorization: Bearer $LITELLM_MASTER_KEY" | jq '.data[] | select(.model_name=="perceptron-mk1.5") | .model_info | {key, supports_function_calling, supports_tool_choice, supports_audio_input}'{ "key": "openrouter/perceptron/perceptron-mk1.5", "supports_function_calling": true, "supports_tool_choice": true, "supports_audio_input": true }Type
🐛 Bug Fix
Caveats (if any)
Low
Final Attestation
Link to Devin session: https://app.devin.ai/sessions/96982ad7232940348b9d4b447bab43ee
Open in Devin Desktop: https://app.devin.ai/desktop/session/96982ad7232940348b9d4b447bab43ee?variant=devin