beala / cheapgpt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A python script for interacting with ChatGPT over the API. Possibly cheaper than ChatGPT Plus.

Screen.Recording.2023-03-01.at.11.31.18.PM.mov

Start a prompt with three of the same character (eg, """ but can be any character) to start multiline input. End the prompt by repeating those same characters on their own line.

Setup

Set up a virtualenv and install the python dependencies:

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Create a file called API_KEY with your API key in it.

echo your_key_goes_here > ~/.openai_key

In cheapgpt.py, set openai.organization to your organization ID.

About

License:MIT License


Languages

Language:Python 72.1%Language:Lua 27.9%