refactor: Split summarize method and add model metadata handling

This commit is contained in:
Paul Gauthier 2025-01-20 09:38:45 -08:00 committed by Paul Gauthier (aider)
parent 73bc0f6258
commit dff544cd5d
6 changed files with 38 additions and 3 deletions

View file

@ -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)