mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix: strip leaked memory context from commentary
This commit is contained in:
parent
c8e9d47be7
commit
3ce47677e9
2 changed files with 25 additions and 1 deletions
|
|
@ -5816,7 +5816,7 @@ class AIAgent:
|
|||
if cb is None or not isinstance(assistant_msg, dict):
|
||||
return
|
||||
content = assistant_msg.get("content")
|
||||
visible = self._strip_think_blocks(content or "").strip()
|
||||
visible = sanitize_context(self._strip_think_blocks(content or "")).strip()
|
||||
if not visible or visible == "(empty)":
|
||||
return
|
||||
already_streamed = self._interim_content_was_streamed(visible)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue