update clear msg bc anthropic needs at least 1 msg in chat call

This commit is contained in:
Edward Sun
2025-06-15 23:14:47 -07:00
parent da84ef43aa
commit 7eaf4d995f

View File

@@ -24,7 +24,7 @@ def create_msg_delete():
removal_operations = [RemoveMessage(id=m.id) for m in messages]
# Add a minimal placeholder message
placeholder = HumanMessage(content="Continue analysis")
placeholder = HumanMessage(content="Continue")
return {"messages": removal_operations + [placeholder]}