prompt-api-polyfill 1.15.0 → 1.16.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/defaults-
|
|
1
|
+
import { n as e, t } from "../chunks/defaults-B5W7MP9T.js";
|
|
2
2
|
import { initializeApp as n } from "firebase/app";
|
|
3
3
|
import { GoogleAIBackend as r, InferenceMode as i, Schema as a, VertexAIBackend as o, getAI as s, getGenerativeModel as c } from "firebase/ai";
|
|
4
4
|
//#region node_modules/@firebase/util/dist/postinstall.mjs
|
|
@@ -558,7 +558,7 @@ var qe = class {
|
|
|
558
558
|
function Je(e) {
|
|
559
559
|
return e.getComponent()?.type === "VERSION";
|
|
560
560
|
}
|
|
561
|
-
var O = "@firebase/app", Ye = "0.14.
|
|
561
|
+
var O = "@firebase/app", Ye = "0.14.11", k = new Ae("@firebase/app"), Xe = "@firebase/app-compat", Ze = "@firebase/analytics-compat", Qe = "@firebase/analytics", $e = "@firebase/app-check-compat", et = "@firebase/app-check", tt = "@firebase/auth", nt = "@firebase/auth-compat", rt = "@firebase/database", it = "@firebase/data-connect", at = "@firebase/database-compat", ot = "@firebase/functions", st = "@firebase/functions-compat", ct = "@firebase/installations", lt = "@firebase/installations-compat", ut = "@firebase/messaging", dt = "@firebase/messaging-compat", ft = "@firebase/performance", pt = "@firebase/performance-compat", mt = "@firebase/remote-config", ht = "@firebase/remote-config-compat", gt = "@firebase/storage", _t = "@firebase/storage-compat", vt = "@firebase/firestore", yt = "@firebase/ai", bt = "@firebase/firestore-compat", xt = "firebase", St = "[DEFAULT]", Ct = {
|
|
562
562
|
[O]: "fire-core",
|
|
563
563
|
[Xe]: "fire-core-compat",
|
|
564
564
|
[Qe]: "fire-analytics",
|
package/dist/backends/gemini.js
CHANGED
package/dist/backends/openai.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/defaults-
|
|
1
|
+
import { n as e, t } from "../chunks/defaults-B5W7MP9T.js";
|
|
2
2
|
import { TextStreamer as n, env as r, pipeline as i } from "@huggingface/transformers";
|
|
3
3
|
//#region backends/transformers.js
|
|
4
4
|
var a = class extends e {
|
|
@@ -26,7 +26,7 @@ var e = class {
|
|
|
26
26
|
gemini: { modelName: "gemini-2.5-flash-lite" },
|
|
27
27
|
openai: { modelName: "gpt-4o" },
|
|
28
28
|
transformers: {
|
|
29
|
-
modelName: "onnx-community/gemma-
|
|
29
|
+
modelName: "onnx-community/gemma-3-1b-it-ONNX-GQA",
|
|
30
30
|
device: "webgpu",
|
|
31
31
|
dtype: "q4f16"
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prompt-api-polyfill",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Polyfill for the Prompt API (`LanguageModel`) backed by Firebase AI Logic, Gemini API, OpenAI API, or Transformers.js.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/prompt-api-polyfill.js",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"@eslint/js": "^10.0.1",
|
|
50
50
|
"eslint": "^10.2.0",
|
|
51
51
|
"eslint-config-prettier": "^10.1.8",
|
|
52
|
-
"globals": "^17.
|
|
52
|
+
"globals": "^17.5.0",
|
|
53
53
|
"node-addon-api": "^8.7.0",
|
|
54
54
|
"node-gyp": "^12.2.0",
|
|
55
|
-
"prettier": "^3.8.
|
|
55
|
+
"prettier": "^3.8.2",
|
|
56
56
|
"prettier-plugin-curly": "^0.4.1",
|
|
57
|
-
"vite": "^8.0.
|
|
57
|
+
"vite": "^8.0.8"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@google/genai": "^1.
|
|
60
|
+
"@google/genai": "^1.50.0",
|
|
61
61
|
"@huggingface/transformers": "^4.0.1",
|
|
62
|
-
"firebase": "^12.
|
|
63
|
-
"openai": "^6.
|
|
62
|
+
"firebase": "^12.12.0",
|
|
63
|
+
"openai": "^6.34.0"
|
|
64
64
|
}
|
|
65
65
|
}
|