Skip to content

Commit

Permalink
web patch (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 authored May 24, 2024
1 parent e8311fa commit d849b3c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions binding/web/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion binding/web/src/picollm_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export class PicoLLMWorker {
command: 'init',
accessKey: accessKey,
modelPath: modelPath,
device: device,
options: {
device: device,
},
sdk: this._sdk,
wasmSimd: this._wasmSimd,
});
Expand Down
1 change: 1 addition & 0 deletions binding/web/test/picollm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ describe('PicoLLM basic tests', function () {
cy.loadModel().then(async chunks => {
await runInitTest(PicoLLMWorker, chunks, {
device: "nan",
expectFailure: true,
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/web/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions demo/web/chat/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions demo/web/completion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions demo/web/completion/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit d849b3c

Please sign in to comment.