usegenie
v0.0.3
Published
Genie is a javascript SDK for using and observing the OpenAI API
Downloads
4
Maintainers
Readme
Genie Javascript SDK for using and observing OpenAI API
The Genie Javascript SDK allows developers to use and analyze OpenAI API calls.
Installation
Using npm:
$ npm install usegenie
Using pnpm:
$ pnpm add usegenie
Usage
import { createGenie } from "usegenie";
const genie = createGenie();
const result = await genie.generate("MY_GENIE_PROJECT_ID", {
useFormalStyle: true,
recipientName: "Vincent Vega",
senderName: "Jules Winnfield",
isAnybodyGonnaGetHurt: true,
});
console.log(result.bestResult);