Skip to content

fix: remove shorthand model names causing 404 API errors#453

Merged
davila7 merged 1 commit into
mainfrom
claude/getting-404-while-using-the-plugin-ra0Nv
Mar 26, 2026
Merged

fix: remove shorthand model names causing 404 API errors#453
davila7 merged 1 commit into
mainfrom
claude/getting-404-while-using-the-plugin-ra0Nv

Conversation

@davila7

@davila7 davila7 commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Removes model: sonnet, model: haiku, and model: opus shorthand values from 396 component files (395 agents + 1 skill)
  • The Anthropic API requires full model IDs (e.g., claude-sonnet-4-6), so shorthand names cause 404 not_found_error
  • Removing the model field lets Claude Code use the user's configured default model, which is the correct behavior

Context

Users reported 404 errors when using installed components:

API Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model: sonnet"}}

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

  • Verify no agent files contain model: sonnet/haiku/opus in frontmatter
  • Verify frontmatter YAML remains valid after removal (spot-checked multiple files)
  • Documentation/reference files in skills are intentionally left unchanged (they're examples, not executed)

Fixes #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.

  • Bug Fixes
    • Removed model: sonnet, model: haiku, model: opus from 396 components in cli-tool/components/ to prevent 404 not_found_error
    • Components now rely on the configured default model (no hardcoded model IDs)
    • No new components; catalog docs/components.json does not need regeneration
    • No new environment variables or secrets

Written for commit 8c00648. Summary will update on new commits.

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
@vercel

vercel Bot commented Mar 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aitmpl Ready Ready Preview, Comment Mar 25, 2026 10:26pm
aitmpl-dashboard Ready Ready Preview, Comment Mar 25, 2026 10:26pm
claude-code-templates Ready Ready Preview, Comment Mar 25, 2026 10:26pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security Audit Report

Status: ❌ FAILED

Metric Count
Total Components 753
✅ Passed 360
❌ Failed 393
⚠️ Warnings 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

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 396 files

Note: This PR contains a large number of files. cubic only reviews up to 75 files per PR, so some files may not have been reviewed.

@davila7 davila7 merged commit e42e8ba into main Mar 26, 2026
7 checks passed
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.

getting 404 while using the plugin

2 participants