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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cohere-sagemaker-0.1.1.tar.gz
.
File metadata
- Download URL: cohere-sagemaker-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0199f2925245c21667032c16c05dce5358a3f08911c3ecca7e2399d39982548d |
|
MD5 | 11ccec8306f9a3405259a0512d778829 |
|
BLAKE2b-256 | a9af0ec316b323768ae4fa7078ac7f7e54f893ca48a997c4c4a234db4339d1b2 |