This javascript client is inspired from cohere-typescript
You can use the Mistral Javascript client to interact with the Mistral AI API.
You can install the library in your project using:
npm install @mistralai/mistralai
You can run the examples in the examples directory by installing them locally:
cd examples
npm install .
You can then run the examples using node:
MISTRAL_API_KEY=XXXX node chat_with_streaming.js