1.0.3 • Published 7 months ago

@pr4j3sh/ai v1.0.3

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

ai

ai in your code

This is a javascript npm package for using LLM inside your code.

Installation

  • Using npm
npm i @pr4j3sh/ai

Usage

  • Server side
const ai = require("@pr4j3sh/ai");

ai("write a poem on javascript")
  .then((res) => {
    console.log(res);
  })
  .catch((err) => {
    console.error(err);
  });
  • Client side
import ai from "@pr4j3sh/ai";

const res = await ai("write a poem on javascript");
console.log(res);

Reference

1.0.3

7 months ago

1.0.2

8 months ago

1.0.0

9 months ago