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

docs: review integrations sagemaker #544

Merged
merged 4 commits into from
Mar 6, 2024

Conversation

wochinge
Copy link
Contributor

@wochinge wochinge commented Mar 6, 2024

Proposed Changes

@github-actions github-actions bot added integration:amazon-sagemaker type:documentation Improvements or additions to documentation labels Mar 6, 2024
@@ -1,46 +1,16 @@
from typing import Optional
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@wochinge wochinge changed the title docs/review integrations sagemaker docs: review integrations sagemaker Mar 6, 2024
@wochinge wochinge marked this pull request as ready for review March 6, 2024 10:32
@wochinge wochinge requested a review from a team as a code owner March 6, 2024 10:32
@wochinge wochinge requested review from vblagoje and silvanocerza and removed request for a team March 6, 2024 10:32
Copy link
Member

@vblagoje vblagoje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @wochinge

@wochinge wochinge merged commit 2c6b218 into main Mar 6, 2024
10 checks passed
@wochinge wochinge deleted the docs/review-integrations-sagemaker branch March 6, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration:amazon-sagemaker type:documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API Docs - integrations.amazon_sagemaker
2 participants