ac-tool/backend
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
..
core fix: add local document extraction fallback when LLAMACLOUD_API_KEY is absent 2026-03-23 15:08:23 +00:00
data Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
prompts Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
server fix: repair brief upload and real-time job progress 2026-03-23 15:05:23 +00:00
.gitignore Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
hypercorn.toml Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
requirements.txt Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00
run_server.py Initial commit — AC Tool unified application 2026-03-23 13:24:46 +00:00