@shuddho11288/mistral-api

1.1.0 • Public • Published

Using the Mistral API

Introduction

Mistral is an API that generates predictions based on given prompts. This document provides guidance on how to use the Mistral API.

Installation

To use the Mistral API, you'll need Node.js installed on your system.

  1. Install Node.js from nodejs.org.
  2. Create a new directory for your project and navigate into it using the terminal.
  3. Initialize a new Node.js project using npm init -y.
  4. Install Mistral API package using npm install git+https://github.com/shuddho11288/mistral-api.git.

Usage

Follow these steps to use the Mistral API:

  1. Import the Mistral API package into your project.
  2. Initialize the mistral function by calling it with your desired prompt.
  3. The function returns a promise with the predictions generated by Mistral.

Here's an example code snippet:

const { mistral } = require('@shuddho11288/mistral-api');

// Example usage
mistral('Make me a for loop in assembly').then(data=>{
    console.log(data)
})

Package Sidebar

Install

npm i @shuddho11288/mistral-api

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

3.62 kB

Total Files

3

Last publish

Collaborators

  • shuddho11288