You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,7 @@ async function run() {
177
177
partitionParameters: {
178
178
files: awaitopenAsBlob("./sample-file"),
179
179
chunkingStrategy: ChunkingStrategy.ByTitle,
180
+
splitPdfPageRange: [1, 10],
180
181
strategy: Strategy.HiRes,
181
182
},
182
183
},
@@ -229,6 +230,7 @@ async function run() {
229
230
partitionParameters: {
230
231
files: awaitopenAsBlob("./sample-file"),
231
232
chunkingStrategy: ChunkingStrategy.ByTitle,
233
+
splitPdfPageRange: [1, 10],
232
234
strategy: Strategy.HiRes,
233
235
},
234
236
});
@@ -301,6 +303,7 @@ async function run() {
301
303
partitionParameters: {
302
304
files: awaitopenAsBlob("./sample-file"),
303
305
chunkingStrategy: ChunkingStrategy.ByTitle,
306
+
splitPdfPageRange: [1, 10],
304
307
strategy: Strategy.HiRes,
305
308
},
306
309
});
@@ -320,6 +323,21 @@ run();
320
323
<!-- No Error Handling -->
321
324
<!-- No Server Selection -->
322
325
326
+
<!-- Start Debugging [debug] -->
327
+
## Debugging
328
+
329
+
To log HTTP requests and responses, you can pass a logger that matches `console`'s interface as an SDK option.
330
+
331
+
> [!WARNING]
332
+
> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
0 commit comments