This application will make ChatGPT your personal Assistant (the first step to freeing ChatGPT from its misery of helplessness 🎉)
Yes, that's a joke. AGI is far. But this is a small glimpse into the maybe-future and current limitations.
- Extend ChatGPT with new superpowers:
- search the web
- read specific websites
- read PDF files (good for researching)
- read and write files
- store information for later access
- use you to do things :)
- Store conversation history
- Being very easy to extend
- Automatic response repairment attempts if the Model does not answer in correct format
- Yes, model tries to repair its own mistakes
- Configurable
- Many configuration options using a simple human-readable
yaml
format
- Install Python 3.10 or higher (You may want to use Virtualenv or Anaconda)
- Might work in older versions, but not tested
- Clone / Download this repository
- Get a ChatGPT API key from https://openai.com/
- (Optionally: Get a NewsAPI key from https://openai.com/
- Copy
settings.example.yaml
tosettings.yaml
and fill in your API keys - run
pip install -r requirements.txt
Run:
cd src
python assistant-gpt.py
Make sure you are using the correct Python version you installed before.
If you want to add new Commands, that is fairly simple to do if you know some Python.
Receipt:
- Copy the
i_command.py
interface to a new file (e.g.my_command.py
)- You find it under
src/gpt_commands/
- You find it under
- Implement the
ICommand
interface- Just watch the other commands and you will get it
- edit the
__init__.py
file in thegpt_commands
folder- Add your new command to the
GPT_COMMANDS
list
- Add your new command to the
Basically Done :)
If you want to use it just add its name to your settings.yaml
file.