prompt-api-polyfill 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/backends/base.js +1 -1
  2. package/package.json +1 -1
package/backends/base.js CHANGED
@@ -24,7 +24,7 @@ export default class PolyfillBackend {
24
24
  * Creates a model session and stores it.
25
25
  * @param {Object} options - LanguageModel options.
26
26
  * @param {Object} sessionParams - Parameters for the cloud or local model.
27
- * @param {Object} monitorTarget - Object to report download progress to.
27
+ * @param {EventTarget} [monitorTarget] - The event target to dispatch download progress events to.
28
28
  * @returns {any} The created session object.
29
29
  */
30
30
  createSession(options, sessionParams, monitorTarget) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prompt-api-polyfill",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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": "./prompt-api-polyfill.js",