-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(lighthouse): Support Amazon Bedrock API Key #9343
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
base: master
Are you sure you want to change the base?
Conversation
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
|
✅ All necessary |
🔒 Container Security ScanImage: ✅ No Vulnerabilities DetectedThe container image passed all security checks. No known CVEs were found.📋 Resources:
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
3 package(s) affected
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #9343 +/- ##
==========================================
+ Coverage 88.74% 92.62% +3.87%
==========================================
Files 93 154 +61
Lines 3509 21323 +17814
==========================================
+ Hits 3114 19750 +16636
- Misses 395 1573 +1178
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Context
Lighthouse AI supported integration with Amazon Bedrock using IAM Access Key pair. This PR adds support to integrate with Amazon Bedrock using Bedrock API keys.
Description
This PR passes Amazon Bedrock API key to Langchain AWS SDK to interact with Amazon Bedrock models. From the Django side, theres logic added to ensure Bedrock provider can be created either with (API key + region) OR (access key + secret + region) and can't have both. Django migrations are not needed for the change as this API key is stored as KV pair inside the credentials JSON in DB table.
From the UI side, the LLM configuration code is slightly refactored to support different modes of configuring Amazon Bedrock. Based on the mode, the input fields collect the keys and pass them to Django.
Steps to review
In Django backend:
bedrock-api-key.mov
Checklist
UI
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.