Skip to content

feat: Add new Models to Google Gen AI#8372

Closed
edwinjosechittilappilly wants to merge 7 commits into
mainfrom
feat-add-new-google-models
Closed

feat: Add new Models to Google Gen AI#8372
edwinjosechittilappilly wants to merge 7 commits into
mainfrom
feat-add-new-google-models

Conversation

@edwinjosechittilappilly
Copy link
Copy Markdown
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly commented Jun 4, 2025

This pull request updates the GOOGLE_GENERATIVE_AI_MODELS_DETAILED list in google_generative_ai_constants.py to include new models and reorganize existing ones. It introduces several new Gemini 2.5 variants, adds models for embedding and AQA, and reorders the list to group models by version and type for better clarity.

Updates to model list:

Gemini 2.5 Models:

  • Added new Gemini 2.5 variants, including gemini-2.5-flash-preview-native-audio-dialog, gemini-2.5-flash-exp-native-audio-thinking-dialog, and gemini-2.5-flash-preview-tts. These models are marked as preview versions.

Gemini 2.0 Models:

  • Reorganized Gemini 2.0 models, including gemini-2.0-flash and gemini-2.0-flash-lite. Added a preview model for image generation (gemini-2.0-flash-preview-image-generation).

Gemini 1.5 Models:

  • Restored Gemini 1.5 models, including gemini-1.5-pro, gemini-1.5-flash, and gemini-1.5-flash-8b. These models are no longer marked as preview.

New Model Categories:

  • Added a new embedding model (gemini-embedding-exp) and an AQA model (models/aqa), both marked as preview versions.

Summary by CodeRabbit

  • New Features
    • Added new Google Generative AI model variants, including GEMINI 2.5 with native audio and TTS capabilities, and new EMBEDDING and AQA categories.
  • Improvements
    • Updated and reorganized the list of available AI models for improved clarity, including clearer preview and stable status indicators.
  • Other
    • Enhanced model metadata for easier selection and identification of model capabilities.

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 4, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 4, 2025

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.

"""

Walkthrough

The Google Generative AI model metadata constants have been updated and reorganized. New "GEMINI 2.5" models and additional variants have been added, some models are now marked as preview or stable, and new categories like "EMBEDDING" and "AQA" are introduced. The list of model names is regenerated accordingly.

Changes

File(s) Change Summary
src/backend/base/langflow/base/models/google_generative_ai_constants.py Updated and reorganized model metadata constants, added new "GEMINI 2.5" models, reorganized "GEMINI 2.0" and "1.5", added "EMBEDDING" and "AQA" categories, adjusted preview/stable flags, regenerated model name list.
src/backend/base/langflow/initial_setup/starter_projects/Pokédex Agent.json Replaced entire code block of APIRequestComponent with an identical copy; no functional or behavioral changes.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant ConstantsModule

    Developer->>ConstantsModule: Access GOOGLE_GENERATIVE_AI_MODELS_DETAILED
    ConstantsModule-->>Developer: Provides updated model metadata (2.5, 2.0, 1.5, EMBEDDING, AQA, GEMMA)
    Developer->>ConstantsModule: Access GOOGLE_GENERATIVE_AI_MODELS
    ConstantsModule-->>Developer: Provides regenerated model names list
Loading

Possibly related PRs

Suggested labels

size:S

Suggested reviewers

  • Yukiyukiyeah
    """
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-add-new-google-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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@dosubot dosubot Bot added the enhancement New feature or request label Jun 4, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 4, 2025
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 4, 2025
Copy link
Copy Markdown
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 PR restructures and expands the Google Generative AI model constants by adding the latest Gemini 2.5 variants, reorganizing the existing Gemini 2.0/1.5 entries, and introducing new embedding and AQA preview models.

  • Reorder and add Gemini 2.5 preview models with date-suffix naming.
  • Group and adjust Gemini 2.0 and 1.5 entries for clarity.
  • Add gemini-embedding-exp and a new AQA preview model.
Comments suppressed due to low confidence (2)

src/backend/base/langflow/base/models/google_generative_ai_constants.py:60

  • The model identifier "models/aqa" does not match the "gemini-..." naming convention used elsewhere. Consider renaming it to something consistent (e.g., "gemini-aqa" or simply "aqa").
