Skip to content

fix: correct claude-sonnet-4.6 model ID to use hyphens#2947

Open
yuxuan-7814 wants to merge 1 commit into
sipeed:mainfrom
yuxuan-7814:fix/2941-claude-sonnet-model-id
Open

fix: correct claude-sonnet-4.6 model ID to use hyphens#2947
yuxuan-7814 wants to merge 1 commit into
sipeed:mainfrom
yuxuan-7814:fix/2941-claude-sonnet-model-id

Conversation

@yuxuan-7814
Copy link
Copy Markdown
Contributor

📝 Description

Fix the default Anthropic model configuration where claude-sonnet-4.6 was using an invalid model ID. The Model field should contain the canonical Anthropic API ID claude-sonnet-4-6 (with hyphens), not the dotted alias. This bug caused HTTP 404 errors on first use with the error message: "model: claude-sonnet-4.6 was not found. Did you mean claude-sonnet-4-6?"

🗣️ Type of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)

🤖 AI Code Generation

  • 🤖 Fully AI-generated (100% AI, 0% Human)

🔗 Related Issue

Closes #2941

📚 Technical Context

🧪 Test Environment

  • Hardware: PC
  • OS: Linux
  • Model/Provider: N/A (config change)

☑️ Checklist

  • My code/docs follow the style of this project.
  • I have performed a self-review of my own changes.

The default config seeded 'claude-sonnet-4.6' as the Model field value,
but Anthropic API expects the canonical ID 'claude-sonnet-4-6' with
hyphens. This caused HTTP 404 errors on first use.

Fixes sipeed#2941
@afjcjsbx
Copy link
Copy Markdown
Collaborator

Hi, it sounds like the PR involves more things than what you describe

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.

Default config seeds claude-sonnet-4.6 with invalid model ID (uses dots, Anthropic API requires hyphens)

2 participants