mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 20:54:59 +00:00
refactor: Split summarize method and add model metadata handling
This commit is contained in:
parent
73bc0f6258
commit
dff544cd5d
6 changed files with 38 additions and 3 deletions
|
@ -112,7 +112,7 @@ def format_messages(messages, title=None):
|
|||
output.append(f"{title.upper()} {'*' * 50}")
|
||||
|
||||
for msg in messages:
|
||||
output.append("")
|
||||
output.append("-------")
|
||||
role = msg["role"].upper()
|
||||
content = msg.get("content")
|
||||
if isinstance(content, list): # Handle list content (e.g., image messages)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue