0.0.2 • Published 5 months ago

progressiveai v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

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!

0.0.2

5 months ago

0.0.1

5 months ago