DSPy: The framework for programming—not prompting—language models
Python
docs(aws): removed pylint disable and tweaked import error message
Dhar Rawal1b45f721c2f2
diff --git a/dsp/modules/aws_providers.py b/dsp/modules/aws_providers.pyindex ae3f0d4c3..337ef6cd2 100644--- a/dsp/modules/aws_providers.py+++ b/dsp/modules/aws_providers.py@@ -33,9 +33,9 @@ class AWSProvider(ABC):batch_n_enabled (bool): If False, call the LM N times rather than batching."""try:- import boto3 # pylint: disable=import-outside-toplevel+ import boto3except ImportError as exc:- raise ImportError('Please install boto3 to use AWS models.') from exc+ raise ImportError('pip install boto3 to use AWS models.') from excif profile_name is None:self.predictor = boto3.client(service_name, region_name=region_name)