Repository navigation
refactor(cost-map): remove openrouter rows, part 2 of 5 - #45666
Conversation
… google block) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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)".
|
|
kerry seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
| @@ -65132,675 +65132,6 @@ | |||
| "cache_read_input_token_cost": 2.5e-07, | |||
| "source": "https://docs.perplexity.ai/docs/agent-api/models" | |||
| }, | |||
There was a problem hiding this comment.
Deleting openrouter/openai/gpt-4o-mini makes get_model_info raise ModelNotMappedError and supports_function_calling return false. OpenRouter has no replacement lookup for this record. Receiving usage.cost does not replace capabilities or token limits
Keep or replace that metadata before deleting the rows in both maps. This violates the repository requirement against backwards-incompatible changes without a user-controlled flag
Rule Used: What: avoid backwards-incompatible changes without a user-controlled flag Why: they break current behavior for users relying on existing functionality Bad: #22164 added _run_post_custom_auth_checks unconditi... (source)
Knowledge Base Used: Provider adapters and capabilities
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merging this PR will not alter performance
|
Summary
Part 2 of 5 of removing the redundant
litellm_provider: openrouterrows from the cost map (OpenRouter bills fromusage.costsince #45640; see #45665 for why this is split into 5 stacked deletion-only PRs). Stacked on part 1Deletes the second contiguous block, 29 rows starting at
openrouter/anthropic/claude-fable-5, frommodel_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json. No source, schema or test changesCheck against the base branch:
Link to Devin session: https://app.devin.ai/sessions/24b478924abd4f92b269b1556a5fcca6
Open in Devin Desktop: https://app.devin.ai/desktop/session/24b478924abd4f92b269b1556a5fcca6?variant=devin
Requested by: @kerry-berri
Note
Devin errored when opening this Pull Request as kerry-berri.
As a fallback, Devin opened this PR as itself.