Skip to main content
您当前所在的页面介绍的是 Cohere models as text completion models. Many popular Cohere models are chat completion models.You may be looking for 此页面.
Cohere is a Canadian startup that provides natural language processing models that help companies improve human-machine interactions.
Head to the API reference 查看所有属性和方法的详细文档。

概述

集成详情

设置

The 集成位于 langchain-community package. We also need to install the cohere package itself. We can install these with:

凭证

We’ll need to get a Cohere API key and set the COHERE_API_KEY 环境变量:

安装

It’s also helpful (but not needed) to set up LangSmith for best-in-class observability

调用

Cohere supports all LLM functionality:

API 参考

有关所有 Cohere llm 功能和配置的详细文档,请前往 API reference