Skip to content

Fix eval.js default model: claude-sonnet-4-20250514 has been retired - #74

Merged
mattpodwysocki merged 1 commit into
mapbox:mainfrom
mattpodwysocki:fix-eval-default-model
Aug 5, 2026
Merged

Fix eval.js default model: claude-sonnet-4-20250514 has been retired#74
mattpodwysocki merged 1 commit into
mapbox:mainfrom
mattpodwysocki:fix-eval-default-model

Conversation

@mattpodwysocki

Copy link
Copy Markdown
Contributor

Summary

npm run eval was failing for everyone (not just one person's setup) with:

Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model: claude-sonnet-4-20250514"}}

scripts/eval.js hardcodes claude-sonnet-4-20250514 as the default for both EVAL_MODEL and
EVAL_JUDGE_MODEL. That model has since been retired by the API, so npm run eval <skill> 404s
for anyone who doesn't already know to override it via env var.

Fix

Default both to claude-sonnet-5 instead. Still fully overridable via EVAL_MODEL /
EVAL_JUDGE_MODEL env vars, so this doesn't remove any flexibility, it just fixes the
out-of-the-box default.

Test plan

  • npm run eval mapbox-token-security runs successfully with no env var override, scores 44/45 (97.8%)
  • npm run check passes (format, spellcheck, markdown lint, skill validation)

🤖 Generated with Claude Code

npm run eval was failing with a 404 not_found_error for anyone not
overriding EVAL_MODEL/EVAL_JUDGE_MODEL, since the hardcoded default model
ID is no longer served by the API. Default to claude-sonnet-5 instead.
@mattpodwysocki
mattpodwysocki requested a review from a team as a code owner August 4, 2026 18:16
@mattpodwysocki
mattpodwysocki merged commit c482cc8 into mapbox:main Aug 5, 2026
2 checks passed
@mattpodwysocki
mattpodwysocki deleted the fix-eval-default-model branch August 5, 2026 13:27
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.

2 participants