feat: make it not use two user messages in a row

This commit is contained in:
SwiftWinds 2026-04-03 15:32:50 -07:00
parent 6a71bff7c7
commit b9c9bddcfe

View file

@ -99,8 +99,8 @@ async def maybe_compact_context(
transcript = _serialize_messages_for_summary(messages)
summarization_messages: List[Dict[str, Any]] = [
{"role": "system", "content": SUMMARIZATION_SYSTEM_PROMPT},
{"role": "user", "content": transcript},
{"role": "user", "content": SUMMARIZATION_SYSTEM_PROMPT},
]
acompletion_kwargs: Dict[str, Any] = {