You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-cohere-5.12.0-1.lbn36.noarch

python3-cohere-5.12.0-1.lbn36.noarch

Package Attributes
RPM  python3-cohere-5.12.0-1.lbn36.noarch.rpm Architecture  noarch Size  1891100 Created  2025/05/13 02:04:09 UTC
Package Specification
Summary None
Group Unspecified
License ZPL
Home Page https://pypi.org/project/cohere
Description

Cohere Python SDK

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. Documentation Cohere documentation and API reference is available here. Installation pip install cohere

Usage import cohere

co = cohere.Client( api_key="YOUR_API_KEY", )

chat = co.chat( message="hello world!", model="command" )

print(chat)

[!TIP] You can set a system environment variable CO_API_KEY to avoid writing your api key within your code, e.g. add export CO_API_KEY=theapikeyforyouraccount in your ~/.zshrc or ~/.bashrc, open a new terminal, then code calling cohere.Client() will read this key.

Streaming The SDK supports streaming endpoints. To take advantage of this feature for chat, use chat_stream. import cohere

co = cohere.Client( api_key="YOUR_API_KEY", )

stream = co.chat_stream(

Requires
(python3.10dist(tokenizers) < 1~~ with python3.10dist(tokenizers) >= 0.15)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
python3.10dist(parameterized)  
rpmlib(CompressedFileNames)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
rpmlib(PartialHardlinkSets)  
rpmlib(TildeInVersions)  
Provides
python-cohere
python3-cohere
python3.10-cohere
python3.10dist(cohere)
python3dist(cohere)
Obsoletes
python-cohere

Document Actions