Skip to content

Instantly share code, notes, and snippets.

@gloriouskilka
gloriouskilka / gist:679ccbcac91875de950e79972d3ea61c
Created December 10, 2024 12:26
Autogen 0.2 autogen_agentchat_02 autogen_02
import os
import sys
def replace_in_file(filename, replacements):
with open(filename, 'r', encoding='utf-8') as f:
lines = f.readlines()
new_lines = []
for line in lines:
for old, new in replacements.items():
@gloriouskilka
gloriouskilka / gist:72a1879d05fbed1d93b93c1d8a44253e
Created December 10, 2024 08:51
Autogen 0.2 and 0.4 at the same time
git clone -b 0.2 https://github.com/microsoft/autogen autogen_02
cd autogen_02
powershell -Command "(Get-Content setup.py) -replace 'autogen-agentchat', 'autogen_agentchat_02' | Set-Content setup.py"
REM pip install ./autogen_02
pip install .
pip install autogen-agentchat==0.4.0.dev10 autogen-ext[openai]==0.4.0.dev10