@heripo/pdf-parser 0.1.39 → 0.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -64,7 +64,7 @@ var IMAGE_PDF_CONVERTER = {
64
64
  QUALITY: 100
65
65
  };
66
66
 
67
- // ../shared/dist/index.mjs
67
+ // ../shared/dist/index.js
68
68
  import { spawn } from "child_process";
69
69
  import {
70
70
  NoObjectGeneratedError,
@@ -309,7 +309,7 @@ var LLMCaller = class {
309
309
  return this.executeWithFallback(
310
310
  config,
311
311
  (model) => this.generateStructuredOutput(model, config.schema, {
312
- system: config.systemPrompt,
312
+ instructions: config.systemPrompt,
313
313
  prompt: config.userPrompt,
314
314
  temperature: config.temperature,
315
315
  maxRetries: config.maxRetries,
@@ -1328,8 +1328,8 @@ var PdfLanguageDetector = class {
1328
1328
  text: KOREAN_DOCUMENT_DETECTION_PROMPT
1329
1329
  },
1330
1330
  {
1331
- type: "image",
1332
- image: imageData,
1331
+ type: "file",
1332
+ data: imageData,
1333
1333
  mediaType: "image/png"
1334
1334
  }
1335
1335
  ]
@@ -3309,8 +3309,8 @@ var ReviewAssistancePageGate = class {
3309
3309
  text: this.buildPrompt(context, options.outputLanguage)
3310
3310
  },
3311
3311
  {
3312
- type: "image",
3313
- image,
3312
+ type: "file",
3313
+ data: image,
3314
3314
  mediaType: "image/png"
3315
3315
  }
3316
3316
  ]
@@ -3582,8 +3582,8 @@ var PostDoclingPageProcessor = class {
3582
3582
  text: fullPrompt
3583
3583
  },
3584
3584
  {
3585
- type: "image",
3586
- image,
3585
+ type: "file",
3586
+ data: image,
3587
3587
  mediaType: "image/png"
3588
3588
  }
3589
3589
  ]
@@ -9207,8 +9207,8 @@ var ReviewAssistanceRunner = class {
9207
9207
  content: [
9208
9208
  { type: "text", text: prompt },
9209
9209
  {
9210
- type: "image",
9211
- image,
9210
+ type: "file",
9211
+ data: image,
9212
9212
  mediaType: "image/png"
9213
9213
  }
9214
9214
  ]
@@ -10033,8 +10033,8 @@ var ReviewAssistanceRunner = class {
10033
10033
  content: [
10034
10034
  { type: "text", text: prompt },
10035
10035
  {
10036
- type: "image",
10037
- image,
10036
+ type: "file",
10037
+ data: image,
10038
10038
  mediaType: "image/png"
10039
10039
  }
10040
10040
  ]