!! 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`;
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);
})();
.. or using TypeScript??
import { NextChat } from "nextchat";
Support