[Chatgpt] Auto-GPT - steps of gpt uses
date
May 3, 2023
slug
chatgpt-auto-gpt
status
Published
summary
tags
chatgpt
type
Post
URL
图
介绍
安装
使用 Docker - https://docs.agpt.co/setup/
docker pull significantgravitas/auto-gpt
cat > docker-compose.yml <<EOF
version: "3.9"
services:
auto-gpt:
image: significantgravitas/auto-gpt
depends_on:
- redis
env_file:
- .env
environment:
MEMORY_BACKEND: ${MEMORY_BACKEND:-redis}
REDIS_HOST: ${REDIS_HOST:-redis}
profiles: ["exclude-from-up"]
volumes:
- ./auto_gpt_workspace:/app/autogpt/auto_gpt_workspace
- ./data:/app/data
## allow auto-gpt to write logs to disk
- ./logs:/app/logs
## uncomment following lines if you want to make use of these files
## you must have them existing in the same folder as this docker-compose.yml
#- type: bind
# source: ./azure.yaml
# target: /app/azure.yaml
#- type: bind
# source: ./ai_settings.yaml
# target: /app/ai_settings.yaml
redis:
image: "redis/redis-stack-server:latest"
EOF
# set up .env
curl -L https://raw.githubusercontent.com/Significant-Gravitas/AutoGPT/master/autogpts/autogpt/.env.template -o .env
# fix key, choose chatgpt-4
docker-compose run --rm auto-gpt
docker-compose run --rm auto-gpt --help
docker-compose run --rm auto-gpt --ai-settings <filename>
# update
docker-compose pull
注意Run https://docs.agpt.co/autogpt/setup/docker/
- Run AutoGPT:
docker compose run --rm auto-gpt serve
- Run AutoGPT in TTY mode, with continuous mode.
docker compose run --rm auto-gpt run --continuous
- Run AutoGPT in TTY mode and install dependencies for all active plugins:
docker compose run --rm auto-gpt run --install-plugin-deps