fix: embedding 改 cuda + OCR 超时 300s + 重试退避 20s 起 + jitter 防雷群

- config/default.yaml: embed.device cpu → cuda
- adapters/ocr.py: _TIMEOUT_S 15 → 300(5 分钟)
- adapters/llm.py: 指数退避加 ±50% jitter 避免 24 路同时重试
- .env: LLM_RETRY_BASE_DELAY 2→20s, LLM_RETRY_MAX_DELAY 30→120s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-09 22:14:57 -04:00
parent 38a855b33e
commit 1f83da9eb7
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ from pathlib import Path # noqa: TC003 — 运行时需要(方法签名 + ope
import requests
from loguru import logger
_TIMEOUT_S = 15
_TIMEOUT_S = 300
class MonkeyOCRClient: