Fix eval.js default model: claude-sonnet-4-20250514 has been retired - #74
Merged
Merged
Conversation
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.
5 tasks
Valiunia
approved these changes
Aug 5, 2026
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.
Summary
npm run evalwas failing for everyone (not just one person's setup) with:scripts/eval.jshardcodesclaude-sonnet-4-20250514as the default for bothEVAL_MODELandEVAL_JUDGE_MODEL. That model has since been retired by the API, sonpm run eval <skill>404sfor anyone who doesn't already know to override it via env var.
Fix
Default both to
claude-sonnet-5instead. Still fully overridable viaEVAL_MODEL/EVAL_JUDGE_MODELenv vars, so this doesn't remove any flexibility, it just fixes theout-of-the-box default.
Test plan
npm run eval mapbox-token-securityruns successfully with no env var override, scores 44/45 (97.8%)npm run checkpasses (format, spellcheck, markdown lint, skill validation)🤖 Generated with Claude Code