Skip to content

Fix OpenRouter Anthropic weak/editor model name format (dash vs dot)#5170

Open
Cyberfilo wants to merge 1 commit into
Aider-AI:mainfrom
Cyberfilo:fix/openrouter-anthropic-dash-vs-dot-model-names
Open

Fix OpenRouter Anthropic weak/editor model name format (dash vs dot)#5170
Cyberfilo wants to merge 1 commit into
Aider-AI:mainfrom
Cyberfilo:fix/openrouter-anthropic-dash-vs-dot-model-names

Conversation

@Cyberfilo
Copy link
Copy Markdown
Contributor

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`).

Entry weak_model_name was editor_model_name was
`openrouter/anthropic/claude-opus-4.6` `...-haiku-4-5` ❌ `...-sonnet-4-5` ❌
`openrouter/anthropic/claude-opus-4.7` `...-haiku-4-5` ❌ `...-sonnet-4-5` ❌
`openrouter/anthropic/claude-sonnet-4.5` `...-haiku-4-5` ❌ `...-sonnet-4-5` ❌
`openrouter/anthropic/claude-haiku-4.5` `...-haiku-4-5` ❌ (not present)

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

  • YAML validity: `python -c "import yaml; yaml.safe_load(open('aider/resources/model-settings.yml'))"` parses cleanly.
  • Diff: 7 lines changed, all dash → dot in `weak_model_name` / `editor_model_name` fields.
  • The target entries (`openrouter/anthropic/claude-haiku-4.5`, `openrouter/anthropic/claude-sonnet-4.5`) already exist in this file at the dotted names.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant