Skip to content

feat: Update model metadata for Anthropic, Google, OpenAI#11916

Merged
HimavarshaVS merged 20 commits intomainfrom
fix-update-models
Feb 27, 2026
Merged

feat: Update model metadata for Anthropic, Google, OpenAI#11916
HimavarshaVS merged 20 commits intomainfrom
fix-update-models

Conversation

@edwinjosechittilappilly
Copy link
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly commented Feb 26, 2026

Add and reorganize model metadata across providers:

  • Anthropic: add "claude-opus-4-6" and "claude-sonnet-4-6", reinsert "claude-opus-4-5-20251101" and mark older claude-3 haiku models as deprecated.
  • Google Generative AI: add preview model "gemini-3.1-pro-preview".
  • OpenAI: add "gpt-5.2" (reasoning) and add "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano" as tool-calling models; convert "gpt-4.5-preview" to deprecated and adjust deprecation/not_supported flags for several o* reasoning models (e.g. o1-mini deprecated, other o1/o3/o4 variants marked not_supported as appropriate).

These changes update available/preview/deprecated flags and add newly supported model entries to the unified metadata lists.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added support for new Claude models: Opus 4-6 and Sonnet 4-6
    • Added new OpenAI models: GPT-5.2 and GPT-4.1 variants (GPT-4.1, GPT-4.1-mini, GPT-4.1-nano)
    • Added Google Gemini 3.1 Pro Preview model
  • Chores

    • Deprecated older Claude Haiku models
    • Updated dependencies to latest versions

Add and reorganize model metadata across providers:

- Anthropic: add "claude-opus-4-6" and "claude-sonnet-4-6", reinsert "claude-opus-4-5-20251101" and mark older claude-3 haiku models as deprecated.
- Google Generative AI: add preview model "gemini-3.1-pro-preview".
- OpenAI: add "gpt-5.2" (reasoning) and add "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano" as tool-calling models; convert "gpt-4.5-preview" to deprecated and adjust deprecation/not_supported flags for several o* reasoning models (e.g. o1-mini deprecated, other o1/o3/o4 variants marked not_supported as appropriate).

These changes update available/preview/deprecated flags and add newly supported model entries to the unified metadata lists.
Copilot AI review requested due to automatic review settings February 26, 2026 04:14
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 26, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

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.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

This PR updates model configurations and availability metadata by adding newer Claude, GPT, and Gemini model variants, deprecating older versions, and updating the vlmrun dependency version. Changes are isolated to model definition constants and a component index configuration file.

Changes

Cohort / File(s) Summary
Component Index Configuration
src/lfx/src/lfx/_assets/component_index.json
Updated model options to reflect newer Claude (claude-opus-4-6, claude-sonnet-4-6), GPT (gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, gpt-4.5-preview, gpt-5.2), and Gemini 3.1 Pro Preview variants. Removed older Claude versions and updated vlmrun dependency from 0.1.35 to 0.5.4 with corresponding hash update.
Anthropic Model Constants
src/lfx/src/lfx/base/models/anthropic_constants.py
Added three new Claude model entries (claude-opus-4-6, claude-sonnet-4-6, claude-opus-4-5-20251101) as tool-callable. Deprecated two older Haiku variants (claude-3-5-haiku-20241022, claude-3-haiku-20240307).
Google Model Constants
src/lfx/src/lfx/base/models/google_generative_ai_constants.py
Added gemini-3.1-pro-preview as a new tool-callable preview model under the Gemini 3.0 section.
OpenAI Model Constants
src/lfx/src/lfx/base/models/openai_constants.py
Added gpt-4.1, gpt-4.1-mini, gpt-4.1-nano as active tool-callable models and gpt-5.2 as a new model entry. Reclassified reasoning and higher-tier models (o1, o3 variants) with deprecated or not\_supported status markers; deprecated gpt-4.5-preview.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 5 | ❌ 2

❌ Failed checks (1 error, 1 warning)

