Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ parxy_cli = [".env.example", "compose.example.yaml", "otel-collector-config.exam

[project.optional-dependencies]
llama = [
"llama-cloud-services>=0.6.60",
"llama-cloud-services>=0.6.77",
]
llmwhisperer = [
"llmwhisperer-client>=2.4.2",
Expand All @@ -46,7 +46,7 @@ landingai = [
]

all = [
"llama-cloud-services>=0.6.60",
"llama-cloud-services>=0.6.77",
"llmwhisperer-client>=2.4.2",
"unstructured[pdf]>=0.18.13",
"landingai-ade>=0.15.1",
Expand Down
8 changes: 5 additions & 3 deletions src/parxy_core/drivers/llamaparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ def _handle(
converted_document.parsing_metadata['job_metadata'] = (
res.job_metadata.model_dump_json()
)
converted_document.parsing_metadata['job_error'] = res.error
converted_document.parsing_metadata['job_error_code'] = res.error_code
converted_document.parsing_metadata['job_status'] = res.status
converted_document.parsing_metadata['job_error'] = getattr(res, 'error', None)
converted_document.parsing_metadata['job_error_code'] = getattr(
res, 'error_code', None
)
converted_document.parsing_metadata['job_status'] = getattr(res, 'status', None)

# Try to fetch actual usage metrics from beta API if organization_id is configured
usage_metrics = self._fetch_usage_metrics(res.job_id)
Expand Down
Loading