From 1847be25b24de0bd05a65e7ac815cb30ccbdc746 Mon Sep 17 00:00:00 2001 From: Dmitry Paramonov Date: Sat, 14 Sep 2024 17:28:48 +0300 Subject: [PATCH] fix: Remove ID field --- agents-api/agents_api/routers/sessions/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agents-api/agents_api/routers/sessions/chat.py b/agents-api/agents_api/routers/sessions/chat.py index 76ef4eadd..2f336027c 100644 --- a/agents-api/agents_api/routers/sessions/chat.py +++ b/agents-api/agents_api/routers/sessions/chat.py @@ -69,6 +69,8 @@ async def chat( for m in past_messages: with suppress(KeyError): del m["created_at"] + with suppress(KeyError): + del m["id"] messages = past_messages + new_messages