forked from open-webui/open-webui
feat: rag docs as payload field
This commit is contained in:
parent
c49491e516
commit
6c58bb59be
3 changed files with 25 additions and 53 deletions
|
@ -123,8 +123,6 @@ class RAGMiddleware(BaseHTTPMiddleware):
|
|||
data["messages"][last_user_message_idx] = new_user_message
|
||||
del data["docs"]
|
||||
|
||||
print("DATAAAAAAAAAAAAAAAAAA")
|
||||
print(data)
|
||||
modified_body_bytes = json.dumps(data).encode("utf-8")
|
||||
|
||||
# Create a new request with the modified body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue