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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gpt_repl-0.4.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a728273df9f6d5c980c7799d6d796b9911bca2e48c54ff78b5cec4a797609681 |
|
MD5 | 88f910cef3d2986c7c1341a07d783e74 |
|
BLAKE2b-256 | 588bbeb9de9624937220fdb3587bb26a03a04f4922d8332f638d264a389684cc |