[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/Auto-GPT/master/.env.template .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>

注意


© Ying Bun 2021 - 2023