Skip to content

Conversation

@billytrend-cohere
Copy link
Collaborator

@billytrend-cohere billytrend-cohere commented Oct 30, 2024

This PR updates the client.py file in the cohere_aws package. The changes ensure that the AWS client is correctly configured to use the sagemaker service.

  • The boto3.client() call is now passed the "sagemaker" argument to specify the service.
  • The os.environ['AWS_DEFAULT_REGION'] is set to the aws_region if it is not already set.
  • The sage.Session is created with the sagemaker_client parameter set to the self._service_client.

@billytrend-cohere billytrend-cohere merged commit f31b9a5 into main Oct 30, 2024
3 checks passed
@billytrend-cohere billytrend-cohere deleted the billytrend-cohere-patch-3 branch October 30, 2024 17:11
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 this pull request may close these issues.

3 participants