Check name Status Explanation Resolution
Test Coverage For New Implementations ❌ Error PR modifies model constants files (anthropic, openai, google_generative_ai) and component_index.json without adding corresponding test files. Add test files to validate new model configurations, deprecated flags, and tool_calling capabilities are properly registered in the system.
Test Quality And Coverage ⚠️ Warning PR adds new model metadata entries for Anthropic, Google, and OpenAI but includes no tests validating these additions or their properties. Add parametrized tests to verify each new model exists with correct metadata flags (tool_calling, reasoning, deprecated) in the unified models list.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Test File Naming And Structure ✅ Passed This PR contains no test files; only model constants and metadata configuration files were modified.
Excessive Mock Usage Warning ✅ Passed The PR modifies only configuration and constants files, with no test file modifications, making the Excessive Mock Usage Warning check not applicable.
Title check ✅ Passed The title accurately describes the main change: updating model metadata for three providers (Anthropic, Google, OpenAI), which is the core objective of all modifications across the pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

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

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

Updates the unified model metadata lists and the UI model selectors to reflect newly added, preview, and deprecated LLM models across Anthropic, Google Generative AI, and OpenAI.

Changes:

  • Added new model metadata entries (OpenAI: gpt-5.2, gpt-4.1*; Google: gemini-3.1-pro-preview; Anthropic: claude-*-4-6).
  • Adjusted lifecycle flags (preview, deprecated, not_supported) for several existing models.
  • Updated the component index JSON options/defaults to include the new model names.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/lfx/src/lfx/base/models/openai_constants.py Adds OpenAI model entries and adjusts flags for gpt-4.5-preview and o* reasoning models.
src/lfx/src/lfx/base/models/google_generative_ai_constants.py Adds gemini-3.1-pro-preview to Google Generative AI model metadata.
src/lfx/src/lfx/base/models/anthropic_constants.py Adds Claude 4.6 models and marks older Claude Haiku models as deprecated.
src/lfx/src/lfx/_assets/component_index.json Updates model dropdown options/defaults and bumps dependency/version metadata in the generated index.
Comments suppressed due to low confidence (2)

