mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 15:05:07 +00:00
fix
This commit is contained in:
parent
35026849df
commit
bcc27e3852
@ -357,7 +357,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
|
||||
if "files" in data:
|
||||
data = {**data}
|
||||
rag_context, citations = get_rag_context(
|
||||
docs=data["files"],
|
||||
files=data["files"],
|
||||
messages=data["messages"],
|
||||
embedding_function=rag_app.state.EMBEDDING_FUNCTION,
|
||||
k=rag_app.state.config.TOP_K,
|
||||
|
Loading…
Reference in New Issue
Block a user