-
Notifications
You must be signed in to change notification settings - Fork 128
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
docs: review integrations sagemaker #544
Conversation
@@ -1,46 +1,16 @@ | |||
from typing import Optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was all unnecessary reimplementation
@@ -249,5 +249,5 @@ def run(self, prompt: str, generation_kwargs: Optional[Dict[str, Any]] = None): | |||
msg = f"Sagemaker model not ready: {res.text}" | |||
raise SagemakerNotReadyError(msg) from err | |||
|
|||
msg = f"SageMaker Inference returned an error. Status code: {res.status_code} Response body: {res.text}" | |||
raise SagemakerInferenceError(msg, status_code=res.status_code) from err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this exception doesn't take a param status_code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @wochinge
Proposed Changes
integrations.amazon_sagemaker
haystack#7181