static-prompt-config
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

static-prompt-config

A Simple library that allows the merger of multiple files into one. Can be used to compose system prompts for ChatGPT

Usage

- config.json (Required)

Configures your prompt composition

{
    // key: string, name of the secondary prompt
    // filePath: string, path to the file containing the secondary prompt
    "prompts": {
        [key]: "filePath"
    }
}

- root.txt (Required)

The root prompt. Used to define the schematic that your secondary prompts will be placed in

This is a test prompt. Here's the "hello" secondary prompt: 

{{hello}}

- Referencing Secondary Prompts

You may have noticed the usage of {{hello}} above to mention the "hello" prompt. That's a reference to the hello Secondary Prompt. Use them as many times necessary

Readme

Keywords

none

Package Sidebar

Install

npm i static-prompt-config

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

8.77 kB

Total Files

7

Last publish

Collaborators

  • andriotis