Skip to content

Conversation

@edwinjosechittilappilly
Copy link
Collaborator

This pull request updates the list of Anthropic models in anthropic_constants.py to include new model versions, clarify which models are deprecated, and reorganize the list for better clarity. The main changes are the addition of new models, explicit marking of deprecated models, and improved grouping of models by their status.

Model updates and additions:

  • Added new Anthropic models: claude-opus-4-5-20251101, claude-haiku-4-5-20251001, claude-3-5-haiku-20241022, and claude-3-haiku-20240307 as supported models with tool calling enabled.

Deprecation and organization:

  • Moved previously listed models (claude-3-7-sonnet-latest, claude-3-5-sonnet-latest, claude-3-5-haiku-latest, claude-3-opus-latest) to a new "Deprecated models" section and explicitly marked them as deprecated.
  • Updated legacy models claude-2.1 and claude-2.0 to be marked as deprecated and grouped them under deprecated models, clarifying their tool calling support as false.
  • Reorganized the model list to clearly separate currently

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 3, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-constants

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the Anthropic model constants to reflect current model availability, adding new Claude 4.5 and 4.1 series models, reorganizing the model list for clarity, and explicitly marking deprecated models. The changes update model metadata used throughout the codebase to determine which Anthropic models are available and their capabilities.

Key Changes

  • Added six new Claude 4.x series models (opus-4-5, haiku-4-5, sonnet-4-5, opus-4-1, opus-4, sonnet-4) and moved two Claude 3.x models from deprecated to active status
  • Reorganized the model list with a clear "Deprecated models" section and moved all *-latest variant models to the deprecated section
  • Updated Claude 2.x models (2.1, 2.0) to explicitly include the deprecated=True flag

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

create_model_metadata(provider="Anthropic", name="claude-3-5-sonnet-latest", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-latest", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-opus-latest", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True),
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The model claude-3-5-haiku-20241022 was previously marked as deprecated but is now listed as a currently supported model. This appears inconsistent with claude-3-5-sonnet-20241022 (line 39) which remains deprecated. If this model is being un-deprecated, please verify this is correct. If both models were released around the same time (October 2024), it's unclear why one would be deprecated and the other not.

Suggested change
create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True, deprecated=True),

Copilot uses AI. Check for mistakes.
create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-latest", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-opus-latest", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-haiku-20240307", icon="Anthropic", tool_calling=True),
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The model claude-3-haiku-20240307 was previously marked as deprecated but is now listed as a currently supported model. Given this model is from March 2024 (over 1.5 years old), it's unusual to un-deprecate it. Please verify this change is intentional and that this older model should indeed be actively supported.

Suggested change
create_model_metadata(provider="Anthropic", name="claude-3-haiku-20240307", icon="Anthropic", tool_calling=True),
create_model_metadata(provider="Anthropic", name="claude-3-haiku-20240307", icon="Anthropic", tool_calling=True, deprecated=True),

Copilot uses AI. Check for mistakes.
Copy link
Member

@Cristhianzl Cristhianzl left a comment

Choose a reason for hiding this comment

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

lgtm

@github-actions github-actions bot added the lgtm This PR has been approved by a maintainer label Dec 3, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Dec 3, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Dec 3, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Dec 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 15%
15.49% (4246/27395) 8.64% (1811/20955) 9.72% (587/6035)

Unit Test Results

Tests Skipped Failures Errors Time
1671 0 💤 0 ❌ 0 🔥 20.871s ⏱️

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-1.7.0@3a2395b). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##             release-1.7.0   #10862   +/-   ##
================================================
  Coverage                 ?   32.56%           
================================================
  Files                    ?     1367           
  Lines                    ?    63354           
  Branches                 ?     9374           
================================================
  Hits                     ?    20632           
  Misses                   ?    41682           
  Partials                 ?     1040           
Flag Coverage Δ
backend 51.42% <ø> (?)
frontend 14.35% <ø> (?)
lfx 40.02% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/lfx/src/lfx/base/models/anthropic_constants.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@edwinjosechittilappilly edwinjosechittilappilly enabled auto-merge (squash) December 3, 2025 20:05
@edwinjosechittilappilly edwinjosechittilappilly merged commit 9be8720 into release-1.7.0 Dec 3, 2025
83 checks passed
@edwinjosechittilappilly edwinjosechittilappilly deleted the fix-constants branch December 3, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants