From 323fd342f178edf8ea90f8898c4f0ff5d7e2c3ea Mon Sep 17 00:00:00 2001 From: Accusys Date: Wed, 30 Sep 2026 21:42:35 +0800 Subject: [PATCH] fix: ASRX and FS VLM Summary configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. FS VLM Summary: max_tokens 300 -> 900 - Gemma4 思考模式需要更多 tokens 才能完成 - 修復 VLM 調用失敗問題 2. ASRX: 禁用 Swift,啟用 Python - Swift ASRX 10 秒超時導致所有 segments=0 - Python ASRX 使用 Whisper,更穩定 - 優先級從 2 提升到 0 問題診斷: - ASRX: 所有 10 個文件 segments=0 - 原因: RunLoop.current.run(until: Date(timeIntervalSinceNow: 10)) - VLM: max_tokens 太小導致 Gemma4 思考截斷 參考: AGENTS.md - Gemma4 思考模式特性 --- config/processor_tools_v3.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/processor_tools_v3.json b/config/processor_tools_v3.json index b793401f..6b30b3eb 100644 --- a/config/processor_tools_v3.json +++ b/config/processor_tools_v3.json @@ -202,7 +202,7 @@ "tool": "swift", "model": null, "priority": 0, - "enabled": true, + "enabled": false, "command": { "executable": "scripts/swift_processors/.build/release/asrx_swift", "args": [ @@ -220,7 +220,7 @@ { "tool": "python", "model": null, - "priority": 2, + "priority": 0, "enabled": true, "command": { "executable": "/opt/homebrew/bin/python3.11", @@ -361,7 +361,7 @@ }, "parameters": { "llm_url": "http://localhost:8080/v1/chat/completions", - "max_tokens": 300 + "max_tokens": 900 }, "output_file": "{file_uuid}.scene_vlm.json", "timeout": 1800 @@ -387,7 +387,7 @@ }, "parameters": { "llm_url": "http://localhost:8080/v1/chat/completions", - "max_tokens": 300 + "max_tokens": 900 }, "output_file": "{file_uuid}.scene_vlm.json", "timeout": 1800