mirror of
https://github.com/HKUDS/RAG-Anything.git
synced 2026-07-03 12:27:58 +08:00
- attach_public_media_urls now logs a single warning when only one of RAGANYTHING_PUBLIC_ASSET_BASE_URL / RAGANYTHING_PUBLIC_ASSET_STRIP_PREFIX is set, instead of silently no-oping. State resets when the env returns to either fully unset or fully set, so legitimate transitions still work. - Strip prefix resolution is hoisted into _resolve_strip_prefix and skipped entirely when the path cannot be resolved. - README and the failure-modes doc now flag that *_public_url is produced only on the MinerU parser path today; other parsers are not yet covered. - tests: added warn-once cases for each misconfiguration shape and a silent case when both env vars are absent. Reformatted the file so pre-commit's ruff-format hook passes (this was the previously failing CI step on this PR).