Mistral Models

First, log into the Mistral AI console (https://console.mistral.ai/).

Before proceeding, you may need to setup the appropriate billing information.

Next, select API Keys, create a new key, and place it into your configuration file.

For example:

models: { "Mistral Medium with Streaming": { provider: "mistral", model: "mistral-medium", stream: true, apiKey: "......" } }

Finally, install the mistralai npm package using the following command:

npm install @mistralai/mistralai