Mereep / assistant-gpt

Extensible ChatGPT Frontend to search the web, create files and execute arbitrary commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assistant GPT

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.

Demo

Demo Generating business plan and saving it to disk

Features

  • 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-readableyaml format

Installation

  • 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 to settings.yaml and fill in your API keys
  • run pip install -r requirements.txt

Usage:

Run:

cd src
python assistant-gpt.py

Make sure you are using the correct Python version you installed before.

Extend the Command GPT

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/
  • Implement the ICommand interface
    • Just watch the other commands and you will get it
  • edit the __init__.py file in the gpt_commands folder
    • Add your new command to the GPT_COMMANDS list

Basically Done :) If you want to use it just add its name to your settings.yaml file.

About

Extensible ChatGPT Frontend to search the web, create files and execute arbitrary commands

License:GNU General Public License v3.0


Languages

Language:Python 100.0%