Merge pull request #2413 from NousResearch/hermes/hermes-5d6932ba

fix: add iteration boundary linebreak to prevent stream concatenation
This commit is contained in:
Teknium 2026-03-21 19:28:12 -07:00 committed by GitHub
commit 43bca6d107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6732,6 +6732,9 @@ class AIAgent:
_msg_count_before_tools = len(messages)
self._execute_tool_calls(assistant_message, messages, effective_task_id, api_call_count)
# Signal iteration boundary to stream consumers to prevent text concatenation
self._fire_stream_delta("\n\n")
# Refund the iteration if the ONLY tool(s) called were
# execute_code (programmatic tool calling). These are
# cheap RPC-style calls that shouldn't eat the budget.