Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

chatfile

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatfile

Prompter is an interpreter for Chatfiles

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Prompter

Prompter is an interpreter for Chatfiles

A Chatfile is similar to a Dockerfile, but is used for automatically constructing ChatGPT prompts using reference content and summarization.

Here's an example of a chatfile:

OBJECTIVE_PROMPT
"""
Introduce new API endpoints that allow users to sign up. It should take an email
and send a code to the email address. The email allows a link to be clicked to
sign in.
"""
ENGINE gpt-3.5-turbo
TOKEN_LIMIT 4000

LOAD_DIRECTORY ./src /src

SUMMARIZE_DIRECTORY /src /prompt/directory-summary 1000tk

FIND_RELEVANT_FILES /prompt/directory-summary /relevant-files

LOAD_FILES /relevant-files /prompt/relevant-files-loaded 4000tk

ENGINE gpt-4
TOKEN_LIMIT 8000

# For debugging
# PRINT_PROMPT

EDIT_DIRECTORY /prompt ./src

Usage

With Github

You should always create a default chatfile for a Github Repository. This chatfile is used as the foundation/cache for any feature requests or bug reports that the AI will be asked to fix.

Here's an example of a default Chatfile:

ENGINE gpt-3.5-turbo
TOKEN_LIMIT 4000

LOAD_DIRECTORY ./src /src

SUMMARIZE_DIRECTORY /src /prompt/directory-summary 1000tk

FIND_RELEVANT_FILES /prompt/directory-summary /relevant-files

LOAD_FILES /relevant-files /prompt/relevant-files-loaded 4000tk

ENGINE gpt-4
TOKEN_LIMIT 8000

FAQs

Package last updated on 18 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts