Files
open-webui-custom/backend
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
..
2025-09-12 14:09:32 +08:00
2026-01-09 18:10:27 +04:00
2026-01-09 18:10:27 +04:00
2025-06-27 15:46:38 +04:00
2025-10-07 16:20:27 -05:00