forked from open-webui/open-webui
fix: log modified messages
This commit is contained in:
parent
d40edc09e1
commit
1a93021cc4
1 changed files with 2 additions and 0 deletions
|
@ -160,6 +160,8 @@ class RAGMiddleware(BaseHTTPMiddleware):
|
||||||
data["messages"][last_user_message_idx] = new_user_message
|
data["messages"][last_user_message_idx] = new_user_message
|
||||||
del data["docs"]
|
del data["docs"]
|
||||||
|
|
||||||
|
print(data["messages"])
|
||||||
|
|
||||||
modified_body_bytes = json.dumps(data).encode("utf-8")
|
modified_body_bytes = json.dumps(data).encode("utf-8")
|
||||||
|
|
||||||
# Create a new request with the modified body
|
# Create a new request with the modified body
|
||||||
|
|
Loading…
Reference in a new issue