Skip to main content

Command line REPL for GPT-based tools

Project description

NOTE: This is still under active development. It will have bugs and frequent breaking changes.

gpt-repl

Interactively play with GPT-based tools from the command line

PyPi License

Description

gpt-repl is a REPL interface for interacting with GPT-based tools. The base mode is synth-chat which mimics ChatGPT functionality using the normal OpenAI GPT-3 API and iterative self-summary.

Install

For now, Python >=3.9 is required.

pip install -U gpt-repl

If you don't have an OpenAI API key create one here and set it:

export OPENAI_API_KEY="<your api key>"

Usage

gpt-repl @thread-name [-m mode-name]

Type .help for a list of commands and keyboard shortcuts.

Use gpt-repl modes to list available REPL modes and gpt-repl threads to list open threads.

Custom Modes

Add a Python file that looks like this to $GPT_REPL_CONFIG_PATH/plugins/. By default this will be ~/.config/gpt_repl/plugins/.

See gpt_repl/modes for more complete examples.

Screenshot

Screen Shot 2022-12-16 at 6 09 31 PM

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt-repl-0.4.14.tar.gz (20.1 kB view hashes)

Uploaded Source

Built Distribution

gpt_repl-0.4.14-py3-none-any.whl (23.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page