This package for interacting with GPT-4 based chat service, GPT, GPT4, Gemini, Bard, LLaMa, CodeLLaMa, Mixtral and Prodia.
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);
})();
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";
- If you face any problem then join our discord server.