This commit is contained in:
Paul Gauthier 2023-05-10 18:41:36 -07:00
parent fcaf4e15c8
commit b139dbf475
2 changed files with 14 additions and 16 deletions

View file

@ -111,3 +111,15 @@ def do_replace(fname, before_text, after_text):
fname.write_text(new_content)
return True
def show_messages(self, messages, title):
print(title.upper(), "*" * 50)
for msg in messages:
print()
print("-" * 50)
role = msg["role"].upper()
content = msg["content"].splitlines()
for line in content:
print(role, line)