-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create Amazon bundle #7255
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 reorganizes Amazon-related components within the langflow project to centralize them under a new directory structure and update the corresponding import paths accordingly.
- Moves Amazon components into the src/backend/base/langflow/components/amazon directory
- Updates import references across models, embeddings, data, and tests
- Updates frontend display by adding an entry for Amazon in the SIDEBAR_BUNDLES array
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/backend/base/langflow/components/amazon/init.py | New file to consolidate Amazon-related component imports |
src/frontend/src/utils/styleUtils.ts | Adds Amazon to the sidebar bundles for frontend display |
src/backend/base/langflow/components/models/init.py | Removes legacy AmazonBedrockComponent import and all update |
src/backend/base/langflow/components/data/init.py | Removes S3BucketUploaderComponent from imports and all |
src/backend/base/langflow/components/embeddings/init.py | Removes AmazonBedrockEmbeddingsComponent from imports and all |
src/backend/base/langflow/base/models/model_input_constants.py | Updates import path for AmazonBedrockComponent |
src/backend/tests/unit/components/data/test_s3_uploader_component.py | Updates import path for S3BucketUploaderComponent |
CodSpeed Performance ReportMerging #7255 will improve performances by 22.87%Comparing Summary
Benchmarks breakdown
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add aws icon in s3 bucket component?
Reorganization of Amazon components:
src/backend/base/langflow/base/models/model_input_constants.py
: Updated import paths forAmazonBedrockComponent
to reflect new directory structure. [1] [2]src/backend/base/langflow/components/amazon/__init__.py
: Added new import statements forAmazonBedrockEmbeddingsComponent
,AmazonBedrockComponent
, andS3BucketUploaderComponent
and updated__all__
to include these components.Removal of old Amazon component imports:
src/backend/base/langflow/components/data/__init__.py
: RemovedS3BucketUploaderComponent
from imports and__all__
. [1] [2]src/backend/base/langflow/components/embeddings/__init__.py
: RemovedAmazonBedrockEmbeddingsComponent
from imports and__all__
. [1] [2]src/backend/base/langflow/components/models/__init__.py
: RemovedAmazonBedrockComponent
from imports and__all__
. [1] [2]Test updates:
src/backend/tests/unit/components/data/test_s3_uploader_component.py
: Updated import path forS3BucketUploaderComponent
to reflect new directory structure.Frontend updates:
src/frontend/src/utils/styleUtils.ts
: Added Amazon to theSIDEBAR_BUNDLES
array for frontend display.