Browse Source

fix: log modified messages

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
1a93021cc4
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      backend/main.py

+ 2 - 0
backend/main.py

@@ -160,6 +160,8 @@ class RAGMiddleware(BaseHTTPMiddleware):
                 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