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

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

Closed
vdemchenko3 opened this issue May 10, 2024 · 0 comments · Fixed by #1241
Closed

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

vdemchenko3 opened this issue May 10, 2024 · 0 comments · Fixed by #1241

Comments

@vdemchenko3
Copy link

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'

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 a pull request may close this issue.

1 participant