Skip to content

Commit 658aa54

Browse files
authored
Update tool models to fix main (#7725)
# Description of Changes When #6697 merged, the CI didn't run for some reason so it was never caught that the tool models were out of date. This PR updates them to the correct state.
1 parent 0a3f0c1 commit 658aa54

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

engine/src/stirling/models/tool_models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,9 @@ class OcrPdfParams(ApiModel):
725725
)
726726
ocr_type: OcrType = Field(..., description="Specify the OCR type, e.g., 'skip-text', 'force-ocr', or 'Normal'")
727727
remove_images_after: bool | None = Field(None, description="Remove images from the output PDF if set to true")
728+
rotate_pages: bool | None = Field(
729+
None, description="Auto-correct page orientation (90/180/270) using Tesseract OSD if set to true"
730+
)
728731
sidecar: bool | None = Field(None, description="Include OCR text in a sidecar text file if set to true")
729732

730733

frontend/editor/src/core/types/toolApiTypes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,10 @@ export interface ProcessPdfWithOcrRequest {
10221022
* Remove images from the output PDF if set to true
10231023
*/
10241024
removeImagesAfter?: boolean;
1025+
/**
1026+
* Auto-correct page orientation (90/180/270) using Tesseract OSD if set to true
1027+
*/
1028+
rotatePages?: boolean;
10251029
/**
10261030
* Include OCR text in a sidecar text file if set to true
10271031
*/

0 commit comments

Comments
 (0)