fix: aws components and model lists #4560
Merged
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 AWS model IDs and the
AmazonBedrockEmbeddingsComponent
class to enhance the organization and functionality of the codebase. The most important changes include the addition of new model IDs, the removal of certain models, and the introduction of a new constant for embedding model IDs.Updates to AWS model IDs:
src/backend/base/langflow/base/models/aws_constants.py
: Added new model IDs for Amazon Titan, Anthropic, AI21 Labs, Cohere, Meta, and Mistral AI models. Removed certain model IDs and created a new constantAWS_EMBEDDING_MODEL_IDS
for embedding models.Enhancements to AmazonBedrockEmbeddingsComponent:
src/backend/base/langflow/components/embeddings/amazon_bedrock.py
: Updated import statements to includeAWS_EMBEDDING_MODEL_IDS
.src/backend/base/langflow/components/embeddings/amazon_bedrock.py
: Modified theDropdownInput
options formodel_id
to useAWS_EMBEDDING_MODEL_IDS
instead of hardcoding the options.