ac-tool/backend/core
Vadym Samoilenko fc430cc10a fix: add local document extraction fallback when LLAMACLOUD_API_KEY is absent
When LLAMACLOUD_API_KEY is empty the LlamaParse client constructed a Bearer
token with an empty secret, causing Python's HTTP stack to raise
"Illegal header value b'Bearer '" and fail every upload job.

Changes:
- _extract_document_content_local(): new method using PyMuPDF (PDF),
  python-pptx (PPTX), python-docx (DOCX), openpyxl (XLSX) — all already
  in requirements.txt
- _extract_document_content(): skip LlamaParser entirely if key is not set;
  on LlamaParser exception, fall back to local extraction instead of raising

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 15:08:23 +00:00
..
llm_service Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
__init__.py Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
config.py Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
consolidation_processor.py Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
process_brief_enhanced.py fix: add local document extraction fallback when LLAMACLOUD_API_KEY is absent 2026-03-23 15:08:23 +00:00