fix: remove shorthand model names causing 404 API errors#453
Merged
Conversation
Remove `model: sonnet/haiku/opus` from 396 component files. The Anthropic API requires full model IDs (e.g., claude-sonnet-4-6), so shorthand names cause 404 errors. Removing the field lets Claude Code use the user's configured default model instead. Fixes #99 https://claude.ai/code/session_01Hqx78XZNbdfh38YGZn4g4T
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
| Metric | Count |
|---|---|
| Total Components | 753 |
| ✅ Passed | 360 |
| ❌ Failed | 393 |
| 1000 |
❌ Failed Components (Top 5)
| Component | Errors | Warnings | Score |
|---|---|---|---|
vercel-edge-function |
3 | 4 | 81/100 |
neon-expert |
2 | 2 | 88/100 |
agent-overview |
2 | 1 | 89/100 |
unused-code-cleaner |
2 | 1 | 89/100 |
context7 |
2 | 3 | 87/100 |
...and 388 more failed component(s)
📊 View Full Report for detailed error messages and all components
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
model: sonnet,model: haiku, andmodel: opusshorthand values from 396 component files (395 agents + 1 skill)claude-sonnet-4-6), so shorthand names cause404 not_found_errormodelfield lets Claude Code use the user's configured default model, which is the correct behaviorContext
Users reported 404 errors when using installed components:
The root cause is that component frontmatter specified
model: sonnet(and similar shorthands), which gets passed to the API as-is. The API rejects these as invalid model identifiers.Test plan
model: sonnet/haiku/opusin frontmatterFixes #99
https://claude.ai/code/session_01Hqx78XZNbdfh38YGZn4g4T
Summary by cubic
Removed shorthand model names from component frontmatter to stop 404 errors and use the user’s default model. Fixes invalid model IDs being sent to the Anthropic API.
model: sonnet,model: haiku,model: opusfrom 396 components incli-tool/components/to prevent404 not_found_errordocs/components.jsondoes not need regenerationWritten for commit 8c00648. Summary will update on new commits.