Add Go service/handler tests for API contract parity (#16905)

This commit is contained in:
euvre
2026-07-20 20:02:41 +08:00
committed by GitHub
parent 2f7c2eb53c
commit f45f03a016
46 changed files with 1553 additions and 214 deletions

View File

@@ -212,7 +212,7 @@ class RAGFlowPdfParser:
logging.warning("Could not load OCR alphabet from %s: %s; treating all text as representable.", res, e)
cls._OCR_ALPHABET = set()
if not cls._OCR_ALPHABET:
return True # unknown alphabet: preserve existing behaviour
return True # unknown alphabet: preserve existing behaviour
letters = [c for c in text if c.strip()]
if not letters:
return True