story-gpt
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Story-GPT

Typescript library used to generate the stories for StoryBot

Installation

NPM Release

NPM Version

npm install --save story-gpt

Usage

import { createStory } from "story-gpt";

const story = await createStory("A story about a happy horse", new OpenAI({apiKey: ">my api key<"}));

console.log("The story is named %s and it's tells the following story:", story.title, story.content);
console.log("See the cover picture for the story here:", story.image);

Package Sidebar

Install

npm i story-gpt

Weekly Downloads

14

Version

0.2.0

License

MIT

Unpacked Size

38.4 kB

Total Files

26

Last publish

Collaborators

  • javyer