@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 = `https://unpkg.com/pdfjs-dist@${pdfjsLib.version}/build/pdf.worker.min.mjs`;
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
@@ -26,7 +26,7 @@ import {
26
26
  useCompletion,
27
27
  useLLM,
28
28
  useStream
29
- } from "./chunk-ZCKQLTCD.js";
29
+ } from "./chunk-JD2HWBEJ.js";
30
30
  export {
31
31
  Chat,
32
32
  ChatInput,
@@ -9,7 +9,7 @@ import {
9
9
  useCompletion,
10
10
  useLLM,
11
11
  useStream
12
- } from "../chunk-ZCKQLTCD.js";
12
+ } from "../chunk-JD2HWBEJ.js";
13
13
  export {
14
14
  Chat,
15
15
  ChatApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blank-utils/llm",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Run LLMs directly in your browser with WebGPU acceleration. Supports React hooks and eager background loading.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",