[ADE-30] - Implement Amazon Bedrock Integration#33
Merged
jkestering-modus merged 3 commits intomainfrom Mar 27, 2025
Merged
Conversation
- Added @aws-sdk/client-bedrock-runtime dependency to package.json and package-lock.json. - Implemented useChat hook for managing chat sessions and messages. - Created bedrock.service.ts for interacting with the Bedrock API, including methods for creating sessions and sending messages. - Updated Android Gradle files to include capacitor-filesystem for enhanced functionality.
- Introduced setup-tests.ts for mocking AWS Amplify and Bedrock services in tests. - Updated AIAssistantModal to reset chat session and clear messages on close and dismiss. - Enhanced ChatContainer and ChatInput for improved user experience with updated placeholders. - Added resetSession method in ChatService for managing chat sessions. - Updated BedrockService to handle test environments and improved error handling. - Added internationalization support for AI Assistant strings in English, Spanish, and French. - Improved ChatPage to reset session on component mount and unmount.
GuidoBR
approved these changes
Mar 27, 2025
- Added error message display in UploadModal for better user feedback. - Introduced faCircleXmark icon for error indication. - Updated UploadModal.scss for new error message styling. - Adjusted UploadModal.tsx to render error state correctly. - Added new error messages in English, Spanish, and French for file size and type validation. - Included a new image asset for upload error representation.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Implement Amazon Bedrock Integration and UI Improvements
Changes
Bedrock AI Integration
Chat UI Improvements
Internationalization
Testing Improvements
Does this PR introduce a breaking change?
No. This implementation maintains backward compatibility with existing components while adding new functionality.
What needs to be documented?
Technical Details
AWS Configuration Required
To use this feature, you'll need:
bedrock:InvokeModel{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "bedrock:InvokeModel" ], "Resource": [ "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-text-lite-v1" ] } ] }Additional Comments
The chat functionality now maintains conversation history within a session and automatically resets when: