差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:autogpt [2023/04/16 13:00] – jonathan | tech:autogpt [2023/04/16 13:27] (目前版本) – jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
====== 安裝 AutoGPT 紀錄 ====== | ====== 安裝 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 <cli> | ||
+ | root@ct-autogpt: | ||
+ | Python 3.10.6 | ||
+ | root@ct-autogpt: | ||
+ | pip 22.0.2 from / | ||
+ | </ | ||
+ | * 下載與安裝 AutoGPT <cli> | ||
+ | git clone https:// | ||
+ | cd Auto-GPT | ||
+ | pip install -r requirements.txt | ||
+ | </ | ||
+ | * 至 OpenAI 取的 API Key - https:// | ||
+ | * 編輯 .env 內容 <cli> | ||
+ | cp .env.template .env | ||
+ | vi .env | ||
+ | </ | ||
+ | : | ||
+ | ### 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: | ||
+ | pymilvus not installed. Skipping import. | ||
+ | Warning: The file ' | ||
+ | Welcome to Auto-GPT! | ||
+ | Name your AI: For example, ' | ||
+ | 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, | ||
+ | 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:// | ||
+ | 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: | ||
+ | - Thinking... | ||
+ | : | ||
+ | : | ||
+ | </ | ||
===== [x]在 Alpine 3.7 ===== | ===== [x]在 Alpine 3.7 ===== |