Giter Site home page Giter Site logo

MetaGPT about blog HOT 1 OPEN

WangShuXian6 avatar WangShuXian6 commented on September 24, 2024
MetaGPT

from blog.

Comments (1)

WangShuXian6 avatar WangShuXian6 commented on September 24, 2024

MetaGPT docker

docker-compose.yml

新建空目录 /opt/metagpt/config/opt/metagpt/workspace
下载 https://github.com/geekan/MetaGPT/blob/main/config/config.yaml 放入./opt/metagpt/config 文件夹
复制 config.yaml,重命名为key.yaml,在key.yaml内加入 ChatGPT API .[非必须,只是key.yaml优先级高于config.yaml]
配置 OPENAI_API_KEY,必填,需要GPT4,更换后需要重启容器
配置 OPENAI_API_BASE ChimeraGPT 必填

version: '3'
services:
  metagpt:
    image: metagpt/metagpt:v0.3
    restart: always
    #environment:
      #OPENAI_API_KEY: xxx
    volumes:
      #https://github.com/geekan/MetaGPT/blob/main/config/config.yaml 放入./opt/metagpt/config 文件夹
      - ./opt/metagpt/config:/app/metagpt/config
      #空文件夹
      - ./opt/metagpt/workspace:/app/metagpt/workspace
    container_name: metagpt
    privileged: true

#docker-compose up -d
#docker exec -it metagpt /bin/bash # 进入容器
#python startup.py "Write a cli snake game" # 在容器内运行metagpt
docker-compose up -d
docker exec -it metagpt /bin/bash # 进入容器
python startup.py "Write a cli snake game" # 在容器内运行metagpt

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.