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> |
||
|---|---|---|
| .. | ||
| core | ||
| data | ||
| prompts | ||
| server | ||
| .gitignore | ||
| hypercorn.toml | ||
| requirements.txt | ||
| run_server.py | ||