fix: 延長 VLM timeout 120s→300s(vlm_summary、agent analyze_frame、backfill_trace_vlm)
This commit is contained in:
@@ -150,7 +150,7 @@ async fn process_trace(file_uuid: &str, trace_id: i32) -> Result<ProcessOutcome>
|
|||||||
"Summarize this key frame.",
|
"Summarize this key frame.",
|
||||||
vec![base64_img],
|
vec![base64_img],
|
||||||
512,
|
512,
|
||||||
120,
|
300,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|||||||
@@ -956,7 +956,7 @@ pub async fn exec_analyze_frame(
|
|||||||
|
|
||||||
let system_prompt =
|
let system_prompt =
|
||||||
"你是一個專業的影片畫面分析助手。請根據提供的畫面以及用戶的問題,詳細描述畫面中的內容,包括場景、人物、動作、表情、物件等。請用繁體中文回答。";
|
"你是一個專業的影片畫面分析助手。請根據提供的畫面以及用戶的問題,詳細描述畫面中的內容,包括場景、人物、動作、表情、物件等。請用繁體中文回答。";
|
||||||
let vision_result = call_llm_vision(system_prompt, question, vec![base64_img], 1024, 120)
|
let vision_result = call_llm_vision(system_prompt, question, vec![base64_img], 1024, 300)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| e.to_string())?;
|
.map_err(|e| e.to_string())?;
|
||||||
|
|
||||||
@@ -1219,7 +1219,9 @@ pub async fn exec_search_by_appearance(
|
|||||||
)?;
|
)?;
|
||||||
|
|
||||||
let output_dir = crate::core::config::OUTPUT_DIR.to_string();
|
let output_dir = crate::core::config::OUTPUT_DIR.to_string();
|
||||||
let scripts_dir = crate::core::path_utils::scripts_dir().to_string_lossy().to_string();
|
let scripts_dir = crate::core::path_utils::scripts_dir()
|
||||||
|
.to_string_lossy()
|
||||||
|
.to_string();
|
||||||
let script_path = format!("{}/clothing_color_search.py", scripts_dir);
|
let script_path = format!("{}/clothing_color_search.py", scripts_dir);
|
||||||
let appearance_path = format!("{}/{}.appearance.json", output_dir, file_uuid);
|
let appearance_path = format!("{}/{}.appearance.json", output_dir, file_uuid);
|
||||||
let output_path = format!("{}/{}.color_search_{}.json", output_dir, file_uuid, color);
|
let output_path = format!("{}/{}.color_search_{}.json", output_dir, file_uuid, color);
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ async fn process_single_trace(
|
|||||||
user_prompt,
|
user_prompt,
|
||||||
vec![base64_img],
|
vec![base64_img],
|
||||||
max_tokens,
|
max_tokens,
|
||||||
120,
|
300,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user