2.0.8 • Published 3 months ago

t-rsnchat v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

rsnchat

This package package for interacting with GPT4-based chat services, OpenChat, Bard, Gemini, LlaMa, Mixtral, Prodia, Kandinsky, Absolutebeauty, Sdxl, Dalle and AI Icon without restrictions or limits

Installation

Installation For CLI

npm i -g rsnchat

Installation

npm i rsnchat

APIKEY

Discord : https://discord.gg/r5QWdKfQxr

Join discord server and create account with /new slash command and get your apikey with /key slash command for free!

Usage GPT4

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

rsnchat.gpt('Hello, what is your name?')
  .then(response => {
    console.log(response.message);
  })

Usage OpenChat

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

rsnchat.openchat('Hello, what is your name?')
  .then(response => {
    console.log(response.message);
  })

Usage Bard

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

rsnchat.bard('Hello, what is your name?')
  .then(response => {
    console.log(response.message);
  })

Usage Gemini

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

rsnchat.gemini('Hello, what is your name?')
  .then(response => {
    console.log(response.message);
  })

Usage LlaMa

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

rsnchat.llama('Hello, what is your name?')
  .then(response => {
    console.log(response.message);
  })

Usage Mixtral

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

rsnchat.mixtral('Hello, what is your name?')
  .then(response => {
    console.log(response.message);
  })

Usage Prodia

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

const prompt = "beautiful girl";
const negative_prompt = "blury, bad quality";
const model = "absolutereality_v181.safetensors [3d9d4d2b]";

rsnchat.prodia(prompt, negative_prompt, model)
  .then(response => {
    console.log(response);
  })

Prodia Models

List of prodia models

Usage Kandinsky

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

const prompt = "beautiful girl";
const negative_prompt = "blury, bad quality";

rsnchat.kandinsky(prompt, negative_prompt)
  .then(response => {
    console.log(response);
  })

Usage Absolutebeauty

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

const prompt = "beautiful girl";
const negative_prompt = "blury, bad quality";

rsnchat.absolutebeauty(prompt, negative_prompt)
  .then(response => {
    console.log(response);
  })

Usage Sdxl

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

const prompt = "beautiful girl";
const negative_prompt = "blury, bad quality";

rsnchat.sdxl(prompt, negative_prompt)
  .then(response => {
    console.log(response);
  })

Usage Dalle

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

const prompt = "beautiful girl";

rsnchat.dalle(prompt)
  .then(response => {
    console.log(response);
  })

Usage AI Icon

const RsnChat = require('rsnchat');

const rsnchat = new RsnChat('chatgpt_××××××××××××××××××××××');

const prompt = "beautiful girl";

rsnchat.icon(prompt)
  .then(response => {
    console.log(response);
  })

Example CLI Command

rsnchat