provider="Google Generative AI", name="models/aqa", icon="GoogleGenerativeAI", tool_calling=True, preview=True

src/backend/base/langflow/base/models/google_generative_ai_constants.py:64

  • New model entries have been added—ensure any existing tests that validate GOOGLE_GENERATIVE_AI_MODELS include these new variants so they don’t slip through unverified.
GOOGLE_GENERATIVE_AI_MODELS = [metadata["name"] for metadata in GOOGLE_GENERATIVE_AI_MODELS_DETAILED]

# Unified model metadata - single source of truth
GOOGLE_GENERATIVE_AI_MODELS_DETAILED = [
# GEMINI 1.5
# GEMINI 2.5 (latest, most powerful and flash variants)
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding blank lines before and after each version group comment (e.g., before # GEMINI 2.5 and before # GEMINI 2.0) to visually separate sections and improve readability.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
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.

Actionable comments posted: 0

🧹 Nitpick comments (2)
src/backend/base/langflow/base/models/google_generative_ai_constants.py (2)

7-7: Address line length violations. Multiple create_model_metadata calls exceed the 120-character limit (E501). Consider wrapping parameters across lines or applying an autoformatter to satisfy style rules.

Also applies to: 10-10, 13-13, 16-16, 19-19, 22-22, 29-29, 56-56

🧰 Tools
🪛 Ruff (0.11.9)

7-7: Line too long (136 > 120)

(E501)

🪛 Pylint (3.3.7)

[convention] 7-7: Line too long (136/100)

(C0301)

🪛 GitHub Check: Ruff Style Check (3.13)

[failure] 7-7: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:7:121: E501 Line too long (136 > 120)

🪛 GitHub Actions: Ruff Style Check

[error] 7-7: Ruff: Line too long (136 > 120) (E501)


65-65: Remove extra blank line at EOF. There appears to be more than one trailing newline; trim to a single newline for consistency.

🧰 Tools
🪛 Pylint (3.3.7)

[convention] 65-65: Trailing newlines

(C0305)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5abb545 and 07cf8cb.

📒 Files selected for processing (1)
  • src/backend/base/langflow/base/models/google_generative_ai_constants.py (2 hunks)
🧰 Additional context used
🪛 Ruff (0.11.9)
src/backend/base/langflow/base/models/google_generative_ai_constants.py

7-7: Line too long (136 > 120)

(E501)


10-10: Line too long (138 > 120)

(E501)


13-13: Line too long (152 > 120)

(E501)


16-16: Line too long (157 > 120)

(E501)


19-19: Line too long (136 > 120)

(E501)


22-22: Line too long (134 > 120)

(E501)


29-29: Line too long (149 > 120)

(E501)


56-56: Line too long (128 > 120)

(E501)

🪛 Pylint (3.3.7)
src/backend/base/langflow/base/models/google_generative_ai_constants.py

[convention] 7-7: Line too long (136/100)

(C0301)


[convention] 10-10: Line too long (138/100)

(C0301)


[convention] 13-13: Line too long (152/100)

(C0301)


[convention] 16-16: Line too long (157/100)

(C0301)


[convention] 19-19: Line too long (136/100)

(C0301)


[convention] 22-22: Line too long (134/100)

(C0301)


[convention] 26-26: Line too long (110/100)

(C0301)


[convention] 29-29: Line too long (149/100)

(C0301)


[convention] 32-32: Line too long (115/100)

(C0301)


[convention] 36-36: Line too long (108/100)

(C0301)


[convention] 39-39: Line too long (110/100)

(C0301)


[convention] 42-42: Line too long (113/100)

(C0301)


[convention] 56-56: Line too long (128/100)

(C0301)


[convention] 60-60: Line too long (118/100)

(C0301)


[convention] 64-64: Line too long (101/100)

(C0301)


[convention] 65-65: Trailing newlines

(C0305)

🪛 GitHub Check: Ruff Style Check (3.13)
src/backend/base/langflow/base/models/google_generative_ai_constants.py

[failure] 29-29: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:29:121: E501 Line too long (149 > 120)


[failure] 22-22: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:22:121: E501 Line too long (134 > 120)


[failure] 19-19: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:19:121: E501 Line too long (136 > 120)


[failure] 16-16: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:16:121: E501 Line too long (157 > 120)


[failure] 13-13: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:13:121: E501 Line too long (152 > 120)


[failure] 10-10: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:10:121: E501 Line too long (138 > 120)


[failure] 7-7: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:7:121: E501 Line too long (136 > 120)


[failure] 56-56: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:56:121: E501 Line too long (128 > 120)

🪛 GitHub Actions: Ruff Style Check
src/backend/base/langflow/base/models/google_generative_ai_constants.py

[error] 7-7: Ruff: Line too long (136 > 120) (E501)

⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: Lint Backend / Run Mypy (3.13)
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 1
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 3
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 5
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 2
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 4
  • GitHub Check: Run Backend Tests / Integration Tests - Python 3.10
  • GitHub Check: Optimize new Python code in this PR
  • GitHub Check: Update Starter Projects
🔇 Additional comments (5)
src/backend/base/langflow/base/models/google_generative_ai_constants.py (5)

5-23: Approve new Gemini 2.5 model entries. The added Gemini 2.5 variants are correctly grouped, all set with preview=True, and align with the PR objectives.

🧰 Tools
🪛 Ruff (0.11.9)

7-7: Line too long (136 > 120)

(E501)


10-10: Line too long (138 > 120)

(E501)


13-13: Line too long (152 > 120)

(E501)


16-16: Line too long (157 > 120)

(E501)


19-19: Line too long (136 > 120)

(E501)


22-22: Line too long (134 > 120)

(E501)

🪛 Pylint (3.3.7)

[convention] 7-7: Line too long (136/100)

(C0301)


[convention] 10-10: Line too long (138/100)

(C0301)


[convention] 13-13: Line too long (152/100)

(C0301)


[convention] 16-16: Line too long (157/100)

(C0301)


[convention] 19-19: Line too long (136/100)

(C0301)


[convention] 22-22: Line too long (134/100)

(C0301)

🪛 GitHub Check: Ruff Style Check (3.13)

[failure] 22-22: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:22:121: E501 Line too long (134 > 120)


[failure] 19-19: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:19:121: E501 Line too long (136 > 120)


[failure] 16-16: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:16:121: E501 Line too long (157 > 120)


[failure] 13-13: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:13:121: E501 Line too long (152 > 120)


[failure] 10-10: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:10:121: E501 Line too long (138 > 120)


[failure] 7-7: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:7:121: E501 Line too long (136 > 120)

🪛 GitHub Actions: Ruff Style Check

[error] 7-7: Ruff: Line too long (136 > 120) (E501)


24-33: Approve Gemini 2.0 reorganized entries. The gemini-2.0-flash, flash-preview-image-generation, and flash-lite variants use the intended preview flags and are ordered logically.

🧰 Tools
🪛 Ruff (0.11.9)

29-29: Line too long (149 > 120)

(E501)

🪛 Pylint (3.3.7)

[convention] 26-26: Line too long (110/100)

(C0301)


[convention] 29-29: Line too long (149/100)

(C0301)


[convention] 32-32: Line too long (115/100)

(C0301)

🪛 GitHub Check: Ruff Style Check (3.13)

[failure] 29-29: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:29:121: E501 Line too long (149 > 120)


34-43: Approve restoration of Gemini 1.5 models. The reintroduced 1.5 variants are correctly positioned without the preview flag, matching the PR summary.

🧰 Tools
🪛 Pylint (3.3.7)

[convention] 36-36: Line too long (108/100)

(C0301)


[convention] 39-39: Line too long (110/100)

(C0301)


[convention] 42-42: Line too long (113/100)

(C0301)


54-57: Approve new embedding model entry. gemini-embedding-exp is properly marked as a preview model and placed under the EMBEDDING category.

🧰 Tools
🪛 Ruff (0.11.9)

56-56: Line too long (128 > 120)

(E501)

🪛 Pylint (3.3.7)

[convention] 56-56: Line too long (128/100)

(C0301)

🪛 GitHub Check: Ruff Style Check (3.13)

[failure] 56-56: Ruff (E501)
src/backend/base/langflow/base/models/google_generative_ai_constants.py:56:121: E501 Line too long (128 > 120)


58-61: Verify the AQA model name. The entry uses name="models/aqa", which differs from other model IDs. Please confirm whether the models/ prefix is deliberate and matches the upstream API naming.

🧰 Tools
🪛 Pylint (3.3.7)

[convention] 60-60: Line too long (118/100)

(C0301)

@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 4, 2025
@github-actions github-actions Bot added the enhancement New feature or request label Jun 4, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 4, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 4, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 4, 2025
Copy link
Copy Markdown
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.

Actionable comments posted: 1

♻️ Duplicate comments (1)
src/backend/base/langflow/base/models/google_generative_ai_constants.py (1)

5-5: Improve section separation for better readability.

Consider adding blank lines before and after version group comments to visually separate sections, as suggested in a previous review.

Apply this formatting to improve visual separation:

+
 # GEMINI 2.5 (latest, most powerful and flash variants)
+
 create_model_metadata(

Apply similar spacing around other section headers (lines 48, 62, 82, 90).

Also applies to: 48-48, 62-62, 82-82, 90-90

🧹 Nitpick comments (1)
src/backend/base/langflow/base/models/google_generative_ai_constants.py (1)

50-50: Format long lines for better readability.

Multiple lines exceed the 100-character limit. Consider breaking them into multiple lines for better maintainability.

Apply this formatting to improve readability:

-    create_model_metadata(
-        provider="Google Generative AI", name="gemini-2.0-flash", icon="GoogleGenerativeAI", tool_calling=True
-    ),
+    create_model_metadata(
+        provider="Google Generative AI",
+        name="gemini-2.0-flash",
+        icon="GoogleGenerativeAI",
+        tool_calling=True,
+    ),

Apply similar formatting to lines 60, 64, 67, and 70.

Also applies to: 60-60, 64-64, 67-67, 70-70

🧰 Tools
🪛 Pylint (3.3.7)

[convention] 50-50: Line too long (110/100)

(C0301)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 07cf8cb and 8dd9626.

📒 Files selected for processing (1)
  • src/backend/base/langflow/base/models/google_generative_ai_constants.py (2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
src/backend/base/langflow/base/models/google_generative_ai_constants.py (2)
src/backend/base/langflow/base/models/model_metadata.py (1)
  • create_model_metadata (18-41)
src/backend/base/langflow/base/astra_assistants/util.py (1)
  • name (147-151)
🪛 Pylint (3.3.7)
src/backend/base/langflow/base/models/google_generative_ai_constants.py

[convention] 50-50: Line too long (110/100)

(C0301)


[convention] 60-60: Line too long (115/100)

(C0301)


[convention] 64-64: Line too long (108/100)

(C0301)


[convention] 67-67: Line too long (110/100)

(C0301)


[convention] 70-70: Line too long (113/100)

(C0301)

⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 5
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 2
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 4
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 3
  • GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 1
🔇 Additional comments (3)
src/backend/base/langflow/base/models/google_generative_ai_constants.py (3)

5-47: LGTM! Well-structured addition of GEMINI 2.5 models.

The new GEMINI 2.5 models are correctly configured with appropriate preview flags and consistent metadata. The specialized variants (native audio, TTS, experimental) align with Google's latest offerings.


48-71: Excellent reorganization of GEMINI 2.0 and 1.5 models.

The version-based grouping (2.5 → 2.0 → 1.5) improves clarity, and the removal of preview flags from GEMINI 1.5 models correctly reflects their stable status.

🧰 Tools
🪛 Pylint (3.3.7)

[convention] 50-50: Line too long (110/100)

(C0301)


[convention] 60-60: Line too long (115/100)

(C0301)


[convention] 64-64: Line too long (108/100)

(C0301)


[convention] 67-67: Line too long (110/100)

(C0301)


[convention] 70-70: Line too long (113/100)

(C0301)


82-89:

Details

❓ Verification inconclusive

Verify tool_calling support for embedding model.

The gemini-embedding-exp model is configured with tool_calling=True, which is unusual for embedding models that typically generate vectors rather than text with function calls.

Please verify if this embedding model actually supports tool calling or if this should be tool_calling=False:


🏁 Script executed:

#!/bin/bash
# Description: Search for other embedding model configurations to verify the pattern
# Expected: Find how other embedding models are configured in the codebase

rg -A 5 -B 5 "embedding.*create_model_metadata|create_model_metadata.*embedding" --type py

Length of output: 92


Manual verification needed for tool_calling in embedding model

I couldn’t locate any other embedding configurations to validate the pattern. Embedding models generally generate vectors and don’t support function calls. Please check if gemini-embedding-exp actually supports tool_calling or change it to False.

• File: src/backend/base/langflow/base/models/google_generative_ai_constants.py
Lines: 82–89

Comment on lines +90 to +98
# AQA
create_model_metadata(
provider="Google Generative AI",
name="models/aqa",
icon="GoogleGenerativeAI",
tool_calling=True,
preview=True,
not_supported=True,
),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Clarify the purpose of the not_supported AQA model.

The AQA model is marked as both preview=True and not_supported=True, which seems contradictory. If the model is not supported, consider whether it should be included in the available models list.

Please clarify the intended behavior for not_supported models and verify this configuration is correct:


🏁 Script executed:

#!/bin/bash
# Description: Check how not_supported flag is used elsewhere in the codebase
# Expected: Find patterns of not_supported usage to understand intended behavior

rg -A 3 -B 3 "not_supported.*True|not_supported=True" --type py

Length of output: 5015


🏁 Script executed:

#!/bin/bash
rg -n "create_model_metadata" --type py src/backend/base/langflow/base/models/google_generative_ai_constants.py -A3 -B3

Length of output: 3565


Standardize AQA model metadata

The combination of preview=True and not_supported=True is already used elsewhere to flag API‐preview models that Langflow doesn’t support yet. To keep things consistent:

  • Move the AQA entry under a # Not Supported Models heading (as in openai_constants.py and groq_constants.py).
  • Confirm whether this model should become supported:
    • If yes, remove not_supported=True.
    • If not, leave the flag and grouping in place.
  • Verify that name="models/aqa" is the correct model ID. Most Google models omit the "models/" prefix—update if necessary.
🤖 Prompt for AI Agents
In src/backend/base/langflow/base/models/google_generative_ai_constants.py
around lines 90 to 98, the AQA model is marked with both preview=True and
not_supported=True, which is inconsistent. To fix this, move the AQA model entry
under a dedicated "# Not Supported Models" section to align with other similar
models. Confirm if the model should be supported; if yes, remove the
not_supported=True flag, otherwise keep it. Also, verify and update the model
name by removing the "models/" prefix if that is the standard for Google models
in this file.

@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 4, 2025
Copy link
Copy Markdown
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

Do you confirm that all of these work?

Maybe we should add tests before merging.

If they are meant to work with the Agent Component, you can add tests similar to what we have now for OpenAI and Anthropic

@dosubot dosubot Bot removed the lgtm This PR has been approved by a maintainer label Jun 4, 2025
@edwinjosechittilappilly
Copy link
Copy Markdown
Collaborator Author

@ogabrielluiz can we add tests once we have the CI setup done for time being can we add these new models?

@ricardopieper
Copy link
Copy Markdown

ricardopieper commented Jul 10, 2025

There are new models now, like gemini 2.5 flash lite preview. Would it be possible to add those as well?

Regarding only adding models that work, the Agent component already lets me select models that don't have function calling capability (like gemma models) and it actually puts these models as default when you open the flow, breaking the agent automatically and unprompted.

Also I think Gemini 1.5 is deprecated now? We had issues in production with a non-langflow service that started having errors, fix was migrating to 2.0.

@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jul 11, 2025
@jonah-propcode
Copy link
Copy Markdown

Let's get this merged please! I can't bother with trying langflow unless I know it supports gemini 2.5 flash.

@edwinjosechittilappilly
Copy link
Copy Markdown
Collaborator Author

New models merged in a Different PR hence closing this one.

@erichare erichare deleted the feat-add-new-google-models branch April 22, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants