Skip to content

fix: support hyphenated Claude model names (claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5)#249

Closed
yang-builds wants to merge 1 commit into
ericc-ch:masterfrom
yang-builds:master
Closed

fix: support hyphenated Claude model names (claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5)#249
yang-builds wants to merge 1 commit into
ericc-ch:masterfrom
yang-builds:master

Conversation

@yang-builds
Copy link
Copy Markdown

@yang-builds yang-builds commented Apr 22, 2026

Closing in favor of #250 which contains only the minimal fix (single file changed).

…e-opus-4-7, claude-haiku-4-5)

Fix compatibility with Claude Code 2.1.x: translateModelName now converts
hyphenated format (claude-sonnet-4-6) to dot notation (claude-sonnet-4.6)
via regex instead of incorrectly truncating to claude-sonnet-4.

Fixes: HTTP 400 errors and wrong model version display ('Sonnet 4' vs '4.6').
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