#!/bin/bash #--- # dependencies: # charm.sh/gum: '*' #--- set -eo pipefail if [ -z "$OPENAI_API_KEY"]; then gum format < https://platform.openai.com/account/api-keys GPT4 is recommended. Though this requires signing up for the [waitlist](https://openai.com/waitlist/gpt-4-api) GPT 3 is ok. Set this key in your \`~/.shellrc\` file. EoMD exit 1 fi gum format < we are writing snake in python. MVC components split in separate files. keyboard control. type your prompt below (⌃D when done) EoMD echo #spacer prompt="$(gum write --placeholder 'main prompt…')" gum format < "$docs/$title/main_prompt" gum format < output will be written to \`$docs/$title\` # running \`gpt-engineer\` EoMD exec gpt-engineer "$docs/$title"