From a8b8e454a43a1f7ae87f814ab8ba1682156a35fa 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 fc2db41f0..b7979f214 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