Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: correct string concatenation in llm_summarizing_condenser.py (#7541)

VS1596a6cc6238
diff --git a/openhands/memory/condenser/impl/llm_summarizing_condenser.py b/openhands/memory/condenser/impl/llm_summarizing_condenser.py
index 8a96305e6d..4edd3247c2 100644
--- a/openhands/memory/condenser/impl/llm_summarizing_condenser.py
+++ b/openhands/memory/condenser/impl/llm_summarizing_condenser.py
@@ -82,11 +82,11 @@ CHANGES: str(val) replaces f"{val:.16G}"
DEPS: None modified
INTENT: Fix precision while maintaining FITS compliance"""
- prompt + '\n\n'
+ prompt += '\n\n'
prompt += ('\n' + summary_event.message + '\n') if summary_event.message else ''
- prompt + '\n\n'
+ prompt += '\n\n'
for forgotten_event in forgotten_events:
prompt += str(forgotten_event) + '\n\n'