瀏覽代碼

Remove duplicate loader.alazy_load line from merge

Rory 2 月之前
父節點
當前提交
b1bab2ece8
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      backend/open_webui/routers/retrieval.py

+ 0 - 2
backend/open_webui/routers/retrieval.py

@@ -1348,8 +1348,6 @@ async def process_web_search(
             requests_per_second=request.app.state.config.RAG_WEB_SEARCH_CONCURRENT_REQUESTS,
             requests_per_second=request.app.state.config.RAG_WEB_SEARCH_CONCURRENT_REQUESTS,
             trust_env=request.app.state.config.RAG_WEB_SEARCH_TRUST_ENV,
             trust_env=request.app.state.config.RAG_WEB_SEARCH_TRUST_ENV,
         )
         )
-        docs = [doc async for doc in loader.alazy_load()]
-        # docs = loader.load()
         docs = await loader.aload()
         docs = await loader.aload()
         await run_in_threadpool(
         await run_in_threadpool(
             save_docs_to_vector_db,
             save_docs_to_vector_db,