npm
cohere-ai
#92 of 964 in the AI Agent Index
35 Score
Real usage 78
Momentum —
Attention —
About
The Cohere Typescript SDK allows access to Cohere models across many different platforms: the cohere platform, AWS (Bedrock, Sagemaker), Azure, GCP and Oracle OCI. For a full list of support and snippets, please take a look at the SDK support docs page.
Cohere documentation and API reference is available here.
The SDK supports streaming endpoints. To take advantage of this feature for chat, use chatStream.
When the API returns a non-success status code (4xx or 5xx response), a subclass of CohereError will be thrown:
To use Cohere models on AWS Bedrock or SageMaker, import the AWS clients from the cohere-ai/aws subpath and install the required peer dependencies:
The AWS dependencies are…
Across sources
460.8k Downloads / week
- Downloads / week 460.8k