Cohere 是一家加拿大初创公司,提供自然语言处理模型,帮助企业改善人机交互。前往 API 参考查看所有属性和方法的详细文档。
概述
集成详情
| 类 | 包 | 本地 | 可序列化 | JS 支持 | 下载量 | 版本 |
|---|---|---|---|---|---|---|
| Cohere | langchain-community | ❌ | beta | ✅ |
设置
集成位于langchain-community 包中。我们还需要安装 cohere 包本身。可以通过以下方式安装:
凭据
我们需要获取 Cohere API 密钥并设置COHERE_API_KEY 环境变量:
安装
调用
Cohere 支持所有 LLM 功能:API 参考
有关所有Cohere LLM 功能和配置的详细文档,请前往 API 参考:python.langchain.com/api_reference/community/llms/langchain_community.llms.cohere.Cohere.html
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

