fix: 恢復 FS VLM Summary 手動觸發 API

- 重新啟用 /api/v1/file/:file_uuid/vlm-summary 路由(之前被註解)
- 取消 trigger_vlm_summary handler 的註解
- output_dir 改用 per-library
- 規則: FS VLM Summary 只手動觸發,不在 pipeline_flows 自動執行
- 驗證: API 回傳 success, 22 traces pending
This commit is contained in:
Accusys
2026-11-19 15:54:36 +08:00
parent a57e0bb433
commit 9758d91e0a
+5 -10
View File
@@ -1220,9 +1220,6 @@ async fn verify_file_handler(
Json(report)
}
/// [DISABLED] FS VLM Summary removed from pipeline (2026-09-22)
/// Scene VLM (moment chunk VLM) remains active
/*
/// Manually trigger VLM summary generation for an existing file.
/// Non-blocking: returns immediately, VLM runs in background.
async fn trigger_vlm_summary(
@@ -1230,7 +1227,7 @@ async fn trigger_vlm_summary(
Path(file_uuid): Path<String>,
) -> Json<serde_json::Value> {
let db = state.db.clone();
let output_dir = crate::core::config::OUTPUT_DIR.clone();
let output_dir = crate::core::config::get_output_dir_for_file(&file_uuid, db.pool()).await;
// Check if file has face traces
let tp_table = crate::core::db::schema::table_name("trace_profiles");
@@ -1291,7 +1288,6 @@ async fn trigger_vlm_summary(
"pending": pending,
}))
}
*/
pub fn processing_routes() -> Router<AppState> {
Router::new()
@@ -1323,9 +1319,8 @@ pub fn processing_routes() -> Router<AppState> {
get(get_processor_json),
)
.route("/api/v1/file/:file_uuid/verify", get(verify_file_handler))
// [DISABLED] FS VLM Summary API removed (2026-09-22)
// .route(
// "/api/v1/file/:file_uuid/vlm-summary",
// post(trigger_vlm_summary),
// )
.route(
"/api/v1/file/:file_uuid/vlm-summary",
post(trigger_vlm_summary),
)
}