feat(bot): screenshot OCR pipeline + ack delay 120s

D fix: screenshots were silently dropped (empty body + OOB url).
- register xep_0066, capture msg['oob']['url'] when body empty
- also handle body-as-URL messages (some clients put URL in body)
- download from upload.yoin.fun, OCR via SenseNova (sensenova-6.7-flash-lite)
- inject OCR text as context into LLM call
- config at /home/hmo/.config/mofin/ocr_config.json (outside repo)
- replaces dead node122 GLM-OCR path (host unreachable)

A+B fix: ACK_DELAY 15s -> 120s. 15s fired on every normal LLM
cold-start (20-100s), now only signals genuine hangs.
This commit is contained in:
hmo
2026-07-19 23:23:46 +08:00
parent e0f47f9349
commit bb1529909b
5 changed files with 170 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"key": "sk-aRNj3UwKSLPsDfh15QNTPwbHxahblfaO",
"base_url": "https://token.sensenova.cn/v1",
"model": "sensenova-6.7-flash-lite"
}