progressiveai

0.0.2 • Public • Published

ProgressiveAI JavaScript Library

Welcome to the official ProgressiveAI JavaScript Library! This library allows you to easily connect with ProgressiveAI's powerful AI Models and integrate them into your JavaScript projects.

Installation

You can install the library using npm:

npm install progressiveai

Getting Started

// Call the official ProgressiveAI JavaScript Library
// From the "progressiveai" library, import the "Chat" class to create a connection with ProgressiveAI's AI Models
const { Chat } = require("progressiveai");

// Create a chat
const chatInstance = new Chat(
  "keyid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Input your ProgressiveAI API Key
  "Hello, AI!", // Enter a question of your choice
  "wispar" // Mention the AI Model you want to use. Currently, we offer "WISPAR Lite", and soon "WISPAR" will also be available.
);

// Get AI response
// Fetch a response from the AI Model; if not included, the request will not be submitted and processed
chatInstance.getResponse().then((response) => {
  if (response) {
    console.log("Response:", response); // Log the AI's response
  } else {
    console.log("Error getting response."); // Log an error
  }
});

Make sure to replace "keyid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" with your actual ProgressiveAI API key.

Help and Support

If you need help or have any questions, feel free to reach out to us:

We're here to help you make the most of ProgressiveAI's AI capabilities!

Readme

Keywords

Package Sidebar

Install

npm i progressiveai

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

11.9 kB

Total Files

9

Last publish

Collaborators

  • illanser