From 1a93021cc44aaa89e432b4ff1d5220706483cb46 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 9 Mar 2024 20:12:32 -0800 Subject: [PATCH] fix: log modified messages --- backend/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/main.py b/backend/main.py index e63f91a04c..6705102a52 100644 --- a/backend/main.py +++ b/backend/main.py @@ -160,6 +160,8 @@ async def dispatch(self, request: Request, call_next): data["messages"][last_user_message_idx] = new_user_message del data["docs"] + print(data["messages"]) + modified_body_bytes = json.dumps(data).encode("utf-8") # Create a new request with the modified body