Skip to content

Commit

Permalink
fix: log modified messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Mar 10, 2024
1 parent d40edc0 commit 1a93021
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a93021

Please sign in to comment.