fix: Fix retired claude-3-haiku-20240307 default causing sandbox run failures (#24)#51
Merged
Merged
Conversation
…haiku The direct Anthropic model claude-3-haiku-20240307 has been retired and now returns 404 not_found_error from the Anthropic API, causing sandbox/playground runs that keep the defaults to fail generation (and show 0% coverage). Swap the hardcoded default to the current anthropic:claude-3-5-haiku-20241022 in the sandbox run route, the v1 evaluations run route, and the playground model selector. Refs #24 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L1QemnhVU3wqvW8RPHcwx2
claude-3-haiku-20240307 default causing sandbox run failures (#24)
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
Fixes #24. Sandbox/playground runs that kept the default model list were failing generation with a 404 from Anthropic:
anthropic:claude-3-haiku-20240307has been retired on the direct Anthropic API, and the client (src/lib/llm-clients/anthropic-client.ts) passes the model ID straight through to/v1/messages, so the call 404s. Because the failed generation produces no gradable output, the run's Macro Coverage Overview also showed 0%.This model was hardcoded as a default in three places, so every run keeping the defaults hit it.
Changes
Replaced the retired
anthropic:claude-3-haiku-20240307with the currentanthropic:claude-3-5-haiku-20241022(already present inmodel-version-registry.ts) in the default model lists:src/app/api/sandbox/run/route.ts—DEFAULT_ADVANCED_MODELSsrc/app/api/v1/evaluations/run/route.ts— API default modelssrc/app/sandbox/components/RunEvaluationModal.tsx— playground available + default model listsTest plan
ANTHROPIC_API_KEY; not runnable in this environment).Risks
Related Issues
🤖 Generated with Claude Code
https://claude.ai/code/session_01L1QemnhVU3wqvW8RPHcwx2
Generated by Claude Code