feat: add latest models to Google Generative AI, Anthropic Models #4685
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes updates to the model constants and their usage in dropdown inputs for Anthropic and Google Generative AI models. The key changes involve moving the model options to separate constants files and updating the dropdown input components to use these constants.
Model Constants Update:
src/backend/base/langflow/base/models/anthropic_constants.py
: Added a list of Anthropic models to a new constantANTHROPIC_MODELS
.src/backend/base/langflow/base/models/google_generative_ai_constants.py
: Added a list of Google Generative AI models to a new constantGOOGLE_GENERATIVE_AI_MODELS
.Dropdown Input Components Update:
src/backend/base/langflow/components/models/anthropic.py
: ImportedANTHROPIC_MODELS
and updated theDropdownInput
options in theAnthropicModelComponent
class to use this constant. [1] [2]src/backend/base/langflow/components/models/google_generative_ai.py
: ImportedGOOGLE_GENERATIVE_AI_MODELS
and updated theDropdownInput
options in theGoogleGenerativeAIComponent
class to use this constant. [1] [2]