diff --git a/binding/web/package.json b/binding/web/package.json index b618a2b..79baaa1 100644 --- a/binding/web/package.json +++ b/binding/web/package.json @@ -1,9 +1,9 @@ { "name": "@picovoice/picollm-web", - "description": "", + "description": "picoLLM Inference Engine is a highly accurate and cross-platform SDK optimized for running compressed large language models.", "author": "Picovoice Inc", "license": "Apache-2.0", - "version": "1.0.1", + "version": "1.0.2", "keywords": [ "web", "ai", diff --git a/binding/web/src/picollm_worker.ts b/binding/web/src/picollm_worker.ts index 77b1789..d36dc16 100644 --- a/binding/web/src/picollm_worker.ts +++ b/binding/web/src/picollm_worker.ts @@ -133,7 +133,9 @@ export class PicoLLMWorker { command: 'init', accessKey: accessKey, modelPath: modelPath, - device: device, + options: { + device: device, + }, sdk: this._sdk, wasmSimd: this._wasmSimd, }); diff --git a/binding/web/test/picollm.test.ts b/binding/web/test/picollm.test.ts index 18b6515..2cbee0c 100644 --- a/binding/web/test/picollm.test.ts +++ b/binding/web/test/picollm.test.ts @@ -243,6 +243,7 @@ describe('PicoLLM basic tests', function () { cy.loadModel().then(async chunks => { await runInitTest(PicoLLMWorker, chunks, { device: "nan", + expectFailure: true, }); }); }); diff --git a/demo/web/chat/package.json b/demo/web/chat/package.json index 14b2ff3..6e26f3e 100644 --- a/demo/web/chat/package.json +++ b/demo/web/chat/package.json @@ -16,7 +16,7 @@ "author": "Picovoice Inc", "license": "Apache-2.0", "dependencies": { - "@picovoice/picollm-web": "~1.0.1" + "@picovoice/picollm-web": "~1.0.2" }, "devDependencies": { "http-server": "^14.0.0" diff --git a/demo/web/chat/yarn.lock b/demo/web/chat/yarn.lock index b73809e..75f745b 100644 --- a/demo/web/chat/yarn.lock +++ b/demo/web/chat/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@picovoice/picollm-web@~1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.0.1.tgz#c096e4ba00b91bfacc5993c59a15b44364300f03" - integrity sha512-1aIYwKCk3lE1FmpkZcxakG2RiTecRrnpF38tgvD+/JnY2b2f+lV6f++yhBt4vJBj44gX+JQkWSnmsqGYZR8TFw== +"@picovoice/picollm-web@~1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.0.2.tgz#8315a50450493f68c2c5902fdd66bc499afab210" + integrity sha512-EfitXZUwqoHq19IyFvjTq0baDSDHAGrYt/QB/4P2mnpinDHD9f7c+t0S9pXIJ2kt15QQd3to0A9CDKrfVtmK8A== dependencies: "@picovoice/web-utils" "~1.4.1" diff --git a/demo/web/completion/package.json b/demo/web/completion/package.json index 3b77a96..28f41ce 100644 --- a/demo/web/completion/package.json +++ b/demo/web/completion/package.json @@ -5,7 +5,7 @@ "main": "index.js", "private": true, "scripts": { - "start": "yarn run http-server -a 0.0.0.0 -p 5000" + "start": "yarn run http-server -a localhost -p 5000" }, "keywords": [ "Picovoice", @@ -16,7 +16,7 @@ "author": "Picovoice Inc", "license": "Apache-2.0", "dependencies": { - "@picovoice/picollm-web": "~1.0.1" + "@picovoice/picollm-web": "~1.0.2" }, "devDependencies": { "http-server": "^14.0.0" diff --git a/demo/web/completion/yarn.lock b/demo/web/completion/yarn.lock index b73809e..75f745b 100644 --- a/demo/web/completion/yarn.lock +++ b/demo/web/completion/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@picovoice/picollm-web@~1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.0.1.tgz#c096e4ba00b91bfacc5993c59a15b44364300f03" - integrity sha512-1aIYwKCk3lE1FmpkZcxakG2RiTecRrnpF38tgvD+/JnY2b2f+lV6f++yhBt4vJBj44gX+JQkWSnmsqGYZR8TFw== +"@picovoice/picollm-web@~1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.0.2.tgz#8315a50450493f68c2c5902fdd66bc499afab210" + integrity sha512-EfitXZUwqoHq19IyFvjTq0baDSDHAGrYt/QB/4P2mnpinDHD9f7c+t0S9pXIJ2kt15QQd3to0A9CDKrfVtmK8A== dependencies: "@picovoice/web-utils" "~1.4.1"