dspy
dspy copied to clipboard
_call_model in aws_models.py raises error when using Sagemaker as aws_provider
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'