mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
@@ -299,6 +299,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
|
||||
context += ("\n" if context != "" else "") + response
|
||||
del data["tool_ids"]
|
||||
|
||||
print(context)
|
||||
|
||||
# If docs field is present, generate RAG completions
|
||||
if "docs" in data:
|
||||
data = {**data}
|
||||
|
||||
Reference in New Issue
Block a user