Skip to content

fix(slack-agent): default to claude-sonnet-4-6 (4-7 doesn't exist)#30

Merged
TS00 merged 2 commits intodevfrom
fix/slack-agent-model-name
Apr 28, 2026
Merged

fix(slack-agent): default to claude-sonnet-4-6 (4-7 doesn't exist)#30
TS00 merged 2 commits intodevfrom
fix/slack-agent-model-name

Conversation

@TS00
Copy link
Copy Markdown
Collaborator

@TS00 TS00 commented Apr 28, 2026

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 is 4-6; only Opus ships at 4-7. Verified live via /v1/models with the dev Anthropic key.

Override via RM_SLACK_AGENT_MODEL still works as before.

Made with Cursor

TS00 added 2 commits April 28, 2026 20:46
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
@TS00 TS00 merged commit e77c9a3 into dev Apr 28, 2026
4 checks passed
@TS00 TS00 deleted the fix/slack-agent-model-name branch April 28, 2026 23:58
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.

1 participant