1.0.3 • Published 7 months ago
@pr4j3sh/ai v1.0.3
ai
ai in your code
This is a javascript npm package for using LLM inside your code.
Installation
- Using
npm
npm i @pr4j3sh/aiUsage
- 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);