mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
better
This commit is contained in:
parent
2691c80ac2
commit
6c87d5be1c
5 changed files with 33 additions and 8 deletions
|
@ -25,6 +25,10 @@ def show_messages(messages, title=None):
|
|||
|
||||
for msg in messages:
|
||||
role = msg["role"].upper()
|
||||
content = msg["content"].splitlines()
|
||||
for line in content:
|
||||
print(role, line)
|
||||
content = msg.get("content")
|
||||
if content:
|
||||
for line in content.splitlines():
|
||||
print(role, line)
|
||||
content = msg.get("function_call")
|
||||
if content:
|
||||
print(role, content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue