This is code from the Medium article Integrate AutoGen into your Chatbot: Code Interpreter Clone.
git clone git@github.com:yepher/autogen_demo.git
cd autogen_demo
python -m venv ./.venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Make sure you are in the autogen_demo
directory and that the python venv is active.
You will need you OpenAI API key from here set in the environment variable OPENAI_API_KEY
Example
# First time:
cd autogen_demo
source .venv/bin/activate
export OPENAI_API_KEY="sk-...."
# Run it
./.venv/bin/chainlit run app.py
Screenshot