🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

nextchat

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

nextchat

package for interacting with various ai models

5.0.2
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

!! 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

  • If you face any problem then join our discord server.

Keywords

ai

FAQs

Package last updated on 04 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts