MetaGPT
MetaGPT copied to clipboard
feat(bedrock): Temporary AWS credentials via env vars + supported models update
Features
- Added support for temporary credentials
- Added support for AWS credentials via environment variables (
AWS_*)- https://github.com/geekan/MetaGPT/issues/1174#issuecomment-2096092836
- Updated supported models and corrected max tokens
- New models
- (AI21) Jamba-Instruct
- (Amazon) Titan Text Premier
- (Cohere) Command R & R+
- (Mistral) Mistral Large 2
- Legacy/EOL
- (AI21) J2 Mid & Ultra for
us-west-2 - (Meta) Llama 2 (--> Llama 3/3.1)
- (AI21) J2 Mid & Ultra for
- New models
Example
- Add MetaGPT config
llm:
api_type: 'bedrock'
model: "amazon.titan-text-premier-v1:0"
# 🔔 No need to add the access_key or secret_key!
- Configure AWS Credentials
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_SESSION_TOKEN=...
export AWS_DEFAULT_REGION=us-east-1
- Call MetaGPT
metagpt "Create a 2048 game"
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 20.93023% with 34 lines in your changes missing coverage. Please review.
Project coverage is 62.50%. Comparing base (
ab846f6) to head (47be4f5). Report is 28 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@ Coverage Diff @@
## main #1450 +/- ##
==========================================
- Coverage 62.59% 62.50% -0.09%
==========================================
Files 287 287
Lines 17589 17622 +33
==========================================
+ Hits 11009 11015 +6
- Misses 6580 6607 +27
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@usamimeri @Wei-Jianan as authors of Bedrock-related PRs, would you mind reviewing these changes? cc: @geekan
lgtm