Skip to content

Conversation

@jemshid
Copy link

@jemshid jemshid commented Dec 21, 2025

Description

Updates the Anthropic provider's model list to include current Claude models and remove deprecated ones.

Changes

  • ✨ Add Claude 4.5 models (Sonnet, Opus, Haiku)
  • ✨ Add Claude 4.1 and 4.0 models
  • ✨ Add Claude 3.7 Sonnet
  • 🗑️ Remove deprecated Claude 2.x models (claude-2.0, claude-2.1)
  • 🗑️ Remove deprecated Claude 3.5 Sonnet (claude-3-5-sonnet-20240620)

Files Changed

  • packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers/anthropic.py

Notes

  • Keeps all still-supported Claude 3.0 and 3.5 models
  • Model list now reflects Anthropic's current offerings as of January 2025
  • No feature additions or behavior changes - pure model list update

Copy link
Member

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jemshid Thank you for contributing the updated model list for Anthropic! 🤗

Right now, Jupyter AI v2 is in maintenance mode. Our goal for JAI v2 right now is to preserve the stable experience that users expect & keep changes limited to bug fixes & patches. All feature development is occurring on the new main branch (JAI v3) and in the broader @jupyter-ai-contrib org.

Even though the changes to config_manager.py and chat_handlers/base.py look OK, they are feature additions specific to the Anthropic provider. These changes risk introducing a bug and don't provide value for non-Anthropic users. Can you simplify this PR by just updating the model list in anthropic.py, and revert all other changes? I'd be happy to merge this PR after.

BTW, CHANGELOG.md should not be manually updated; that file is automatically updated every release by our release scripts.

- Add Claude 4.5 models (Sonnet, Opus, Haiku)
- Add Claude 4.1 and 4.0 models
- Add Claude 3.7 Sonnet
- Remove deprecated Claude 2.x models
- Remove deprecated Claude 3.5 Sonnet (20240620)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@jemshid jemshid force-pushed the fix/deprecated-anthropic-models-2x branch from be3672d to 710c2bf Compare January 8, 2026 14:34
@jemshid jemshid changed the title feat: Handle deprecated Anthropic models gracefully Update Anthropic model list Jan 8, 2026
@jemshid
Copy link
Author

jemshid commented Jan 8, 2026

Thank you for the feedback! I've simplified the PR as requested.

Changes made:

  • ✅ Reverted all changes to config_manager.py
  • ✅ Reverted all changes to chat_handlers/base.py
  • ✅ Deleted deprecated_models.py
  • ✅ Reverted CHANGELOG.md (understood it's auto-generated)
  • ✅ Reverted all test changes

What remains:

  • Only the model list update in anthropic.py
  • Added current Claude 4.5, 4.1, 4.0, and 3.7 models
  • Removed deprecated Claude 2.x and old 3.5 Sonnet (20240620)

The PR now contains just 1 file change with no feature additions - purely a model list update suitable for JAI v2 maintenance mode. Ready for your review!

Copy link
Collaborator

@srdas srdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This a simple fix that looks good. We have taken a similar approach in the past.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@srdas srdas added the enhancement New feature or request label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants