Skip to main content
本笔记本介绍如何开始使用 Cohere 聊天模型. Head to the API reference 查看所有属性和方法的详细文档。

设置

The 集成位于 langchain-cohere package. We can install these with:
We’ll also 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

使用方法

ChatCohere supports all ChatModel functionality:

工具调用

Cohere supports tool calling functionalities!