Files
open-webui-custom/backend/open_webui
Classic298 182d5e8591 fix(db): release connection before embedding in process_files_batch (#20576)
Remove Depends(get_session) from POST /process/files/batch endpoint to prevent database connections from being held during batch embedding API calls (5-60+ seconds for large batches).

The save_docs_to_vector_db() function makes external embedding API calls. Post-embedding file updates (Files.update_file_by_id) manage their own short-lived sessions internally, releasing connections promptly.
2026-01-11 23:32:56 +04:00
..
2025-12-21 23:17:53 +04:00
2026-01-09 20:44:31 +04:00
2026-01-09 22:27:53 +04:00
2026-01-08 01:55:56 +04:00
2025-08-10 00:02:58 +04:00
2025-12-28 23:35:09 +04:00
2026-01-09 22:27:53 +04:00
2026-01-11 00:52:43 +04:00
2025-04-15 09:55:35 +02:00
2026-01-09 19:42:13 +04:00
2026-01-09 19:42:13 +04:00