Skip to content
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(dspy): Add input for AWS credentials for AWSProvider, Bedrock and Sagemaker class #1421

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joanacmesquitaf
Copy link

This pull request introduces enhancements to the AWSProvider, Bedrock, and Sagemaker classes by adding the capability to input AWS credentials directly. This update provides greater flexibility beyond using the a profile within the AWS credentials file.

Motivation:
The primary goal of this update is to increase flexibility in managing AWS credentials.

from dsp.utils.settings import settings

try:
import boto3
boto3_spec = importlib.util.find_spec("boto3")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the previous try-except logic suffices? fine to merge after reverting back this logic

Copy link
Author

Choose a reason for hiding this comment

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

Hello @arnavsinghvi11. I reversed the logic as you suggested but it was necessary to remove the boto3 import here because ruff was failing. We are already importing boto3 in the AWSProvider class constructor.

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.

2 participants