fix: improve page quality vlm detection

This commit is contained in:
wren
2026-05-22 14:41:42 +08:00
parent 842b362150
commit 9434f2b22b
3 changed files with 159 additions and 7 deletions
@@ -239,7 +239,7 @@ class ResilientQwenVLMClient(QwenVLMClient):
body = response.json()
text = (body.get("choices") or [{}])[0].get("message", {}).get("content", "")
parsed = _parse_json_loose(text)
return parsed if isinstance(parsed, dict) else {}
return parsed if isinstance(parsed, dict) else {"result": text, "reason": text}
class ResilientChandraOCRClient(ChandraOCRClient):