@barosell/prompter
v0.1.5
Published
pipe data for prompts to LLMs
Downloads
40
Readme
@barosell/prompter
Overview
@barosell/prompter is a tool designed to pipe data for prompts to Language Learning Models (LLMs). It's useful for sending prompt data from various sources (like files or standard input) to LLMs such as OpenAI's models.
Installation
Ensure you have Node.js installed. You can install this package by running:
npm install @barosell/prompterUsage
prompter can be used directly from the command line:
prompter --prompt=<promptText> [file]Options:
--promptor-p: (Required) The prompt to send to the model. You can prepend@to use a prompt from a file. For example,--prompt=@path/to/file.txt.--quietor-q: Suppress printing the input.
Arguments:
file: The file to read from. Use-or omit to use standard input. If no file is specified,prompterreads from stdin.
Example
To use prompter with a file and display the output:
prompter [email protected] input.txtTo suppress the input data output:
prompter --prompt="Hello, what's the weather?" --quietLicense
This project is licensed under the MIT License.
Using prompter, you can efficiently forward data for processing by AI models, making it easy to automate interactions with LLMs.
