Forked from mberman84/gist:c5d77723d2848e890f41a7a226f36eec
Created
October 19, 2023 03:32
-
-
Save stjordanis/3db1f88d4ea97dbe734167dec1e22713 to your computer and use it in GitHub Desktop.
MetaGPT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Must have conda installed | |
# It costs approximately $0.2 (in GPT-4 API fees) to generate one example with analysis and design, and around $2.0 for a full project. | |
conda create -n metagpt python=3.11.4 | |
conda activate metagpt | |
npm --version # to check you have npm installed | |
# optional: install node if you don't have it | |
npm install -g @mermaid-js/mermaid-cli | |
git clone https://github.com/geekan/metagpt | |
cd metagpt | |
python -m pip install -r requirements.txt | |
python setup.py install | |
# create openai API key | |
# insert API key into config/config.yaml | |
# make sure to set the model correctly depending on which model you have access to | |
python startup.py "Write a cli snake game based on pygame" # optional --code_review True (better code, costs more) | |
# if you get ModuleNotFoundError: No module named 'bs4’, run "python -m pip install bs4" | |
python startup.py "Write a cli snake game based on pygame" # do this again if you got the ModuleNotFoundError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment