fix(slack-agent): default to claude-sonnet-4-6 (4-7 doesn't exist)#30
Merged
fix(slack-agent): default to claude-sonnet-4-6 (4-7 doesn't exist)#30
Conversation
…nt loop, write tools
I picked claude-sonnet-4-7 as the default model in Phase 3b based on
the existing claude-opus-4-7 reference in the codebase. Anthropic only
ships Opus at 4-7 — Sonnet's latest alias is 4-6. The agent was
404ing on every Slack message after Phase 3b shipped:
NotFoundError: 404 {"type":"error","error":{"type":"not_found_error",
"message":"model: claude-sonnet-4-7"}}
Fix: default to claude-sonnet-4-6 (verified live via /v1/models with
the dev Anthropic key). Operators can still override with
RM_SLACK_AGENT_MODEL.
Caught from dev journalctl after the user reported a 404 trying to
chat the bot.
Made-with: Cursor
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.
Caught from dev logs after Phase 3b shipped — every Slack message 404'd because I picked a model name (
claude-sonnet-4-7) that doesn't exist on Anthropic's API. Sonnet's latest alias is4-6; only Opus ships at4-7. Verified live via/v1/modelswith the dev Anthropic key.Override via
RM_SLACK_AGENT_MODELstill works as before.Made with Cursor