Skip to content

Commit 53b33ce

Browse files
committed
ack comments
1 parent e66868e commit 53b33ce

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

apps/docs/content/docs/en/tools/reducto.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Parse PDF documents using Reducto OCR API
4545
| --------- | ---- | -------- | ----------- |
4646
| `filePath` | string | Yes | URL to a PDF document to be processed |
4747
| `fileUpload` | object | No | File upload data from file-upload component |
48-
| `pages` | array | No | Specific pages to process \(array of page numbers, starting from 0\) |
48+
| `pages` | array | No | Specific pages to process \(1-indexed page numbers\) |
4949
| `tableOutputFormat` | string | No | Table output format \(html or markdown\). Defaults to markdown. |
5050
| `apiKey` | string | Yes | Reducto API key \(REDUCTO_API_KEY\) |
5151

apps/sim/app/api/tools/reducto/parse/route.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ export async function POST(request: NextRequest) {
101101

102102
if (validatedData.pages && validatedData.pages.length > 0) {
103103
reductoBody.settings = {
104-
page_range: {
105-
start: Math.min(...validatedData.pages),
106-
end: Math.max(...validatedData.pages),
107-
},
104+
page_range: validatedData.pages,
108105
}
109106
}
110107

apps/sim/blocks/blocks/reducto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const ReductoBlock: BlockConfig<ReductoParserOutput> = {
4747
id: 'pages',
4848
title: 'Specific Pages',
4949
type: 'short-input',
50-
placeholder: 'e.g. 0,1,2 (leave empty for all pages)',
50+
placeholder: 'e.g. 1,2,3 (1-indexed, leave empty for all)',
5151
},
5252
{
5353
id: 'tableOutputFormat',

apps/sim/tools/reducto/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const reductoParserTool: ToolConfig<ReductoParserInput, ReductoParserOutp
2828
type: 'array',
2929
required: false,
3030
visibility: 'user-only',
31-
description: 'Specific pages to process (array of page numbers, starting from 0)',
31+
description: 'Specific pages to process (1-indexed page numbers)',
3232
},
3333
tableOutputFormat: {
3434
type: 'string',

apps/sim/tools/reducto/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface ReductoParserInput {
1616
/** Reducto API key for authentication */
1717
apiKey: string
1818

19-
/** Specific pages to process (zero-indexed) */
19+
/** Specific pages to process (1-indexed) */
2020
pages?: number[]
2121

2222
/** Table output format (html or md) */

0 commit comments

Comments
 (0)