chore(ask-fern): remove Claude Sonnet 3.5 v2 model #4665
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.
Remove Claude Sonnet 3.5 v2 model from Ask AI configuration
Anthropic and Bedrock are retiring Claude Sonnet 3.5 v2 (
us.anthropic.claude-3-5-sonnet-20241022-v2:0). This PR removes all references to this model from the Ask AI model configuration.What was the motivation & context behind this PR?
Claude Sonnet 3.5 v2 is being deprecated by Anthropic and AWS Bedrock, so we need to remove it from our model configuration to avoid future issues. The system will continue to work with the remaining models (claude-3.7, claude-4, claude-4.5) which are newer and more capable.
Changes made
Modified
packages/fern-docs/search-server/ask-fern/src/utils/get-model-from-config.ts:"claude-3.5"from theModelIdtype definition"claude-3.5"entry fromMODEL_CONFIGS(which mapped tous.anthropic.claude-3-5-sonnet-20241022-v2:0in us-west-2)"claude-3.5"from theFALLBACK_ORDERarrayThe default model remains
"claude-3.7"and the fallback chain is now: claude-4.5 → claude-4 → claude-3.7 → anthropic direct API.Human review checklist
"claude-3.5"as a model parameter will gracefully fall back toclaude-3.7via theresolveModelIdfunctionHow has this PR been tested?
pnpm lint:biome,pnpm lint:style,pnpm format:yaml:check)pnpm test)Link to Devin run: https://app.devin.ai/sessions/93a5a406abf942e892901ab8a33f74f2
Requested by: [email protected] (@dannysheridan)