@blank-utils/llm 0.4.9 → 0.4.10
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.
|
@@ -939,7 +939,10 @@ function ChatInput({
|
|
|
939
939
|
const arrayBuffer = e.target?.result;
|
|
940
940
|
if (!arrayBuffer) return;
|
|
941
941
|
const pdfjsLib = await import("pdfjs-dist");
|
|
942
|
-
pdfjsLib.GlobalWorkerOptions.workerSrc =
|
|
942
|
+
pdfjsLib.GlobalWorkerOptions.workerSrc = new URL(
|
|
943
|
+
"pdfjs-dist/build/pdf.worker.min.mjs",
|
|
944
|
+
import.meta.url
|
|
945
|
+
).toString();
|
|
943
946
|
const pdf = await pdfjsLib.getDocument(arrayBuffer).promise;
|
|
944
947
|
let fullText = "";
|
|
945
948
|
const maxPages = Math.min(pdf.numPages, 10);
|
package/dist/index.js
CHANGED
package/dist/react/index.js
CHANGED
package/package.json
CHANGED