nextchat

5.0.2 • Public • Published

!! NextChat </>

This package for interacting with GPT-4 based chat service, GPT, GPT4, Gemini, Bard, LLaMa, CodeLLaMa, Mixtral and Prodia.

Usage

const { NextChat } = require("nextchat");
const next = new NextChat();

(async () => {
  const prompt = `Hey, what is your name?`;
	const model = `gemini`; // gemini, gpt, gpt4, bard, llama, codellama, mixtral.
	const resp = await next.ask(prompt, model);
	console.log(resp.message);
})();

Usage Image

const { NextChat } = require("nextchat");
const next = new NextChat();

(async () => {
	const prompt = `cat`;
	const resp = await next.imagine(prompt);
  console.log(resp.url); // .url or .base64
})();

.. or using TypeScript??

import { NextChat } from "nextchat";

Support

Package Sidebar

Install

npm i nextchat

Weekly Downloads

526

Version

5.0.2

License

none

Unpacked Size

4.6 kB

Total Files

4

Last publish

Collaborators

  • iscordian