Experimenting with OpenAI's ChatGPT using the free training ChatGPT Prompt Engineering for Developers by DeepLearning.AI.
- Create an account on OpenAI's platform
- If you don't have enough free credits, switch to a paid account
- Create an API key
- Store the API key in a file called
.env
in the current project using the following format:
# OpenAI key
OPENAI_ORGANIZATION=…
OPENAI_API_KEY=sk-…
- Run Poetry:
poetry install
Note: The .env
file is ignored if the .gitignore
file is configured correctly
Either start Jupyter Notebook to run the notebooks, or run the Python scripts in a Poetry shell using:
poetry shell
python prompting.py