Chat UI documentation

Cohere

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Cohere

Feature Available
Tools Yes
Multimodal No

You may use Cohere to run their models directly from Chat UI. You will need to have a Cohere account, then get your API token. You can either specify it directly in your .env.local using the COHERE_API_TOKEN variable, or you can set it in the endpoint config.

Here is an example of a Cohere model config. You can set which model you want to use by setting the id field to the model name.

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"
      -->
    }]
  }
]`
< > Update on GitHub