====== 安裝 AutoGPT 紀錄 ======
===== 在 Ubuntu 22.04 =====
* 安裝環境 : PVE 內啟動一個 CT - ubuntu22.04 範本建立
==== 安裝過程 ====
* 更新與安裝 Ubuntu 套件
apt update && apt upgrade -y
apt install python-is-python3 python3-pip git -y
* 查看 python 版本是否高於 3.8
root@ct-autogpt:~# python3 --version
Python 3.10.6
root@ct-autogpt:~# pip --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
* 下載與安裝 AutoGPT
git clone https://github.com/Torantulino/Auto-GPT.git
cd Auto-GPT
pip install -r requirements.txt
* 至 OpenAI 取的 API Key - https://platform.openai.com/account/api-keys
* 編輯 .env 內容
cp .env.template .env
vi .env
將 OPENAI_API_KEY=your-openai-api-key 換成剛剛取得的 OpenAI Key Exp.
:
### OPENAI
# OPENAI_API_KEY - OpenAI API Key (Example: my-openai-api-key)
# TEMPERATURE - Sets temperature in OpenAI (Default: 1)
# USE_AZURE - Use Azure OpenAI or not (Default: False)
OPENAI_API_KEY=sk-lxhrxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxzmbR
:
==== 進行簡易驗證 ====
* 執行 python -m autogpt 開始進行驗證
root@ct-autogpt:~/Auto-GPT# python -m autogpt
pymilvus not installed. Skipping import.
Warning: The file 'auto-gpt.json' does not exist.Local memory would not be saved to a file.
Welcome to Auto-GPT! Enter the name of your AI and its role below. Entering nothing will load defaults.
Name your AI: For example, 'Entrepreneur-GPT'
AI Name: AI-Code-Reviewer
AI-Code-Reviewer here! I am at your service.
Describe your AI's role: For example, 'an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.'
AI-Code-Reviewer is: Yore primary responsibility is to analyze and evaluate code written for artificial intelligence systems to ensure that it meets industry standards and best practices. They review the code to identify potential errors, bugs, and security vulnerabilities, and provide feedback to developers on how to improve the code. Additionally, they ensure that the code conforms to organizational policies, regulations, and legal requirements. The AI Code Reviewer also collaborates with developers to implement changes and improvements to the code, and may be responsible for creating and maintaining documentation related to the code. Overall, the AI Code Reviewer plays a critical role in ensuring the quality, reliability, and safety of artificial intelligence systems.
Enter up to 5 goals for your AI: For example: Increase net worth, Grow Twitter Account, Develop and manage multiple businesses autonomously'
Enter nothing to load defaults, enter nothing when finished.
Goal 1: get deploy-devops-lite source code from https://github.com/iii-org/deploy-devops-lite
Goal 2: analysis code smell
Goal 3: rewrite source code
Goal 4: generate new source code files
Goal 5: generate summary report to a file
Using memory of type: LocalCache
Using Browser: chrome
- Thinking...
:
:
===== [x]在 Alpine 3.7 =====
* 安裝環境 : PVE 內啟動一個 CT - alpine3.7 範本建立
* 結果在 pip install -r requirements.txt 出現以下錯誤
:
Collecting black
Downloading black-23.3.0-py3-none-any.whl (180 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.0/181.0 kB 6.2 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement sourcery (from versions: none)
ERROR: No matching distribution found for sourcery
==== 安裝過程 ====
* 更新與安裝 alpine 套件
apk update && apk upgrade
apk add git python3 py3-pip
* 查看 python 版本是否高於 3.8
ct-autogpt:~# python3 --version
Python 3.10.11
ct-autogpt:~# pip --version
pip 22.3.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)
* 下載與安裝 AutoGPT
git clone https://github.com/Torantulino/Auto-GPT.git
cd Auto-GPT
pip install -r requirements.txt
:
===== 參考網址 =====
* https://github.com/Significant-Gravitas/Auto-GPT
{{tag>ai gpt}}