mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix
This commit is contained in:
parent
35026849df
commit
bcc27e3852
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue