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

improve support for SageMaker Endpoint provider #52

Closed
wants to merge 1 commit into from

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Apr 11, 2023

See #36.

This changes the model ID syntax of the SageMaker Endpoint provider to require a region name in addition to an endpoint name. Also implements a default ContentHandler.

@dlqqq dlqqq added bug Something isn't working enhancement New feature or request labels Apr 11, 2023
pypi_package_deps = ["boto3"]
auth_strategy = AwsAuthStrategy()

content_handler: ContentHandlerBase = DefaultContentHandler

Choose a reason for hiding this comment

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

Suggested change
content_handler: ContentHandlerBase = DefaultContentHandler
content_handler: ContentHandlerBase = DefaultContentHandler()

Separately, langchain-ai/langchain#3249 has changed the typing for SagemakerEndpoint allowed content_handler. When we update langchain dep we'll need to update this.

I've made a PR to update the example: langchain-ai/langchain#4598

@dlqqq
Copy link
Member Author

dlqqq commented May 30, 2023

Superseded by #197.

@dlqqq dlqqq closed this May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants