# Mistral AI JS Client Web Demo

A demo of the Mistral AI client being used in a React App.

## Installation

```bash
npm install
```

## Usage

```bash
npm start
```

This will start a web-browser instance. 

### API Key Setup

Running the examples requires a Mistral AI API key.

1. Get your own Mistral API Key: <https://docs.mistral.ai/#api-access>
2. Set your Mistral API Key as an environment variable. You only need to do this once.

```bash
# set Mistral API Key (using zsh for example)
$ echo 'export MISTRAL_API_KEY=[your_key_here]' >> ~/.zshenv

# reload the environment (or just quit and open a new terminal)
$ source ~/.zshenv
```
