Model Selection Fails for Slash Commands with Anthropic API

Resolved 💬 3 comments Opened Aug 4, 2025 by lpasqualis Closed Aug 15, 2025

Bug Description
The slash command documentation (https://docs.anthropic.com/en/docs/claude-code/slash-commands#frontmatter) mentions that a model can be specified for a slash command, however when I do specify it I get errors when using the command.

For example:

/some-command-using-sonner is running…

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

It is unclear to me if slash commands support model selection or not.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.67
  • Feedback ID: b821faac-f0ea-40e6-ab01-3ede4de9635f

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