A Python script that turns ChatGPT into a Dungeon/Game Master for a tabletop roleplaying game.
- Clone this repo:
git clone https://github.com/ThatBeADragon/dungeon_gpt
- Install Python 3.7.1 or higher: https://www.python.org/downloads/
- (Optional) Setup a virtual environment:
python -m venv dungeon_gpt
dungeon_gpt\Scripts\activate
- Enter directory:
cd dungeon_gpt
- Set OpenAI API key:
setx OPENAI_API_KEY "your-api-key-here"
- Install the OpenAI Python library:
pip install --upgrade openai
- Install the Langchain library:
pip install --upgrade langchain
- Run the app:
python dungeon.py