mirror of
https://github.com/open-webui/open-webui
synced 2025-04-02 12:09:06 +00:00
Fix middleware.py missing prefix on embedding function
This commit is contained in:
parent
6ac153c989
commit
bc64b2a67f
@ -596,8 +596,8 @@ async def chat_completion_files_handler(
|
||||
request=request,
|
||||
files=files,
|
||||
queries=queries,
|
||||
embedding_function=lambda query: request.app.state.EMBEDDING_FUNCTION(
|
||||
query, user=user
|
||||
embedding_function=lambda query, prefix: request.app.state.EMBEDDING_FUNCTION(
|
||||
query, prefix=prefix, user=user
|
||||
),
|
||||
k=request.app.state.config.TOP_K,
|
||||
reranking_function=request.app.state.rf,
|
||||
|
Loading…
Reference in New Issue
Block a user