dspy icon indicating copy to clipboard operation
dspy copied to clipboard

_call_model in aws_models.py raises error when using Sagemaker as aws_provider

Open vdemchenko3 opened this issue 9 months ago • 0 comments

The _call_model function in aws_models.py uses the Bedrock syntax of invoke_model() rather than invoke_endpoint() which is the syntax for Sagemaker.

Although the code in aws_providers.py is correct, it gets overwritten by aws_model.py when the call is made and raises:

AttributeError: 'SageMakerRuntime' object has no attribute 'invoke_model'

vdemchenko3 avatar May 10 '24 16:05 vdemchenko3