/autogen_demo

Chainlit, Autogen Demo

Primary LanguagePython

Integrate AutoGen into your Chatbot: Code Interpreter Clone

This is code from the Medium article Integrate AutoGen into your Chatbot: Code Interpreter Clone.

How to Run

CLone Project

git clone git@github.com:yepher/autogen_demo.git
cd autogen_demo

Setup Python venv

python -m venv ./.venv
source .venv/bin/activate

Install Dependencies

pip install --upgrade pip
pip install -r requirements.txt

Run

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

screen shot