fix(agent): strip _flush_sentinel from API messages
This commit is contained in:
parent
7b23dbfe68
commit
de101a8202
2 changed files with 39 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue