Back to Open Interpreter

Cohere

docs/language-models/hosted-models/cohere.mdx

0.4.21.3 KB
Original Source

To use Open Interpreter with a model from Cohere, set the model flag:

<CodeGroup>
bash
interpreter --model command-nightly
python
from interpreter import interpreter

interpreter.llm.model = "command-nightly"
interpreter.chat()
</CodeGroup>

Supported Models

We support any model on Cohere's models page:

<CodeGroup>
bash
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
python
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"
</CodeGroup>

Required Environment Variables

Set the following environment variables (click here to learn how) to use these models.

Environment VariableDescriptionWhere to Find
COHERE_API_KEYThe API key for authenticating to Cohere's services.Cohere Account Page