This commit is contained in:
Timothy Jaeryang Baek
2026-02-25 15:15:59 -06:00
parent 636ab99ad8
commit 345f3e3559
12 changed files with 40 additions and 25 deletions
+1 -3
View File
@@ -277,9 +277,7 @@ def get_last_user_message(messages: list[dict]) -> Optional[str]:
return get_content_from_message(message)
def set_last_user_message_content(
content: str, messages: list[dict]
) -> list[dict]:
def set_last_user_message_content(content: str, messages: list[dict]) -> list[dict]:
"""
Replace the text content of the last user message in-place.
Handles both plain-string and list-of-parts content formats.