mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:49:54 +08:00
* fix(chat): isolate PDF attachment extraction Run PDF-bearing chat attachment extraction outside the API process and reuse the single PDF image pass for both page markers and embedded attachments. Addresses the chat attachment reproduction in #2865. * perf(pdf): skip decoding images after the count cap Keep lookups for previously accepted image references ahead of the quota check so repeated pictures are still mapped to each page. * perf(chat): reuse native PDF markdown for text-only parsing Match the stored attachment bytes and preserve the configured parser path for other engines and incomplete native results.