mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
refactor
This commit is contained in:
parent
fcaf4e15c8
commit
b139dbf475
2 changed files with 14 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue