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 | ||
---|---|---|
| ||
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 |