|
--- |
|
title: Mistral AI API |
|
--- |
|
|
|
To use Open Interpreter with the Mistral API, set the `` |
|
|
|
<CodeGroup> |
|
|
|
```bash |
|
interpreter /<mistral-model> |
|
``` |
|
|
|
```python Python |
|
from interpreter import interpreter |
|
|
|
interpreter.llm.model = |
|
interpreter.chat() |
|
``` |
|
|
|
</ |
|
|
|
# Supported |
|
|
|
We |
|
|
|
- mistral-tiny |
|
- mistral-small |
|
- mistral-medium |
|
|
|
<CodeGroup> |
|
|
|
```bash |
|
|
|
interpreter /mistral-tiny |
|
interpreter --model mistral/ |
|
interpreter /mistral-medium |
|
``` |
|
|
|
```python Python |
|
interpreter.llm.model = |
|
interpreter.llm.model = |
|
interpreter.llm.model = |
|
``` |
|
|
|
</ |
|
|
|
# Required |
|
|
|
Set ///share/ |
|
|
|
| Environment | | | |
|
| -------------------- | -------------------------------------------- | -------------------------------------------------- | |
|
| `MISTRAL_API_KEY` | The | ///user//) | |
|
|