Files
open-webui-custom/backend/open_webui/routers
Classic298 1cb751d184 fix(db): release connection before embedding in knowledge /{id}/update (#20574)
Remove Depends(get_session) from POST /{id}/update endpoint to prevent database connections from being held during embedding API calls (1-5+ seconds).

All database operations (get_knowledge_by_id, has_access, has_permission, update_knowledge_by_id, get_file_metadatas_by_id) manage their own short-lived sessions internally, releasing connections before and after the slow embed_knowledge_base_metadata() call.
2026-01-11 23:36:36 +04:00
..
2026-01-09 18:51:38 +04:00
2026-01-10 15:34:12 +04:00
2026-01-08 01:55:56 +04:00
2026-01-08 00:53:21 +04:00
2026-01-09 20:44:31 +04:00
2025-12-29 00:21:18 +04:00
2026-01-08 00:53:21 +04:00
2026-01-05 05:32:56 +04:00
2026-01-08 01:55:56 +04:00
2025-12-29 01:20:04 +04:00
2026-01-08 00:53:21 +04:00
2026-01-09 02:46:04 +04:00