Skip to main content

GPT on the command line.

Project description

gpyt

TUI GPT frontend on the command line with Textual.

WIP

Demo

gpyt demo

Uses Textual.

How to run:

$ pip install gpyt

add `OPENAI_API_KEY="<your_openai_api_key>"` in a `.env` at $HOME or `export OPENAI_API_KEY=<your_key>`

$ python -m gpyt

Desired Features

  • copy to copy GPT's response to clipboard
  • add gpt jailbreaks (DAN-esque)
  • new to start a new chat (clear all history and console window)
  • add special flags like -t (terse) or -v (verbose) or -d (detailed) or -i
  • (informal) or -f (for file input) or --dan (for jailbreak)
  • model select CLI
  • add API_KEY from CLI
  • add special error handling for RateLimiting or early stops to generation of text stream
  • gpt4free integration (for 3.5 and 4)
  • live upate past convo view (ctrl+s show instantly)

Completed Features

  • loading wheel
  • textual !!!
  • scrolling text (adjustable speed, or disable all together)
  • use streams api?
  • store chat logs somewhere.
  • load saved conversations

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

gpyt-0.2.7.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

gpyt-0.2.7-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file gpyt-0.2.7.tar.gz.

File metadata

  • Download URL: gpyt-0.2.7.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.0 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for gpyt-0.2.7.tar.gz
Algorithm Hash digest
SHA256 22455ffc1ca7330d5f29603673c615b1c164b429259c24e27289c422274f0ef8
MD5 06ce0a854d72138d197372762055ac83
BLAKE2b-256 10aaa8d3adc278028e1e109b856997df62f89ca68897f47960e8a1edfbe837de

See more details on using hashes here.

File details

Details for the file gpyt-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: gpyt-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.0 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for gpyt-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7ba43698f351d930d24a402a8629d9afd1b81cd98900410c8eedb4ddb568ce
MD5 69c8948557a1ad6d8f98b43a5eaec584
BLAKE2b-256 6113eff69b207930d8ad7a40481148951f16d0a7ddba27ed29cdb7d029d03462

See more details on using hashes here.

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