This is a proof-of-concept project that demonstrates how to use the OpenAI API to generate structured outputs. It is a simple nanodjango app that allows users to input a subject and receive a few questions as output.
- Python 3.9+
- Your own OpenAI API key
Clone the repository and install the dependencies with uv.
git clone https://github.com/thinkelearn/qugenai
cd qugenai
uv sync
Export your OpenAI API key as an environment variable.
uv run nanodjango run app.py
Then, navigate to http://localhost:8000 in your browser.
uv run pytest tests.py