Skip to content

mikedesu/chatgpt-tools

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

chatgpt-tools

A collection of tools I am writing and dabbling with that uses ChatGPT's API.

Warning

  • Use the autogpt_test.py (and future tools) program at your own peril.
  • One thing not discussed about AutoGPT-type tools is how many requests they make.
  • After weeks of not-using the OpenAI API much and then one day deciding to play with an idea, I'd suddenly burnt up a ton of tokens.
  • It is important to be mindful of how much content you send per message.
  • Sometimes it is necessary to send previous messages and responses, but each message done this way expontentially increases the content sent.

Using AutoGPT-type tools can be expensive!!!

Examples

Probably the most useful immediately is the CLI to ChatGPT. You'll need to switch out your organization and API_KEY variables to make this work.

python3 pal.py <prompt_filename> <model>

asciicast


Next is the audio transcription feature that allows you to upload an audio file to OpenAI's "Whisper" API and get back a text file containing the audio transcribed as plaintext.

python3 whisper.py <filename> <outfile>

asciicast


Now let's get into something a bit more experimental...

I've devised a simple example of how one might attempt to scrape the contents of a webpage and summarize whatever is found there. Because any given webpage might have a lot of text, this script will possibly generate many requests to ChatGPT depending on the webpage. You have been warned.

python3 autogpt_test.py <url>

asciicast

About

A collection of tools that I am writing that use the ChatGPT and Whisper APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published