-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
The application fails to generate communication analysis due to an outdated Claude model ID. The error
"model: claude-3-5-sonnet-20241022" with a 404 "not_found_error" is thrown when attempting to use
Anthropic's Claude for analysis features.
To Reproduce
Steps to reproduce the behavior:
- Start the application with
npm start - Attempt to use any feature that generates communication analysis with the Anthropic provider
- Observe the console/log output
- See error:
❌ Error during analysis generation: 404 {"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-sonnet-20241022"},"request_id":"req_011CV4L7YXscLtxoGzHiGZHF"}
Expected behavior
The application should successfully generate communication analysis using the current Claude model without
errors. Communication analysis should be visible in the UI.
Screenshots
Error log output:
❌ Error during analysis generation: 404
{"type":"error","error":{"type":"not_found_error","message":"model:
claude-3-5-sonnet-20241022"},"request_id":"req_011CV4L7YXscLtxoGzHiGZHF"}
Environment (please complete the following information):
- OS: macOS (Darwin 25.1.0)
- App Version: [from package.json]
Additional context
The issue is caused by using the outdated model ID claude-3-5-sonnet-20241022 which no longer exists in
Anthropic's API. The model ID should be updated to the current version claude-sonnet-4-5 as per the
latest Anthropic API documentation.
Affected Files:
src/features/common/ai/factory.js(line 56)src/features/common/ai/providers/anthropic.js(lines 71 and 198)
Fix:
Update all references from claude-3-5-sonnet-20241022 to claude-sonnet-4-5 in the affected files.