Chat UI 文档
Cohere
加入 Hugging Face 社区
并获得增强的文档体验
开始使用
Cohere
功能 | 可用 |
---|---|
工具 | 是 |
多模态 | 否 |
您可以使用 Cohere 直接从 Chat UI 运行他们的模型。您需要拥有一个 Cohere 账户,然后获取您的 API 令牌。您可以直接在您的 .env.local
文件中使用 COHERE_API_TOKEN
变量指定它,或者您可以在端点配置中设置它。
这是一个 Cohere 模型配置的示例。您可以通过将 id
字段设置为模型名称来设置您想要使用的模型。
MODELS=`[
{
"name": "command-r-plus",
"displayName": "Command R+",
"tools": true,
"endpoints": [{
"type": "cohere",
<!-- optionally specify these, or use COHERE_API_TOKEN
"apiKey": "your-api-token"
-->
}]
}
]`