fix: Use bot-specific embedding config in DriveMonitor KB manager
All checks were successful
BotServer CI/CD / build (push) Successful in 3m47s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-11 08:55:41 -03:00
parent dd4c780c4d
commit 821dd1d7ab

View file

@ -59,7 +59,7 @@ impl DriveMonitor {
pub fn new(state: Arc<AppState>, bucket_name: String, bot_id: uuid::Uuid) -> Self {
let work_root = PathBuf::from(crate::core::shared::utils::get_work_path());
#[cfg(any(feature = "research", feature = "llm"))]
let kb_manager = Arc::new(KnowledgeBaseManager::new(work_root.clone()));
let kb_manager = Arc::new(KnowledgeBaseManager::with_bot_config(work_root.clone(), state.conn.clone(), bot_id));
Self {
state,