You recently made this guide for me: 

“

AutoGPT and GPT4Free are open-source tools for using OpenAI’s GPT technology. This guide will help you set up these tools on a Raspberry Pi, making them accessible on your local network. We’ll be using the Raspberry Pi OS for this tutorial. Make sure your Raspberry Pi is running the latest Raspberry Pi OS and up to date before preceding.

1. Install dependencies and required tools:

Before installing Auto-GPT and GPT4Free, you’ll need to install some required tools and dependencies:

First, open a terminal and update your system:
sudo apt update
sudo apt upgrade -y

Next, install dependencies:
sudo apt install -y git python3-pip virtualenv

2. Install AutoGPT:

Start by cloning the AutoGPT repository:

cd /home/pi
git clone https://github.com/lonn3y/autogpt.git


Now, create a virtual environment for AutoGPT:

cd autogpt
virtualenv -p python3 venv
source venv/bin/activate


Install the required Python packages inside the virtual environment:

pip install -r requirements.txt


3. Configure AutoGPT:

Copy the example configuration file:

cp config.example.yml config.yml


Now you’ll configure AutoGPT. Edit the configuration file using a text editor, such as nano:

nano config.yml


Adjust the settings according to your requirements. You can leave the default values as they are for a basic setup. Save the file and exit the text editor.

4. Start AutoGPT:

Now you’re ready to start AutoGPT:

python autogpt/main.py


This will start AutoGPT, and it will be accessible at http://raspberrypi.local:8000 or http://your_raspberry_pi_ip:8000

To run AutoGPT in the background, use the following command:

nohup python autogpt/main.py &


5. Install GPT4Free:

Clone the GPT4Free repository:

cd /home/pi
git clone https://github.com/robinuniverse/GPT4Free.git


Create a virtual environment for GPT4Free:

cd GPT4Free
virtualenv -p python3 venv
source venv/bin/activate


Install the required Python packages in the virtual environment:

pip install -r requirements.txt

6. Configure GPT4Free:

Copy the example configuration file:

cp settings.py.example settings.py


Edit the configuration file using a text editor like nano:

nano settings.py


Adjust the settings as needed. You can leave the default values as they are for a basic setup. Save the file and exit the text editor.

7. Start GPT4Free:

Now you’re ready to start GPT4Free:

python gpt4free.py


This will start GPT4Free, and it will be accessible at http://raspberrypi.local:5000 or http://your_raspberry_pi_ip:5000

To run GPT4Free in the background, use the following command:

nohup python gpt4free.py &


8. Access AutoGPT and GPT4Free on the local network:

Now both services should be accessible on your Raspberry Pi’s IP at ports 8000 (AutoGPT) and 5000 (GPT4Free). To find out your Raspberry Pi’s local IP address, run:

hostname -I


You should see an IP address like 192.168.x.x. Open a browser on any device connected to the same local network and visit:

- AutoGPT: http://192.168.x.x:8000
- GPT4Free: http://192.168.x.x:5000

Replace 192.168.x.x with the Raspberry Pi’s IP address.

You should now have functional installations of both AutoGPT and GPT4Free on your Raspberry Pi and available on your local network.

“

Please extend on this guide with instructions on how to modify AutoGPT to use the local GPT4Free in place of OpenAI GPT4. Ensure the code changes don’t affect the functionality of the software, for example ensure the API calls are appropriate.