"backend/vscode:/vscode.git/clone" did not exist on "eadbfeb2774551094e851e2850cde4e3d37fc419"
Commit 1a93021c authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: log modified messages

parent d40edc09
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment