/client-js

JS Client library for Mistral AI platform

Primary LanguageJavaScriptApache License 2.0Apache-2.0

This javascript client is inspired from cohere-typescript

Mistral Javascript Client

You can use the Mistral Javascript client to interact with the Mistral AI API.

Installing

You can install the library in your project using:

npm install @mistralai/mistralai

Run examples

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