fix: improve page quality vlm detection
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user