Skip to content

Commit 3935a16

Browse files
feat(api): api update
1 parent 6f0f3fb commit 3935a16

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 38
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-e6a3365124af52952a85c8af5a09d6fdc02a686db7949985d0a6313dfad8dee5.yml
3-
openapi_spec_hash: d7d0e17252f6f5665fb1698e37e09fe2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b73de7a5f87b3bed7d9e4259bd109cd62f4eb5f61fa082f31fc22d5bf8e69bcc.yml
3+
openapi_spec_hash: 5dcb5ba9b8487329adc2f89eeb4df7c4
44
config_hash: bff282047fafdad771fb7ec685f56944

‎src/context/dev/resources/parse.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def handle(
168168
ocr: When true for PDF inputs, detect and OCR images embedded in the selected pages,
169169
inserting recognized text at each image's position in page reading order while
170170
preserving the PDF text layer. pdf.start/pdf.end limit the inclusive page range.
171-
When false, all OCR is disabled, including the automatic scanned-PDF fallback.
171+
When false, no OCR runs.
172172
173173
pdf: PDF page-range options as a JSON object, e.g. {"start": 2, "end": 5}.
174174
@@ -352,7 +352,7 @@ async def handle(
352352
ocr: When true for PDF inputs, detect and OCR images embedded in the selected pages,
353353
inserting recognized text at each image's position in page reading order while
354354
preserving the PDF text layer. pdf.start/pdf.end limit the inclusive page range.
355-
When false, all OCR is disabled, including the automatic scanned-PDF fallback.
355+
When false, no OCR runs.
356356
357357
pdf: PDF page-range options as a JSON object, e.g. {"start": 2, "end": 5}.
358358

‎src/context/dev/types/parse_handle_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class ParseHandleParams(TypedDict, total=False):
103103
When true for PDF inputs, detect and OCR images embedded in the selected pages,
104104
inserting recognized text at each image's position in page reading order while
105105
preserving the PDF text layer. pdf.start/pdf.end limit the inclusive page range.
106-
When false, all OCR is disabled, including the automatic scanned-PDF fallback.
106+
When false, no OCR runs.
107107
"""
108108

109109
pdf: Pdf

‎src/context/dev/types/web_web_scrape_html_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class Pdf(TypedDict, total=False):
350350
"""
351351
When true, detect and OCR images embedded in the selected PDF pages, inserting
352352
recognized text at each image's position in page reading order while preserving
353-
the PDF text layer. This is separate from automatic scanned-PDF OCR fallback.
353+
the PDF text layer. When false, no OCR runs.
354354
"""
355355

356356
should_parse: Annotated[Union[bool, Literal["true", "false"]], PropertyInfo(alias="shouldParse")]

‎src/context/dev/types/web_web_scrape_md_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class Pdf(TypedDict, total=False):
362362
"""
363363
When true, detect and OCR images embedded in the selected PDF pages, inserting
364364
recognized text at each image's position in page reading order while preserving
365-
the PDF text layer. This is separate from automatic scanned-PDF OCR fallback.
365+
the PDF text layer. When false, no OCR runs.
366366
"""
367367

368368
should_parse: Annotated[Union[bool, Literal["true", "false"]], PropertyInfo(alias="shouldParse")]

0 commit comments

Comments
 (0)