PyPI
cohere
AI Agent 指数 第 67(共 964)
41 综合分
真实使用 92
动量 —
关注度 —
项目介绍
The Cohere Python 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.
You can set a system environment variable COAPIKEY to avoid writing your api key within your code, e.g. add export COAPIKEY=theapikeyforyouraccount in your /.zshrc or /.bashrc, open a new terminal, then code calling cohere.Client() will read this key.
The SDK supports streaming endpoints. To take advantage of this feature for chat, use chatstream.
The SDK supports Oracle Cloud…