fix(agent): strip _flush_sentinel from API messages
This commit is contained in:
@@ -1430,6 +1430,7 @@ class AIAgent:
|
||||
if reasoning:
|
||||
api_msg["reasoning_content"] = reasoning
|
||||
api_msg.pop("reasoning", None)
|
||||
api_msg.pop("_flush_sentinel", None)
|
||||
api_messages.append(api_msg)
|
||||
|
||||
if self._cached_system_prompt:
|
||||
|
||||
Reference in New Issue
Block a user