Skip to content

Conversation

@antigenius0910
Copy link

@antigenius0910 antigenius0910 commented Nov 12, 2025

fix #203

Summary of Changes

This PR updates the Anthropic Claude model ID from the deprecated claude-3-5-sonnet-20241022 to the current
claude-sonnet-4-5 model ID across the AI provider configuration files.

Changes include:

  • Updated model ID in factory.js from 'claude-3-5-sonnet-20241022' to 'claude-sonnet-4-5'
  • Updated default model parameter in anthropic.js createLLM function
  • Updated default model parameter in anthropic.js createStreamingLLM function
  • Updated model display name to "Claude Sonnet 4.5"

This fix resolves the 404 not_found_error that was occurring when attempting to use the Anthropic provider for
communication analysis features.

Related Issue

This PR addresses a critical bug where users were unable to generate communication analysis using the Anthropic provider.
The application was attempting to use an outdated model ID that no longer exists in Anthropic's API, resulting in a 404
error:

❌ Error during analysis generation: 404
{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-sonnet-20241022"}}

Contributor's Self-Review Checklist

Please check the boxes that apply. This is a reminder of what we look for in a good pull request.

  • I have read the CONTRIBUTING.md document.
  • My code follows the project's coding style and architectural patterns as described in
    DESIGN_PATTERNS.md.
  • I have added or updated relevant tests for my changes.
  • I have updated the documentation to reflect my changes (if applicable).
  • My changes have been tested locally and are working as expected.

Additional Context (Optional)

Testing performed:

  • Built the application successfully with npm run build
  • Started the application with npm start
  • Verified that the application launches without errors
  • Confirmed the new model ID is properly configured in the provider factory

Files affected:

  • src/features/common/ai/factory.js (line 56)
  • src/features/common/ai/providers/anthropic.js (lines 71 and 198)

Why this change was needed:
According to the latest Anthropic API documentation, the model ID claude-3-5-sonnet-20241022 has been deprecated and
replaced with the simplified ID claude-sonnet-4-5. Continuing to use the old model ID results in API errors that prevent
users from utilizing the Anthropic provider for AI-powered communication analysis features.

- Updated model ID in factory.js from 'claude-3-5-sonnet-20241022' to 'claude-sonnet-4-5'
- Updated default model in anthropic.js createLLM function
- Updated default model in anthropic.js createStreamingLLM function
- Updated model name display to 'Claude Sonnet 4.5'

Fixes 404 not_found_error when using Anthropic provider for communication analysis.
@antigenius0910
Copy link
Author

@tarsyang when you have time. thanks

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.

1 participant