Chat UI 文件

Cohere

Hugging Face's logo
加入 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"
      -->
    }]
  }
]`
< > 在 GitHub 上更新

© . This site is unofficial and not affiliated with Hugging Face, Inc.