Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

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

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

For example:

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

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

Code Block
npm install @mistralai/mistralai