src/lfx/src/lfx/_assets/component_index.json:1

  • This PR updates a dependency version inside the generated component_index.json without showing the corresponding source-of-truth change (e.g., lockfile / dependency manifest update). If component_index.json is generated, it’s better to update the actual dependency definition and regenerate the index (so the “why” and provenance are auditable), rather than editing the generated artifact directly.
    src/lfx/src/lfx/_assets/component_index.json:1
  • The Anthropic model constants keep claude-3-5-haiku-20241022 and claude-3-haiku-20240307 as deprecated=True, but those models are removed entirely from the UI options list here. If the intent is “still selectable but labeled deprecated,” these options should remain present (with whatever UI mechanism indicates deprecation). If the intent is “not selectable,” consider reflecting that in metadata as not_supported=True (or removing the entries) to keep the unified metadata and UI selector behavior consistent.

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

),
create_model_metadata(
provider="OpenAI", name="gpt-4.5-preview", icon="OpenAI", tool_calling=True, preview=True, not_supported=True
provider="OpenAI", name="gpt-4.5-preview", icon="OpenAI", tool_calling=True, preview=True, deprecated=True
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

Having preview=True and deprecated=True on the same entry is semantically unclear (is it still being previewed or already being phased out?), and deprecated=True combined with not_supported=True is also ambiguous (deprecated usually implies still usable but discouraged). Consider standardizing lifecycle semantics so each model’s state is unambiguous (e.g., avoid preview+deprecated together, and use either deprecated or not_supported unless there’s a clearly documented meaning for the combination).

Copilot uses AI. Check for mistakes.
),
create_model_metadata(
provider="OpenAI", name="o4-mini-high", icon="OpenAI", reasoning=True, preview=True, not_supported=True
provider="OpenAI", name="o1-mini", icon="OpenAI", reasoning=True, not_supported=True, deprecated=True
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

Having preview=True and deprecated=True on the same entry is semantically unclear (is it still being previewed or already being phased out?), and deprecated=True combined with not_supported=True is also ambiguous (deprecated usually implies still usable but discouraged). Consider standardizing lifecycle semantics so each model’s state is unambiguous (e.g., avoid preview+deprecated together, and use either deprecated or not_supported unless there’s a clearly documented meaning for the combination).

Copilot uses AI. Check for mistakes.
Comment on lines +69 to +72
create_model_metadata(provider="OpenAI", name="o3-mini", icon="OpenAI", reasoning=True, not_supported=True),
create_model_metadata(provider="OpenAI", name="o3", icon="OpenAI", reasoning=True, not_supported=True),
create_model_metadata(provider="OpenAI", name="o3-pro", icon="OpenAI", reasoning=True, not_supported=True),
create_model_metadata(provider="OpenAI", name="o4-mini", icon="OpenAI", reasoning=True, not_supported=True),
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

This change drops preview=True from these reasoning models (they were previously marked as preview in this same section). If any UI/logic relies on preview to label or group models, this will change behavior beyond the stated “adjust not_supported flags”. If they are still considered preview models, add preview=True back; if not, update the surrounding comments/grouping to reflect they’re no longer preview.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 26, 2026

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 19%
18.76% (6154/32799) 12.44% (3187/25604) 12.54% (878/6999)

Unit Test Results

Tests Skipped Failures Errors Time
2326 0 💤 0 ❌ 0 🔥 32.264s ⏱️

@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.34%. Comparing base (ae00c03) to head (c972fe0).
⚠️ Report is 2 commits behind head on main.

❌ Your project status has failed because the head coverage (42.03%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #11916   +/-   ##
=======================================
  Coverage   35.34%   35.34%           
=======================================
  Files        1534     1534           
  Lines       75081    75081           
  Branches    11312    11312           
=======================================
  Hits        26539    26539           
  Misses      47095    47095           
  Partials     1447     1447           
Flag Coverage Δ
backend 55.34% <ø> (ø)
frontend 16.98% <ø> (ø)
lfx 42.03% <ø> (ø)

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% <ø> (ø)
.../lfx/base/models/google_generative_ai_constants.py 100.00% <ø> (ø)
src/lfx/src/lfx/base/models/openai_constants.py 100.00% <ø> (ø)

... and 7 files with indirect coverage changes

🚀 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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
src/lfx/src/lfx/base/models/openai_constants.py (1)

65-67: Redundant flags: deprecated has no effect when not_supported=True.

Setting both not_supported=True and deprecated=True on o1-mini is redundant. The not_supported flag already excludes this model from OPENAI_REASONING_MODEL_NAMES (line 118), making the deprecated flag effectively invisible to consumers.

If the intent is to track that OpenAI deprecated this model externally, consider adding a comment. Otherwise, remove the redundant flag.

♻️ Option 1: Remove redundant deprecated flag
     create_model_metadata(
-        provider="OpenAI", name="o1-mini", icon="OpenAI", reasoning=True, not_supported=True, deprecated=True
+        provider="OpenAI", name="o1-mini", icon="OpenAI", reasoning=True, not_supported=True
     ),
♻️ Option 2: Add clarifying comment if both flags are intentional
+    # o1-mini: deprecated by OpenAI and not supported in Langflow
     create_model_metadata(
         provider="OpenAI", name="o1-mini", icon="OpenAI", reasoning=True, not_supported=True, deprecated=True
     ),
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/lfx/src/lfx/base/models/openai_constants.py` around lines 65 - 67, The
entry for "o1-mini" in create_model_metadata sets both not_supported=True and
deprecated=True which is redundant because not_supported already excludes it
from OPENAI_REASONING_MODEL_NAMES; either remove the deprecated=True flag from
the create_model_metadata call for name="o1-mini", or if you intentionally want
to record external deprecation keep deprecated=True but add a clarifying comment
above the create_model_metadata call explaining that not_supported hides the
flag from consumers and the deprecated flag is only for historical/annotation
purposes.
src/lfx/src/lfx/base/models/google_generative_ai_constants.py (1)

68-75: Section comment doesn't match model version.

The model gemini-3.1-pro-preview is placed under the # GEMINI 3.0 (preview) section header. Consider updating the section comment to reflect the 3.x family or adding a separate # GEMINI 3.1 (preview) section for clarity.

♻️ Suggested section reorganization
-    # GEMINI 3.0 (preview)
+    # GEMINI 3.x (preview)
     create_model_metadata(
         provider="Google Generative AI",
         name="gemini-3.1-pro-preview",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/lfx/src/lfx/base/models/google_generative_ai_constants.py` around lines
68 - 75, Section header is inaccurate: move or rename the comment above
create_model_metadata entries so the gemini-3.1-pro-preview entry is under a
matching GEMINI 3.1 section; specifically update the comment from "# GEMINI 3.0
(preview)" to either "# GEMINI 3.x (preview)" or add a new "# GEMINI 3.1
(preview)" header and place the create_model_metadata(provider="Google
Generative AI", name="gemini-3.1-pro-preview", ...) entry under that header to
keep version grouping consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/lfx/src/lfx/base/models/google_generative_ai_constants.py`:
- Around line 68-75: Section header is inaccurate: move or rename the comment
above create_model_metadata entries so the gemini-3.1-pro-preview entry is under
a matching GEMINI 3.1 section; specifically update the comment from "# GEMINI
3.0 (preview)" to either "# GEMINI 3.x (preview)" or add a new "# GEMINI 3.1
(preview)" header and place the create_model_metadata(provider="Google
Generative AI", name="gemini-3.1-pro-preview", ...) entry under that header to
keep version grouping consistent.

In `@src/lfx/src/lfx/base/models/openai_constants.py`:
- Around line 65-67: The entry for "o1-mini" in create_model_metadata sets both
not_supported=True and deprecated=True which is redundant because not_supported
already excludes it from OPENAI_REASONING_MODEL_NAMES; either remove the
deprecated=True flag from the create_model_metadata call for name="o1-mini", or
if you intentionally want to record external deprecation keep deprecated=True
but add a clarifying comment above the create_model_metadata call explaining
that not_supported hides the flag from consumers and the deprecated flag is only
for historical/annotation purposes.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2a2ab0c and 69ce929.

📒 Files selected for processing (4)
  • src/lfx/src/lfx/_assets/component_index.json
  • src/lfx/src/lfx/base/models/anthropic_constants.py
  • src/lfx/src/lfx/base/models/google_generative_ai_constants.py
  • src/lfx/src/lfx/base/models/openai_constants.py

@edwinjosechittilappilly edwinjosechittilappilly changed the title feta: Update model metadata for Anthropic, Google, OpenAI feat: Update model metadata for Anthropic, Google, OpenAI Feb 26, 2026
@github-actions github-actions bot added the enhancement New feature or request label Feb 26, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 26, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 26, 2026
@HimavarshaVS HimavarshaVS added this pull request to the merge queue Feb 26, 2026
@HimavarshaVS HimavarshaVS removed this pull request from the merge queue due to a manual request Feb 26, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 26, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 26, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 27, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 27, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 27, 2026
@HimavarshaVS HimavarshaVS added this pull request to the merge queue Feb 27, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 27, 2026
* Update model metadata for Anthropic, Google, OpenAI

Add and reorganize model metadata across providers:

- Anthropic: add "claude-opus-4-6" and "claude-sonnet-4-6", reinsert "claude-opus-4-5-20251101" and mark older claude-3 haiku models as deprecated.
- Google Generative AI: add preview model "gemini-3.1-pro-preview".
- OpenAI: add "gpt-5.2" (reasoning) and add "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano" as tool-calling models; convert "gpt-4.5-preview" to deprecated and adjust deprecation/not_supported flags for several o* reasoning models (e.g. o1-mini deprecated, other o1/o3/o4 variants marked not_supported as appropriate).

These changes update available/preview/deprecated flags and add newly supported model entries to the unified metadata lists.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: himavarshagoutham <himavarshajan17@gmail.com>
Co-authored-by: Adam Aghili <Adam.Aghili@ibm.com>
Co-authored-by: Himavarsha <40851462+HimavarshaVS@users.noreply.github.com>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 27, 2026
@HimavarshaVS HimavarshaVS added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Feb 27, 2026
@HimavarshaVS HimavarshaVS added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Feb 27, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 27, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 27, 2026
@HimavarshaVS HimavarshaVS added this pull request to the merge queue Feb 27, 2026
Merged via the queue into main with commit 3007372 Feb 27, 2026
98 of 99 checks passed
@HimavarshaVS HimavarshaVS deleted the fix-update-models branch February 27, 2026 18:30
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.

4 participants