Skip to main content

A Python library for the Cohere endpoints in AWS Sagemaker

Project description

Cohere Python SDK (AWS SageMaker)

Install

pip install cohere-sagemaker

Usage

from cohere_sagemaker import Client

client = Client(endpoint_name='my-cohere-endpoint')
response = client.generate(prompt="Tell me a story about")

print(response.generations[0].text)
# a time when you had to make a difficult decision. What did you do

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cohere-sagemaker-0.1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page