Skip to content

Add support for AWS profile in Bedrock settings #102

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

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

StreetLamb
Copy link
Collaborator

Resolves #101

Copy link
Collaborator

@saqadri saqadri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the quick fix @StreetLamb!!

@@ -55,15 +55,17 @@ def __init__(self, *args, **kwargs):
default_model = self.context.config.bedrock.default_model

if self.context.config.bedrock:
self.bedrock_client = client(
session = Session(profile_name=self.context.config.bedrock.profile)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work ok when profile is unspecified ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup it will use the default profile if unspecified

@saqadri saqadri merged commit 6f47087 into lastmile-ai:main Apr 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS Profile for Bedrock Augumented LLM
2 participants