This demo is an AutoGen group chat playground built with Panel. You can use it to interact with the AutoGen agents. Scroll down to see the code for creating and using the agents.
# Install dependencies
pip install -U -r requirements.txt
# Launch app
bash run.sh
docker build -t autogen/groupchat .
docker run -it autogen/groupchat -p 5006:5006
- Run One-API locally
docker run --name one-api -d --restart always -p 3000:3000 -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/tmp justsong/one-api
-
Create a file named
OAI_CONFIG_LIST
with below content
Put the file in the same folder with app.py
then it will be loaded by default.
Or you can upload it in the app's UI later.
[
{
"model": "ERNIE-Bot-turbo",
"base_url": "http://localhost:3000/v1/",
"api_version": "2023-05-15",
"api_key": "sk-***"
}
]
Replace the model with the one you want to try, replace the api_key with the one you copied in step 5.
Don't worry about the keys, everything is running locally.