mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
* fix: ensure atomic creation of knowledge base with proper cleanup on failure - Added pre-validation for embedding_provider_id parameter - Added check for existing knowledge base with same name - Implemented proper rollback mechanism when KBHelper initialization fails - Uses same session for cleanup to ensure data consistency - Fixes #4403 * fix: ensure atomic KB creation with session.flush() to remove race condition risks * fix: ensure change the annotation back