docs/language-models/hosted-models/cohere.mdx
To use Open Interpreter with a model from Cohere, set the model flag:
interpreter --model command-nightly
from interpreter import interpreter
interpreter.llm.model = "command-nightly"
interpreter.chat()
We support any model on Cohere's models page:
<CodeGroup>interpreter --model command
interpreter --model command-light
interpreter --model command-medium
interpreter --model command-medium-beta
interpreter --model command-xlarge-beta
interpreter --model command-nightly
interpreter.llm.model = "command"
interpreter.llm.model = "command-light"
interpreter.llm.model = "command-medium"
interpreter.llm.model = "command-medium-beta"
interpreter.llm.model = "command-xlarge-beta"
interpreter.llm.model = "command-nightly"
Set the following environment variables (click here to learn how) to use these models.
| Environment Variable | Description | Where to Find |
|---|---|---|
COHERE_API_KEY | The API key for authenticating to Cohere's services. | Cohere Account Page |