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

Add bedrock and sagemaker clients #81

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Add bedrock and sagemaker clients #81

merged 2 commits into from
Jun 26, 2024

Conversation

billytrend-cohere
Copy link
Collaborator

@billytrend-cohere billytrend-cohere commented Jun 25, 2024

This PR introduces a new AWS client and its associated tests.

New files:

  • client/aws.go
  • tests/aws_test.go

Changes:

  • Added client/aws.go to .fernignore
  • Updated go.mod and go.sum to include the new dependencies
  • Replaced *string with cohere.String in tests/sdk_test.go

New AWS Client:
The new AWS client, awsClient, is designed to interact with AWS services. It uses the aws-sdk-go-v2 package to make requests to AWS. The client supports various options, such as specifying the AWS region, access key, secret key, and session token. It provides methods for making HTTP requests, signing requests, and handling responses.

Tests:
The tests/aws_test.go file contains tests for the new AWS client. It includes tests for different AWS services, such as Bedrock and Sagemaker. The tests cover various functionalities, including generating requests, streaming, chatting, embedding, and using tools.

@billytrend-cohere billytrend-cohere merged commit faf1913 into main Jun 26, 2024
2 checks passed
@billytrend-cohere billytrend-cohere deleted the billy/bs branch June 26, 2024 14:22
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.

2 participants