AutoGPT build detailed tutorial - easy to understand

Introduction to Auto-GPT

Autogpt is a GPT-based automatic text generation tool and a natural language processing technology released by OpenAI. It employs an automatic regression model capable of generating continuous textual output resembling human language from input text. The Autogpt model uses hundreds of millions of parameters to learn language patterns and rules. It has excellent natural language processing capabilities and can be applied to text summarization, machine translation, chat robots, speech recognition and other fields. Due to its excellent performance, Autogpt has received extensive attention and application.

1. Construction

Source address: https://github.com/Significant-Gravitas/Auto-GPT/releases/latest

1. Preconditions

  1. Python 3.10 or later (Note: for Windows) (see this article for python installation)
  2. OpenAI API secret

2. OpenAI API key configuration

Get your OpenAI API key from: https://platform.openai.com/account/api-keys.

To use an OpenAI API key with Auto-GPT, you need to set up a bill (i.e. a paid account).

You can set up a paid account at https://platform.openai.com/account/billing/overview.
insert image description here

For an OpenAI API key to work, set up a paid account in OpenAI API > Billing

Make sure you've done this step before proceeding, otherwise nothing will work!

3. Installation

1. Open a CMD, Bash or Powershell window
2. Clone the repository: For this step you need to install Git
git clone https://github.com/Significant-Gravitas/Auto-GPT.git
3. Navigate to the Download repository Directory
cd Auto-GPT
4. Install required dependencies
pip install -r requirements.txt
5. Configure Auto-GPT (add OpenAI API key to the configuration file)
.env.template Find the file named /Auto in the main folder -GPT.
Create a copy of this file, called .env by removing the template extension. The easiest way to do this is to do this cp .env.template .env in a command prompt/terminal window.
Open the .env file in a text editor. NOTE: Files starting with a dot may be hidden by your operating system.
Find what says OPENAI_API_KEY=.
After "=", enter your unique OpenAI API key (without any quotes or spaces).
Enter any other API keys or tokens for the services you want to use.
Save and close the .env file.
By completing these steps, you have properly configured an API key for your project.

Two, run

Run the autogptPython module in your terminal. On Linux or Mac:

On Linux of Mac:

./run.sh start

On Windows:

.\run.bat
Running .\run.bat with --helpafter will list all possible command line arguments you can pass.
After each action, choose from the options to authorize the command, exit the program, or provide feedback to the AI.
To authorize a single command, enter y
to authorize a series of N consecutive commands, enter y -N
to exit the program, and enter n

Guess you like

Origin blog.csdn.net/qq_44092306/article/details/130252980