Chat UI 文档
Cohere
加入 Hugging Face 社区
并获得增强的文档体验
开始使用
Cohere
特性 | 可用 |
---|---|
工具 | 是 |
多模态 | 否 |
你可以使用 Cohere 直接在 Chat UI 中运行他们的模型。你需要拥有一个 Cohere 账户,然后获取你的 API 令牌。你可以通过 COHERE_API_TOKEN
变量在你的 .env.local
文件中直接指定它,或者在端点配置中进行设置。
以下是一个 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"
-->
}]
}
]`