1.0.14 • Published 1 year ago

@romptai/root v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Rompt.ai Node.js Library

Rompt streamlines your workflow, improves collaboration, enhances GPT model performance, and provides seamless integration with its CLI tool and output format support.

Features

  • Version control and changelog on prompts
  • Generate prompts from template strings
  • Pull prompts from Rompt into your codebase

Installation

Pull your prompts into your codebase using the CLI:

npx @romptai/cli pull --token {YOUR_TOKEN}

Install the client library:

npm install @romptai/client

Usage

To use the library, you'll first need to import it:

import { generate } from '@romptai/client';

const romptData = generate("your-prompt-name", {
  NAME: "Michael",
  DIRECTION: "Generate a Tweet",
  SENTIMENT: `Make the Tweet about ${myOtherVariable}`
});

const { prompt } = romptData;
// Your result is now in the prompt variable

Track History

import { generate, track } from '@rompt/client';

// ...continued from above

track(romptData)

// Your GPT responses can be included; example with OpenAI:

const gptResponse = await openai.createCompletion({
  prompt,
  //...
});

track(romptData, gptResponse.data)

Documentation

For detailed documentation, including API references and more examples, please visit the the Rompt.ai website.

Contributing

We welcome contributions to the Rompt Node.js library. If you'd like to contribute, please submit a pull request on GitHub.

License

This project is licensed under the MIT License. For more information, please see the LICENSE file.

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago