Skip to content
Open
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
2 changes: 2 additions & 0 deletions datalab_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ async def convert(
images=result_data.get("images"),
metadata=result_data.get("metadata"),
error=result_data.get("error"),
error_in=result_data.get("error_in"),
page_count=result_data.get("page_count"),
total_pages=result_data.get("total_pages"),
status=result_data.get("status", "complete"),
)

Expand Down
4 changes: 3 additions & 1 deletion datalab_sdk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ class ConversionResult:
images: Optional[Dict[str, str]] = None
metadata: Optional[Dict[str, Any]] = None
error: Optional[str] = None
page_count: Optional[int] = None
error_in: Optional[str] = None # Where the error occurred (e.g., "VALIDATION")
page_count: Optional[int] = None # Number of pages processed
total_pages: Optional[int] = None # Total number of pages in the document
status: str = "complete"

def save_output(
Expand Down