Fix OpenRouter Anthropic weak/editor model name format (dash vs dot)#5170
Open
Cyberfilo wants to merge 1 commit into
Open
Fix OpenRouter Anthropic weak/editor model name format (dash vs dot)#5170Cyberfilo wants to merge 1 commit into
Cyberfilo wants to merge 1 commit into
Conversation
Four `openrouter/anthropic/claude-*` entries (`claude-opus-4.6`, `claude-opus-4.7`, `claude-sonnet-4.5`, `claude-haiku-4.5`) referenced their weak and editor models with the dashed naming convention used by Anthropic's native API (`claude-haiku-4-5`, `claude-sonnet-4-5`) instead of OpenRouter's dotted convention (`claude-haiku-4.5`, `claude-sonnet-4.5`). The dashed names do not exist as `openrouter/anthropic/` entries in either `aider/resources/model-settings.yml` or upstream litellm's pricing JSON. As a result, aider's model resolver falls back to defaults for the weak and editor models even when the user has explicitly selected a 4.x OpenRouter route. Normalizes seven references across the four entries to match the OpenRouter naming convention. No new entries; only the weak_model_name / editor_model_name fields change.
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.
Summary
Four `openrouter/anthropic/claude-*` entries in `aider/resources/model-settings.yml` reference their weak and editor models with the dashed naming convention used by Anthropic's native API (`claude-haiku-4-5`, `claude-sonnet-4-5`) instead of the dotted convention used by OpenRouter (`claude-haiku-4.5`, `claude-sonnet-4.5`).
The dashed names do not exist as `openrouter/anthropic/` entries in this file or in upstream litellm's pricing JSON (which aider pulls model metadata from). Result: aider's model resolver falls back to defaults for the weak/editor models even when the user has explicitly selected a 4.x OpenRouter route.
Fix
Normalize seven references to the dotted OpenRouter naming. No new entries; only the `weak_model_name` / `editor_model_name` fields change.
Test plan