fix(agent): strip _flush_sentinel from API messages

This commit is contained in:
Farukest 2026-03-01 02:51:31 +03:00
parent 7b23dbfe68
commit de101a8202
No known key found for this signature in database
GPG key ID: 73E2756B3FFF5241
2 changed files with 39 additions and 0 deletions

View file

@ -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: