From ae8b09329aedbbc47019a302de1db4e348895d3c Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Fri, 20 Dec 2024 14:36:13 -0800 Subject: [PATCH 1/7] added chat template for llama-3.2 --- .../java/ai/picovoice/picollm/PicoLLM.java | 2 + .../picollm/dialog/Llama32ChatDialog.java | 43 +++++++++++++++++++ .../picollm/testapp/PicoLLMTest.java | 5 +++ binding/ios/PicoLLM.swift | 2 + .../PicoLLMAppTestUITests.swift | 1 + binding/ios/PicoLLMDialog.swift | 5 +++ binding/nodejs/src/dialog.ts | 9 ++++ binding/nodejs/src/index.ts | 2 + binding/nodejs/test/index.test.ts | 3 ++ binding/python/_picollm.py | 12 ++++++ binding/python/test_picollm.py | 2 + binding/web/src/dialog.ts | 9 ++++ binding/web/src/index.ts | 2 + binding/web/test/picollm.test.ts | 2 + resources/.test/test_data.json | 4 ++ 15 files changed, 103 insertions(+) create mode 100644 binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/dialog/Llama32ChatDialog.java diff --git a/binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/PicoLLM.java b/binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/PicoLLM.java index dc9b127..b7594bf 100644 --- a/binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/PicoLLM.java +++ b/binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/PicoLLM.java @@ -38,6 +38,8 @@ public class PicoLLM { DIALOGS.put("llama-2-70b-chat", Llama2ChatDialog.class); DIALOGS.put("llama-3-8b-instruct", Llama3ChatDialog.class); DIALOGS.put("llama-3-70b-instruct", Llama3ChatDialog.class); + DIALOGS.put("llama-3.2-1b-instruct", Llama32ChatDialog.class); + DIALOGS.put("llama-3.2-3b-instruct", Llama32ChatDialog.class); DIALOGS.put("mistral-7b-instruct-v0.1", MistralChatDialog.class); DIALOGS.put("mistral-7b-instruct-v0.2", MistralChatDialog.class); DIALOGS.put("mixtral-8x7b-instruct-v0.1", MixtralChatDialog.class); diff --git a/binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/dialog/Llama32ChatDialog.java b/binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/dialog/Llama32ChatDialog.java new file mode 100644 index 0000000..d61aa4b --- /dev/null +++ b/binding/android/PicoLLM/picollm/src/main/java/ai/picovoice/picollm/dialog/Llama32ChatDialog.java @@ -0,0 +1,43 @@ +/* + Copyright 2024 Picovoice Inc. + + You may not use this file except in compliance with the license. A copy of the license is + located in the "LICENSE" file accompanying this source. + + Unless required by applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + express or implied. See the License for the specific language governing permissions and + limitations under the License. +*/ + +package ai.picovoice.picollm; + +/** + * Represents a dialog helper specific for the `phi3.5` model. + */ +public class Llama32ChatDialog extends Llama3ChatDialog { + + /** + * Builder class for constructing Llama32ChatDialog instances. + */ + public static class Builder extends PicoLLMDialog.Builder { + /** + * Builds a new instance of Llama32ChatDialog based on the configured settings. + * + * @return A new instance of Llama32ChatDialog. + */ + public Llama32ChatDialog build() { + return new Llama32ChatDialog(this.history, this.system); + } + } + + /** + * Constructs a Llama32ChatDialog instance with the specified history and system settings. + * + * @param history The history length for the dialog. + * @param system The system instruction for configuring the model's responses. + */ + Llama32ChatDialog(Integer history, String system) { + super(history, system); + } +} diff --git a/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java b/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java index e12defc..3e28dec 100644 --- a/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java +++ b/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java @@ -46,6 +46,7 @@ import ai.picovoice.picollm.GemmaChatDialog; import ai.picovoice.picollm.Llama2ChatDialog; import ai.picovoice.picollm.Llama3ChatDialog; +import ai.picovoice.picollm.Llama32ChatDialog; import ai.picovoice.picollm.MistralChatDialog; import ai.picovoice.picollm.Phi2ChatDialog; import ai.picovoice.picollm.Phi2QADialog; @@ -672,6 +673,8 @@ public PicoLLMDialog.Builder getDialogBuilder(String dialogName) { return new Llama2ChatDialog.Builder(); case "llama-3-chat-dialog": return new Llama3ChatDialog.Builder(); + case "llama-3.2-chat-dialog": + return new Llama32ChatDialog.Builder(); case "mistral-chat-dialog": return new MistralChatDialog.Builder(); case "phi2-chat-dialog": @@ -682,6 +685,8 @@ public PicoLLMDialog.Builder getDialogBuilder(String dialogName) { return new Phi3ChatDialog.Builder(); case "phi3.5-chat-dialog": return new Phi35ChatDialog.Builder(); + case "llama-3.2-chat-dialog": + return new Llama32ChatDialog.Builder(); default: return null; } diff --git a/binding/ios/PicoLLM.swift b/binding/ios/PicoLLM.swift index b083bab..214626c 100644 --- a/binding/ios/PicoLLM.swift +++ b/binding/ios/PicoLLM.swift @@ -511,6 +511,8 @@ public class PicoLLM { "llama-2-70b-chat": Llama2ChatDialog.self, "llama-3-8b-chat": Llama3ChatDialog.self, "llama-3-70b-chat": Llama3ChatDialog.self, + "llama-3.2-1b-chat": Llama32ChatDialog.self, + "llama-3.2-3b-chat": Llama32ChatDialog.self, "mistral-7b-instruct-v0.1": MistralChatDialog.self, "mistral-7b-instruct-v0.2": MistralChatDialog.self, "mixtral-8x7b-instruct-v0.1": MixtralChatDialog.self, diff --git a/binding/ios/PicoLLMAppTest/PicoLLMAppTestUITests/PicoLLMAppTestUITests.swift b/binding/ios/PicoLLMAppTest/PicoLLMAppTestUITests/PicoLLMAppTestUITests.swift index 2a9c160..2864b3d 100644 --- a/binding/ios/PicoLLMAppTest/PicoLLMAppTestUITests/PicoLLMAppTestUITests.swift +++ b/binding/ios/PicoLLMAppTest/PicoLLMAppTestUITests/PicoLLMAppTestUITests.swift @@ -420,6 +420,7 @@ class PicoLLMAppTestUITests: BaseTest { "gemma-chat-dialog": GemmaChatDialog.self, "llama-2-chat-dialog": Llama2ChatDialog.self, "llama-3-chat-dialog": Llama3ChatDialog.self, + "llama-3.2-chat-dialog": Llama32ChatDialog.self, "mistral-chat-dialog": MistralChatDialog.self, "phi2-chat-dialog": Phi2ChatDialog.self, "phi2-qa-dialog": Phi2QADialog.self, diff --git a/binding/ios/PicoLLMDialog.swift b/binding/ios/PicoLLMDialog.swift index c554ad7..0791f4e 100644 --- a/binding/ios/PicoLLMDialog.swift +++ b/binding/ios/PicoLLMDialog.swift @@ -323,6 +323,11 @@ public class Llama3ChatDialog: BasePicoLLMDialog { } } +/// Dialog helper for `llama-3.2-1b-instruct` and `llama-3.2-3b-instruct`. +public class Llama32ChatDialog: Llama3ChatDialog { + +} + /// Dialog helper for `gemma-2b-it` and `gemma-7b-it`. public class GemmaChatDialog: BasePicoLLMDialog { public override func prompt() throws -> String { diff --git a/binding/nodejs/src/dialog.ts b/binding/nodejs/src/dialog.ts index 5bbc5c1..f6a99ca 100644 --- a/binding/nodejs/src/dialog.ts +++ b/binding/nodejs/src/dialog.ts @@ -150,6 +150,13 @@ export class Llama3ChatDialog extends Dialog { } } +/** + * Dialog helper for `llama-3.2-1b-instruct` and `llama-3.2-3b-instruct`. + */ +export class Llama32ChatDialog extends Llama3ChatDialog { + +} + /** * Dialog helper for `mistral-7b-instruct-v0.1` and `mistral-7b-instruct-v0.2`. */ @@ -273,6 +280,8 @@ export const DIALOGS: { [key: string]: typeof Dialog | { [key: string]: typeof D 'llama-2-70b-chat': Llama2ChatDialog, 'llama-3-8b-instruct': Llama3ChatDialog, 'llama-3-70b-instruct': Llama3ChatDialog, + 'llama-3.2-1b-instruct': Llama32ChatDialog, + 'llama-3.2-3b-instruct': Llama32ChatDialog, 'mistral-7b-instruct-v0.1': MistralChatDialog, 'mistral-7b-instruct-v0.2': MistralChatDialog, 'mixtral-8x7b-instruct-v0.1': MixtralChatDialog, diff --git a/binding/nodejs/src/index.ts b/binding/nodejs/src/index.ts index c84f9e1..6b38202 100644 --- a/binding/nodejs/src/index.ts +++ b/binding/nodejs/src/index.ts @@ -32,6 +32,7 @@ import { GemmaChatDialog, Llama2ChatDialog, Llama3ChatDialog, + Llama32ChatDialog, MistralChatDialog, MixtralChatDialog, Phi2Dialog, @@ -58,6 +59,7 @@ export { GemmaChatDialog, Llama2ChatDialog, Llama3ChatDialog, + Llama32ChatDialog, MistralChatDialog, MixtralChatDialog, Phi2Dialog, diff --git a/binding/nodejs/test/index.test.ts b/binding/nodejs/test/index.test.ts index ecfdae0..abf24a4 100644 --- a/binding/nodejs/test/index.test.ts +++ b/binding/nodejs/test/index.test.ts @@ -17,6 +17,7 @@ import { GemmaChatDialog, Llama2ChatDialog, Llama3ChatDialog, + Llama32ChatDialog, MistralChatDialog, Phi2ChatDialog, Phi2QADialog, @@ -46,6 +47,7 @@ const DIALOG_CLASSES: { [key: string]: typeof Dialog } = { 'gemma-chat-dialog': GemmaChatDialog, "llama-2-chat-dialog": Llama2ChatDialog, "llama-3-chat-dialog": Llama3ChatDialog, + "llama-3.2-chat-dialog": Llama32ChatDialog, "mistral-chat-dialog": MistralChatDialog, 'phi2-chat-dialog': Phi2ChatDialog, 'phi2-qa-dialog': Phi2QADialog, @@ -65,6 +67,7 @@ type DialogExpectations = { 'gemma-chat-dialog': string, "llama-2-chat-dialog": string, "llama-3-chat-dialog": string, + "llama-3.2-chat-dialog": string, "mistral-chat-dialog": string, 'phi2-chat-dialog': string, 'phi2-qa-dialog': string, diff --git a/binding/python/_picollm.py b/binding/python/_picollm.py index 3055b4d..b273081 100644 --- a/binding/python/_picollm.py +++ b/binding/python/_picollm.py @@ -176,6 +176,15 @@ def prompt(self) -> str: return ''.join(res) +class Llama32ChatDialog(Llama3ChatDialog): + """ + Dialog helper for `llama-3.2-1b-instruct` and `llama-3.2-3b-instruct`. + """ + + def __init__(self, history: Optional[int] = None, system: Optional[str] = None) -> None: + super().__init__(history=history, system=system) + + class MistralChatDialog(Dialog): """ Dialog helper for `mistral-7b-instruct-v0.1` and `mistral-7b-instruct-v0.2`. @@ -975,6 +984,8 @@ def get_error_stack(self) -> Sequence[str]: 'llama-2-70b-chat': Llama2ChatDialog, 'llama-3-8b-instruct': Llama3ChatDialog, 'llama-3-70b-instruct': Llama3ChatDialog, + 'llama-3.2-1b-instruct': Llama32ChatDialog, + 'llama-3.2-3b-instruct': Llama32ChatDialog, 'mistral-7b-instruct-v0.1': MistralChatDialog, 'mistral-7b-instruct-v0.2': MistralChatDialog, 'mixtral-8x7b-instruct-v0.1': MixtralChatDialog, @@ -1034,6 +1045,7 @@ def get_dialog( 'GemmaChatDialog', 'Llama2ChatDialog', 'Llama3ChatDialog', + 'Llama32ChatDialog', 'MistralChatDialog', 'MixtralChatDialog', 'Phi2ChatDialog', diff --git a/binding/python/test_picollm.py b/binding/python/test_picollm.py index f58678a..b6920c3 100644 --- a/binding/python/test_picollm.py +++ b/binding/python/test_picollm.py @@ -33,6 +33,7 @@ GemmaChatDialog, Llama2ChatDialog, Llama3ChatDialog, + Llama32ChatDialog, MistralChatDialog, Phi2ChatDialog, Phi2QADialog, @@ -466,6 +467,7 @@ def setUpClass(cls) -> None: "gemma-chat-dialog": GemmaChatDialog, "llama-2-chat-dialog": Llama2ChatDialog, "llama-3-chat-dialog": Llama3ChatDialog, + "llama-3.2x-chat-dialog": Llama32ChatDialog, "mistral-chat-dialog": MistralChatDialog, "phi2-chat-dialog": Phi2ChatDialog, "phi2-qa-dialog": Phi2QADialog, diff --git a/binding/web/src/dialog.ts b/binding/web/src/dialog.ts index c7dc891..766b359 100644 --- a/binding/web/src/dialog.ts +++ b/binding/web/src/dialog.ts @@ -149,6 +149,13 @@ export class Llama3ChatDialog extends Dialog { } } +/** + * Dialog helper for `llama-3.2-1b-instruct` and `llama-3.2-3b-instruct`. + */ +export class Llama32ChatDialog extends Llama3ChatDialog { + +} + /** * Dialog helper for `mistral-7b-instruct-v0.1` and `mistral-7b-instruct-v0.2`. */ @@ -272,6 +279,8 @@ export const DIALOGS: { [key: string]: typeof Dialog | { [key: string]: typeof D 'llama-2-70b-chat': Llama2ChatDialog, 'llama-3-8b-instruct': Llama3ChatDialog, 'llama-3-70b-instruct': Llama3ChatDialog, + 'llama-3.2-1b-instruct': Llama32ChatDialog, + 'llama-3.2-3b-instruct': Llama32ChatDialog, 'mistral-7b-instruct-v0.1': MistralChatDialog, 'mistral-7b-instruct-v0.2': MistralChatDialog, 'mixtral-8x7b-instruct-v0.1': MixtralChatDialog, diff --git a/binding/web/src/index.ts b/binding/web/src/index.ts index 4fda9a6..a921782 100644 --- a/binding/web/src/index.ts +++ b/binding/web/src/index.ts @@ -6,6 +6,7 @@ import { GemmaChatDialog, Llama2ChatDialog, Llama3ChatDialog, + Llama32ChatDialog, MistralChatDialog, MixtralChatDialog, Phi2Dialog, @@ -54,6 +55,7 @@ export { GemmaChatDialog, Llama2ChatDialog, Llama3ChatDialog, + Llama32ChatDialog, MistralChatDialog, MixtralChatDialog, Phi2Dialog, diff --git a/binding/web/test/picollm.test.ts b/binding/web/test/picollm.test.ts index ad7973a..68841e2 100644 --- a/binding/web/test/picollm.test.ts +++ b/binding/web/test/picollm.test.ts @@ -3,6 +3,7 @@ import { GemmaChatDialog, Llama2ChatDialog, Llama3ChatDialog, + Llama32ChatDialog, MistralChatDialog, Phi2ChatDialog, Phi2QADialog, @@ -27,6 +28,7 @@ const DIALOG_CLASSES: { [key: string]: typeof Dialog } = { 'gemma-chat-dialog': GemmaChatDialog, "llama-2-chat-dialog": Llama2ChatDialog, "llama-3-chat-dialog": Llama3ChatDialog, + "llama-3.2-chat-dialog": Llama32ChatDialog, "mistral-chat-dialog": MistralChatDialog, 'phi2-chat-dialog': Phi2ChatDialog, 'phi2-qa-dialog': Phi2QADialog, diff --git a/resources/.test/test_data.json b/resources/.test/test_data.json index a30b86a..24e66ac 100644 --- a/resources/.test/test_data.json +++ b/resources/.test/test_data.json @@ -188,6 +188,7 @@ "gemma-chat-dialog": "user\nHi\nmodel\nHey\nuser\nHola\nmodel\n¡Oye!\nuser\nSalut\nmodel", "llama-2-chat-dialog": "[INST] Hi [/INST] Hey [INST] Hola [/INST] ¡Oye! [INST] Salut [/INST]", "llama-3-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHi<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nHey<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nHola<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n¡Oye!<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", + "llama-3.2-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHi<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nHey<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nHola<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n¡Oye!<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", "mistral-chat-dialog": "[INST] Hi [/INST] Hey[INST] Hola [/INST] ¡Oye![INST] Salut [/INST]", "phi2-chat-dialog": "Human: Hi\nAI: Hey\nHuman: Hola\nAI: ¡Oye!\nHuman: Salut\nAI:", "phi2-qa-dialog": "Instruct: Hi\nOutput: Hey\nInstruct: Hola\nOutput: ¡Oye!\nInstruct: Salut\nOutput:", @@ -198,6 +199,7 @@ "gemma-chat-dialog": "user\nHi\nmodel\nHey\nuser\nHola\nmodel\n¡Oye!\nuser\nSalut\nmodel", "llama-2-chat-dialog": "[INST] <>\nrespond with ❤️ and \uD83E\uDEE1\n<>\n\nHi [/INST] Hey [INST] Hola [/INST] ¡Oye! [INST] Salut [/INST]", "llama-3-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHi<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nHey<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nHola<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n¡Oye!<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", + "llama-3.2-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHi<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nHey<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nHola<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n¡Oye!<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", "mistral-chat-dialog": "[INST] Hi [/INST] Hey[INST] Hola [/INST] ¡Oye![INST] Salut [/INST]", "phi2-chat-dialog": "Human: Hi\nAI: Hey\nHuman: Hola\nAI: ¡Oye!\nHuman: Salut\nAI:", "phi2-qa-dialog": "Instruct: Hi\nOutput: Hey\nInstruct: Hola\nOutput: ¡Oye!\nInstruct: Salut\nOutput:", @@ -208,6 +210,7 @@ "gemma-chat-dialog": "user\nSalut\nmodel", "llama-2-chat-dialog": "[INST] Salut [/INST]", "llama-3-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", + "llama-3.2-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", "mistral-chat-dialog": "[INST] Salut [/INST]", "phi2-chat-dialog": "Human: Salut\nAI:", "phi2-qa-dialog": "Instruct: Salut\nOutput:", @@ -218,6 +221,7 @@ "gemma-chat-dialog": "user\nSalut\nmodel", "llama-2-chat-dialog": "[INST] <>\nrespond with ❤️ and \uD83E\uDEE1\n<>\n\nSalut [/INST]", "llama-3-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", + "llama-3.2-chat-dialog": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nSalut<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", "mistral-chat-dialog": "[INST] Salut [/INST]", "phi2-chat-dialog": "Human: Salut\nAI:", "phi2-qa-dialog": "Instruct: Salut\nOutput:", From 7078606923866dd668241e4ce9d96bbbe4cbb3d8 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Fri, 20 Dec 2024 14:53:21 -0800 Subject: [PATCH 2/7] updated version --- .github/workflows/nodejs-demos.yml | 6 + .github/workflows/python-demos.yml | 8 + .github/workflows/web-demos.yml | 12 + binding/android/PicoLLM/picollm/build.gradle | 2 +- .../picollm-test-app/build.gradle | 2 +- binding/ios/PicoLLMAppTest/Podfile | 4 +- binding/ios/PicoLLMAppTest/Podfile.lock | 16 - binding/ios/PicoLLMDialog.swift | 2 +- binding/ios/picoLLM-iOS.podspec | 4 +- binding/nodejs/package.json | 2 +- binding/python/setup.py | 2 +- binding/web/package.json | 2 +- .../Chat/picollm-chat-demo/build.gradle | 2 +- .../picollm-completion-demo/build.gradle | 2 +- demo/ios/Chat/Podfile | 2 +- demo/ios/Chat/Podfile.lock | 16 - demo/ios/Completion/Podfile | 2 +- demo/ios/Completion/Podfile.lock | 16 - demo/nodejs/package.json | 4 +- demo/nodejs/yarn.lock | 18 - demo/python/requirements.txt | 2 +- demo/python/setup.py | 4 +- demo/web/chat/package.json | 4 +- demo/web/chat/yarn.lock | 337 ------------------ demo/web/completion/package.json | 4 +- demo/web/completion/yarn.lock | 337 ------------------ 26 files changed, 49 insertions(+), 763 deletions(-) delete mode 100644 binding/ios/PicoLLMAppTest/Podfile.lock delete mode 100644 demo/ios/Chat/Podfile.lock delete mode 100644 demo/ios/Completion/Podfile.lock delete mode 100644 demo/nodejs/yarn.lock delete mode 100644 demo/web/chat/yarn.lock delete mode 100644 demo/web/completion/yarn.lock diff --git a/.github/workflows/nodejs-demos.yml b/.github/workflows/nodejs-demos.yml index 6e81ee2..aa5727f 100644 --- a/.github/workflows/nodejs-demos.yml +++ b/.github/workflows/nodejs-demos.yml @@ -47,6 +47,12 @@ jobs: with: node-version: ${{ matrix.node-version }} + # ************ REMOVE AFTER RELEASE *************** + - name: build local binding + run: yarn install && yarn build + working-directory: binding/nodejs + # ************ REMOVE AFTER RELEASE *************** + - name: Install dependencies run: yarn install diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index 8592db8..40742ae 100644 --- a/.github/workflows/python-demos.yml +++ b/.github/workflows/python-demos.yml @@ -52,6 +52,14 @@ jobs: .venv\Scripts\activate echo PATH=$PATH >> $GITHUB_ENV + # ************ REMOVE AFTER RELEASE *************** + - name: build local binding + run: | + python3 -m pip install setuptools wheel + python3 -m setup sdist bdist_wheel + working-directory: binding/python + # ************ REMOVE AFTER RELEASE *************** + - name: Install Python dependencies run: python3 -m pip install -r requirements.txt diff --git a/.github/workflows/web-demos.yml b/.github/workflows/web-demos.yml index 0c94435..a0ef5cc 100644 --- a/.github/workflows/web-demos.yml +++ b/.github/workflows/web-demos.yml @@ -30,6 +30,12 @@ jobs: steps: - uses: actions/checkout@v3 + # ************ REMOVE AFTER RELEASE *************** + - name: build local binding + run: yarn install && yarn copywasm && yarn build + working-directory: binding/web + # ************ REMOVE AFTER RELEASE *************** + - name: Install dependencies run: yarn install @@ -43,5 +49,11 @@ jobs: steps: - uses: actions/checkout@v3 + # ************ REMOVE AFTER RELEASE *************** + - name: build local binding + run: yarn install && yarn copywasm && yarn build + working-directory: binding/web + # ************ REMOVE AFTER RELEASE *************** + - name: Install dependencies run: yarn install \ No newline at end of file diff --git a/binding/android/PicoLLM/picollm/build.gradle b/binding/android/PicoLLM/picollm/build.gradle index 878304d..fdebc97 100644 --- a/binding/android/PicoLLM/picollm/build.gradle +++ b/binding/android/PicoLLM/picollm/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ext { PUBLISH_GROUP_ID = 'ai.picovoice' - PUBLISH_VERSION = '1.2.2' + PUBLISH_VERSION = '1.2.3' PUBLISH_ARTIFACT_ID = 'picollm-android' } diff --git a/binding/android/PicoLLMTestApp/picollm-test-app/build.gradle b/binding/android/PicoLLMTestApp/picollm-test-app/build.gradle index da670ed..7731683 100644 --- a/binding/android/PicoLLMTestApp/picollm-test-app/build.gradle +++ b/binding/android/PicoLLMTestApp/picollm-test-app/build.gradle @@ -80,7 +80,7 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'com.google.code.gson:gson:2.10' - implementation 'ai.picovoice:picollm-android:1.2.2' + implementation 'ai.picovoice:picollm-android:1.2.3' // Espresso UI Testing androidTestImplementation 'androidx.test.ext:junit:1.1.5' diff --git a/binding/ios/PicoLLMAppTest/Podfile b/binding/ios/PicoLLMAppTest/Podfile index 0c7913c..f5f741e 100644 --- a/binding/ios/PicoLLMAppTest/Podfile +++ b/binding/ios/PicoLLMAppTest/Podfile @@ -2,9 +2,9 @@ source 'https://cdn.cocoapods.org/' platform :ios, '16.0' target 'PicoLLMAppTest' do - pod 'picoLLM-iOS', '~> 1.2.2' + pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' end target 'PicoLLMAppTestUITests' do - pod 'picoLLM-iOS', '~> 1.2.2' + pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' end diff --git a/binding/ios/PicoLLMAppTest/Podfile.lock b/binding/ios/PicoLLMAppTest/Podfile.lock deleted file mode 100644 index 8fe0ea3..0000000 --- a/binding/ios/PicoLLMAppTest/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - picoLLM-iOS (1.2.2) - -DEPENDENCIES: - - picoLLM-iOS (~> 1.2.2) - -SPEC REPOS: - trunk: - - picoLLM-iOS - -SPEC CHECKSUMS: - picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 - -PODFILE CHECKSUM: 587c9b24dc36d7eaa75ebc7db50d7c26a2e7e92b - -COCOAPODS: 1.15.2 diff --git a/binding/ios/PicoLLMDialog.swift b/binding/ios/PicoLLMDialog.swift index 0791f4e..4cfc563 100644 --- a/binding/ios/PicoLLMDialog.swift +++ b/binding/ios/PicoLLMDialog.swift @@ -325,7 +325,7 @@ public class Llama3ChatDialog: BasePicoLLMDialog { /// Dialog helper for `llama-3.2-1b-instruct` and `llama-3.2-3b-instruct`. public class Llama32ChatDialog: Llama3ChatDialog { - + } /// Dialog helper for `gemma-2b-it` and `gemma-7b-it`. diff --git a/binding/ios/picoLLM-iOS.podspec b/binding/ios/picoLLM-iOS.podspec index 478be8f..61ac4db 100644 --- a/binding/ios/picoLLM-iOS.podspec +++ b/binding/ios/picoLLM-iOS.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'picoLLM-iOS' s.module_name = 'PicoLLM' - s.version = '1.2.2' + s.version = '1.2.3' s.license = {:type => 'Apache 2.0'} s.summary = 'picoLLM Inference Engine' s.description = @@ -10,7 +10,7 @@ Pod::Spec.new do |s| DESC s.homepage = 'https://github.com/Picovoice/picollm/tree/master/binding/ios' s.author = { 'Picovoice' => 'hello@picovoice.ai' } - s.source = { :git => "https://github.com/Picovoice/picollm.git", :tag => "picoLLM-iOS-v1.2.2" } + s.source = { :git => "https://github.com/Picovoice/picollm.git", :tag => "picoLLM-iOS-v1.2.3" } s.ios.deployment_target = '16.0' s.swift_version = '5.0' s.vendored_frameworks = 'lib/ios/PvPicoLLM.xcframework' diff --git a/binding/nodejs/package.json b/binding/nodejs/package.json index 851c20f..89e1035 100644 --- a/binding/nodejs/package.json +++ b/binding/nodejs/package.json @@ -1,6 +1,6 @@ { "name": "@picovoice/picollm-node", - "version": "1.2.2", + "version": "1.2.3", "description": "Picovoice picoLLM Node.js binding", "main": "dist/index.js", "types": "dist/types/index.d.ts", diff --git a/binding/python/setup.py b/binding/python/setup.py index 5fc05cb..10389aa 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -53,7 +53,7 @@ setuptools.setup( name="picollm", - version="1.2.2", + version="1.2.3", author="Picovoice", author_email="hello@picovoice.ai", description="picoLLM Inference Engine", diff --git a/binding/web/package.json b/binding/web/package.json index d95b0f8..c6f86df 100644 --- a/binding/web/package.json +++ b/binding/web/package.json @@ -3,7 +3,7 @@ "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.2.2", + "version": "1.2.3", "keywords": [ "web", "ai", diff --git a/demo/android/Chat/picollm-chat-demo/build.gradle b/demo/android/Chat/picollm-chat-demo/build.gradle index e5e967f..cf81bf9 100644 --- a/demo/android/Chat/picollm-chat-demo/build.gradle +++ b/demo/android/Chat/picollm-chat-demo/build.gradle @@ -32,5 +32,5 @@ dependencies { implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.1' - implementation 'ai.picovoice:picollm-android:1.2.2' + implementation 'ai.picovoice:picollm-android:1.2.3' } diff --git a/demo/android/Completion/picollm-completion-demo/build.gradle b/demo/android/Completion/picollm-completion-demo/build.gradle index 6230ecb..c80b514 100644 --- a/demo/android/Completion/picollm-completion-demo/build.gradle +++ b/demo/android/Completion/picollm-completion-demo/build.gradle @@ -38,5 +38,5 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.1' implementation 'com.google.code.gson:gson:2.8.9' - implementation 'ai.picovoice:picollm-android:1.2.2' + implementation 'ai.picovoice:picollm-android:1.2.3' } diff --git a/demo/ios/Chat/Podfile b/demo/ios/Chat/Podfile index 14d0622..45e49a6 100644 --- a/demo/ios/Chat/Podfile +++ b/demo/ios/Chat/Podfile @@ -2,5 +2,5 @@ source 'https://cdn.cocoapods.org/' platform :ios, '16.0' target 'PicoLLMChatDemo' do - pod 'picoLLM-iOS', '~> 1.2.2' + pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' end \ No newline at end of file diff --git a/demo/ios/Chat/Podfile.lock b/demo/ios/Chat/Podfile.lock deleted file mode 100644 index c0de5d7..0000000 --- a/demo/ios/Chat/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - picoLLM-iOS (1.2.2) - -DEPENDENCIES: - - picoLLM-iOS (~> 1.2.2) - -SPEC REPOS: - trunk: - - picoLLM-iOS - -SPEC CHECKSUMS: - picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 - -PODFILE CHECKSUM: 2e5a6651f42b19fdf6b6332b7e013191cff71918 - -COCOAPODS: 1.15.2 diff --git a/demo/ios/Completion/Podfile b/demo/ios/Completion/Podfile index 7640f7e..dd73c41 100644 --- a/demo/ios/Completion/Podfile +++ b/demo/ios/Completion/Podfile @@ -2,5 +2,5 @@ source 'https://cdn.cocoapods.org/' platform :ios, '16.0' target 'PicoLLMCompletionDemo' do - pod 'picoLLM-iOS', '~> 1.2.2' + pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' end diff --git a/demo/ios/Completion/Podfile.lock b/demo/ios/Completion/Podfile.lock deleted file mode 100644 index 50a17ed..0000000 --- a/demo/ios/Completion/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - picoLLM-iOS (1.2.2) - -DEPENDENCIES: - - picoLLM-iOS (~> 1.2.2) - -SPEC REPOS: - trunk: - - picoLLM-iOS - -SPEC CHECKSUMS: - picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 - -PODFILE CHECKSUM: 771cb4ad028915be50c77396de5c3c8389345f34 - -COCOAPODS: 1.15.2 diff --git a/demo/nodejs/package.json b/demo/nodejs/package.json index dd926fe..a35919f 100644 --- a/demo/nodejs/package.json +++ b/demo/nodejs/package.json @@ -1,6 +1,6 @@ { "name": "@picovoice/picollm-node-demo", - "version": "1.2.2", + "version": "1.2.3", "description": "Picovoice PicoLLM Node.js chat and completion demos", "scripts": { "chat": "node chat.js", @@ -19,7 +19,7 @@ "author": "Picovoice Inc.", "license": "Apache-2.0", "dependencies": { - "@picovoice/picollm-node": "~1.2.2", + "@picovoice/picollm-node": "../../binding/nodejs", "commander": "^6.1.0", "prettier": "^2.6.2" }, diff --git a/demo/nodejs/yarn.lock b/demo/nodejs/yarn.lock deleted file mode 100644 index 7b495bd..0000000 --- a/demo/nodejs/yarn.lock +++ /dev/null @@ -1,18 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@picovoice/picollm-node@~1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-node/-/picollm-node-1.2.2.tgz#515c7325c7d7d3b13612b63efee7392727469626" - integrity sha512-HUS84WD5YY+SxWbWztYrG4wAdRIeGqk7RjAhjdiT4XvaOo8aOw54fviDM1X/1/QPcqnvYATt06fn2YvAH9ItRg== - -commander@^6.1.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" - integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== - -prettier@^2.6.2: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index d4d5165..206218b 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1 +1 @@ -picollm==1.2.2 \ No newline at end of file +../../binding/python/dist/picollm-1.2.3-py3-none-any.whl \ No newline at end of file diff --git a/demo/python/setup.py b/demo/python/setup.py index 22d0178..8a31e21 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -27,7 +27,7 @@ setuptools.setup( name="picollmdemo", - version="1.2.2", + version="1.2.3", author="Picovoice", author_email="hello@picovoice.ai", description="picoLLM Inference Engine demos", @@ -35,7 +35,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/picollm", packages=["picollmdemo"], - install_requires=["picollm==1.2.2"], + install_requires=["picollm==1.2.3"], include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", diff --git a/demo/web/chat/package.json b/demo/web/chat/package.json index acbd6a4..cc903ae 100644 --- a/demo/web/chat/package.json +++ b/demo/web/chat/package.json @@ -1,6 +1,6 @@ { "name": "picollm-web-chat-demo", - "version": "1.2.2", + "version": "1.2.3", "description": "A demo to show how to create a picoLLM inference engine on a web worker and have a back-and-forth conversation with the LLM, similar to ChatGPT.", "main": "index.js", "private": true, @@ -16,7 +16,7 @@ "author": "Picovoice Inc", "license": "Apache-2.0", "dependencies": { - "@picovoice/picollm-web": "~1.2.2" + "@picovoice/picollm-web": "../../binding/web" }, "devDependencies": { "http-server": "^14.0.0" diff --git a/demo/web/chat/yarn.lock b/demo/web/chat/yarn.lock deleted file mode 100644 index 040987f..0000000 --- a/demo/web/chat/yarn.lock +++ /dev/null @@ -1,337 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@picovoice/picollm-web@~1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.2.tgz#d4f7c65d19aa53febf312198cfb153c97ad81c9b" - integrity sha512-drLxBiGvpxSH4clOY0TfHQ+XFp447VUY5oC2qjSLD4454C5H/PpB5qFpW8ejr78LvCU/cu9TKRtnnmk2fZq7Sw== - dependencies: - "@picovoice/web-utils" "~1.4.3" - -"@picovoice/web-utils@~1.4.3": - version "1.4.3" - resolved "https://registry.yarnpkg.com/@picovoice/web-utils/-/web-utils-1.4.3.tgz#1de0b20d6080c18d295c6df37c09d88bf7c4f555" - integrity sha512-7JN3YYsSD9Gtce6YKG3XqpX49dkeu7jTdbox7rHQA/X/Q3zxopXA9zlCKSq6EIjFbiX2iuzDKUx1XrFa3d8c0w== - dependencies: - commander "^10.0.1" - -ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -async@^2.6.4: - version "2.6.4" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" - integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== - dependencies: - lodash "^4.17.14" - -basic-auth@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.1.tgz#b998279bf47ce38344b4f3cf916d4679bbf51e3a" - integrity sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg== - dependencies: - safe-buffer "5.1.2" - -call-bind@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" - integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - set-function-length "^1.2.1" - -chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commander@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" - integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== - -corser@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87" - integrity sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ== - -debug@^3.2.7: - version "3.2.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - -define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - -es-define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" - integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== - dependencies: - get-intrinsic "^1.2.4" - -es-errors@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" - integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== - -eventemitter3@^4.0.0: - version "4.0.7" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" - integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== - -follow-redirects@^1.0.0: - version "1.15.9" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" - integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" - integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== - dependencies: - es-errors "^1.3.0" - function-bind "^1.1.2" - has-proto "^1.0.1" - has-symbols "^1.0.3" - hasown "^2.0.0" - -gopd@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" - integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== - dependencies: - get-intrinsic "^1.1.3" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-proto@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" - integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== - -has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -hasown@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" - integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== - dependencies: - function-bind "^1.1.2" - -he@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -html-encoding-sniffer@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9" - integrity sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA== - dependencies: - whatwg-encoding "^2.0.0" - -http-proxy@^1.18.1: - version "1.18.1" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" - integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== - dependencies: - eventemitter3 "^4.0.0" - follow-redirects "^1.0.0" - requires-port "^1.0.0" - -http-server@^14.0.0: - version "14.1.1" - resolved "https://registry.yarnpkg.com/http-server/-/http-server-14.1.1.tgz#d60fbb37d7c2fdff0f0fbff0d0ee6670bd285e2e" - integrity sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A== - dependencies: - basic-auth "^2.0.1" - chalk "^4.1.2" - corser "^2.0.1" - he "^1.2.0" - html-encoding-sniffer "^3.0.0" - http-proxy "^1.18.1" - mime "^1.6.0" - minimist "^1.2.6" - opener "^1.5.1" - portfinder "^1.0.28" - secure-compare "3.0.1" - union "~0.5.0" - url-join "^4.0.1" - -iconv-lite@0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -lodash@^4.17.14: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -mime@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -mkdirp@^0.5.6: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -ms@^2.1.1: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -object-inspect@^1.13.1: - version "1.13.3" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" - integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== - -opener@^1.5.1: - version "1.5.2" - resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" - integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== - -portfinder@^1.0.28: - version "1.0.32" - resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.32.tgz#2fe1b9e58389712429dc2bea5beb2146146c7f81" - integrity sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg== - dependencies: - async "^2.6.4" - debug "^3.2.7" - mkdirp "^0.5.6" - -qs@^6.4.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" - integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== - dependencies: - side-channel "^1.0.6" - -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -safe-buffer@5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -"safer-buffer@>= 2.1.2 < 3.0.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -secure-compare@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/secure-compare/-/secure-compare-3.0.1.tgz#f1a0329b308b221fae37b9974f3d578d0ca999e3" - integrity sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw== - -set-function-length@^1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - -side-channel@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" - integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== - dependencies: - call-bind "^1.0.7" - es-errors "^1.3.0" - get-intrinsic "^1.2.4" - object-inspect "^1.13.1" - -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -union@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075" - integrity sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA== - dependencies: - qs "^6.4.0" - -url-join@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" - integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA== - -whatwg-encoding@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53" - integrity sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg== - dependencies: - iconv-lite "0.6.3" diff --git a/demo/web/completion/package.json b/demo/web/completion/package.json index 92946fe..b58dc7a 100644 --- a/demo/web/completion/package.json +++ b/demo/web/completion/package.json @@ -1,6 +1,6 @@ { "name": "picollm-web-completion-demo", - "version": "1.2.2", + "version": "1.2.3", "description": "A demo to show how to create a picoLLM inference engine on a web worker that accepts a prompt along with a set of optional parameters and generates a single completion.", "main": "index.js", "private": true, @@ -16,7 +16,7 @@ "author": "Picovoice Inc", "license": "Apache-2.0", "dependencies": { - "@picovoice/picollm-web": "~1.2.2" + "@picovoice/picollm-web": "../../binding/web" }, "devDependencies": { "http-server": "^14.0.0" diff --git a/demo/web/completion/yarn.lock b/demo/web/completion/yarn.lock deleted file mode 100644 index 040987f..0000000 --- a/demo/web/completion/yarn.lock +++ /dev/null @@ -1,337 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@picovoice/picollm-web@~1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.2.tgz#d4f7c65d19aa53febf312198cfb153c97ad81c9b" - integrity sha512-drLxBiGvpxSH4clOY0TfHQ+XFp447VUY5oC2qjSLD4454C5H/PpB5qFpW8ejr78LvCU/cu9TKRtnnmk2fZq7Sw== - dependencies: - "@picovoice/web-utils" "~1.4.3" - -"@picovoice/web-utils@~1.4.3": - version "1.4.3" - resolved "https://registry.yarnpkg.com/@picovoice/web-utils/-/web-utils-1.4.3.tgz#1de0b20d6080c18d295c6df37c09d88bf7c4f555" - integrity sha512-7JN3YYsSD9Gtce6YKG3XqpX49dkeu7jTdbox7rHQA/X/Q3zxopXA9zlCKSq6EIjFbiX2iuzDKUx1XrFa3d8c0w== - dependencies: - commander "^10.0.1" - -ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -async@^2.6.4: - version "2.6.4" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" - integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== - dependencies: - lodash "^4.17.14" - -basic-auth@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.1.tgz#b998279bf47ce38344b4f3cf916d4679bbf51e3a" - integrity sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg== - dependencies: - safe-buffer "5.1.2" - -call-bind@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" - integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - set-function-length "^1.2.1" - -chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commander@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" - integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== - -corser@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87" - integrity sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ== - -debug@^3.2.7: - version "3.2.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - -define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - -es-define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" - integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== - dependencies: - get-intrinsic "^1.2.4" - -es-errors@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" - integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== - -eventemitter3@^4.0.0: - version "4.0.7" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" - integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== - -follow-redirects@^1.0.0: - version "1.15.9" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" - integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" - integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== - dependencies: - es-errors "^1.3.0" - function-bind "^1.1.2" - has-proto "^1.0.1" - has-symbols "^1.0.3" - hasown "^2.0.0" - -gopd@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" - integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== - dependencies: - get-intrinsic "^1.1.3" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-proto@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" - integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== - -has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -hasown@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" - integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== - dependencies: - function-bind "^1.1.2" - -he@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -html-encoding-sniffer@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9" - integrity sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA== - dependencies: - whatwg-encoding "^2.0.0" - -http-proxy@^1.18.1: - version "1.18.1" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" - integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== - dependencies: - eventemitter3 "^4.0.0" - follow-redirects "^1.0.0" - requires-port "^1.0.0" - -http-server@^14.0.0: - version "14.1.1" - resolved "https://registry.yarnpkg.com/http-server/-/http-server-14.1.1.tgz#d60fbb37d7c2fdff0f0fbff0d0ee6670bd285e2e" - integrity sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A== - dependencies: - basic-auth "^2.0.1" - chalk "^4.1.2" - corser "^2.0.1" - he "^1.2.0" - html-encoding-sniffer "^3.0.0" - http-proxy "^1.18.1" - mime "^1.6.0" - minimist "^1.2.6" - opener "^1.5.1" - portfinder "^1.0.28" - secure-compare "3.0.1" - union "~0.5.0" - url-join "^4.0.1" - -iconv-lite@0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -lodash@^4.17.14: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -mime@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -mkdirp@^0.5.6: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -ms@^2.1.1: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -object-inspect@^1.13.1: - version "1.13.3" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" - integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== - -opener@^1.5.1: - version "1.5.2" - resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" - integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== - -portfinder@^1.0.28: - version "1.0.32" - resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.32.tgz#2fe1b9e58389712429dc2bea5beb2146146c7f81" - integrity sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg== - dependencies: - async "^2.6.4" - debug "^3.2.7" - mkdirp "^0.5.6" - -qs@^6.4.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" - integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== - dependencies: - side-channel "^1.0.6" - -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -safe-buffer@5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -"safer-buffer@>= 2.1.2 < 3.0.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -secure-compare@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/secure-compare/-/secure-compare-3.0.1.tgz#f1a0329b308b221fae37b9974f3d578d0ca999e3" - integrity sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw== - -set-function-length@^1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - -side-channel@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" - integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== - dependencies: - call-bind "^1.0.7" - es-errors "^1.3.0" - get-intrinsic "^1.2.4" - object-inspect "^1.13.1" - -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -union@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075" - integrity sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA== - dependencies: - qs "^6.4.0" - -url-join@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" - integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA== - -whatwg-encoding@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53" - integrity sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg== - dependencies: - iconv-lite "0.6.3" From 61b64777d8fd2ca7a74fd4cdef82783874d10b06 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Fri, 20 Dec 2024 15:05:18 -0800 Subject: [PATCH 3/7] staged android --- binding/android/PicoLLMTestApp/build.gradle | 6 + binding/ios/PicoLLMAppTest/Podfile.lock | 16 + binding/python/test_picollm.py | 2 +- demo/android/Chat/build.gradle | 6 + demo/android/Completion/build.gradle | 6 + demo/ios/Chat/Podfile.lock | 16 + demo/ios/Completion/Podfile.lock | 16 + demo/nodejs/yarn.lock | 18 ++ demo/web/chat/yarn.lock | 337 ++++++++++++++++++++ demo/web/completion/yarn.lock | 337 ++++++++++++++++++++ 10 files changed, 759 insertions(+), 1 deletion(-) create mode 100644 binding/ios/PicoLLMAppTest/Podfile.lock create mode 100644 demo/ios/Chat/Podfile.lock create mode 100644 demo/ios/Completion/Podfile.lock create mode 100644 demo/nodejs/yarn.lock create mode 100644 demo/web/chat/yarn.lock create mode 100644 demo/web/completion/yarn.lock diff --git a/binding/android/PicoLLMTestApp/build.gradle b/binding/android/PicoLLMTestApp/build.gradle index c2a2dfe..609e742 100644 --- a/binding/android/PicoLLMTestApp/build.gradle +++ b/binding/android/PicoLLMTestApp/build.gradle @@ -6,6 +6,9 @@ buildscript { repositories { google() mavenCentral() + maven { + url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' + } } dependencies { classpath 'com.android.tools.build:gradle:7.2.2' @@ -21,6 +24,9 @@ allprojects { repositories { google() mavenCentral() + maven { + url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' + } } } diff --git a/binding/ios/PicoLLMAppTest/Podfile.lock b/binding/ios/PicoLLMAppTest/Podfile.lock new file mode 100644 index 0000000..8fe0ea3 --- /dev/null +++ b/binding/ios/PicoLLMAppTest/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - picoLLM-iOS (1.2.2) + +DEPENDENCIES: + - picoLLM-iOS (~> 1.2.2) + +SPEC REPOS: + trunk: + - picoLLM-iOS + +SPEC CHECKSUMS: + picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 + +PODFILE CHECKSUM: 587c9b24dc36d7eaa75ebc7db50d7c26a2e7e92b + +COCOAPODS: 1.15.2 diff --git a/binding/python/test_picollm.py b/binding/python/test_picollm.py index b6920c3..d3952cf 100644 --- a/binding/python/test_picollm.py +++ b/binding/python/test_picollm.py @@ -467,7 +467,7 @@ def setUpClass(cls) -> None: "gemma-chat-dialog": GemmaChatDialog, "llama-2-chat-dialog": Llama2ChatDialog, "llama-3-chat-dialog": Llama3ChatDialog, - "llama-3.2x-chat-dialog": Llama32ChatDialog, + "llama-3.2-chat-dialog": Llama32ChatDialog, "mistral-chat-dialog": MistralChatDialog, "phi2-chat-dialog": Phi2ChatDialog, "phi2-qa-dialog": Phi2QADialog, diff --git a/demo/android/Chat/build.gradle b/demo/android/Chat/build.gradle index 56f710b..aea28a2 100644 --- a/demo/android/Chat/build.gradle +++ b/demo/android/Chat/build.gradle @@ -6,6 +6,9 @@ buildscript { repositories { google() mavenCentral() + maven { + url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' + } } dependencies { classpath 'com.android.tools.build:gradle:7.4.2' @@ -16,6 +19,9 @@ allprojects { repositories { google() mavenCentral() + maven { + url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' + } } } diff --git a/demo/android/Completion/build.gradle b/demo/android/Completion/build.gradle index 56f710b..aea28a2 100644 --- a/demo/android/Completion/build.gradle +++ b/demo/android/Completion/build.gradle @@ -6,6 +6,9 @@ buildscript { repositories { google() mavenCentral() + maven { + url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' + } } dependencies { classpath 'com.android.tools.build:gradle:7.4.2' @@ -16,6 +19,9 @@ allprojects { repositories { google() mavenCentral() + maven { + url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' + } } } diff --git a/demo/ios/Chat/Podfile.lock b/demo/ios/Chat/Podfile.lock new file mode 100644 index 0000000..c0de5d7 --- /dev/null +++ b/demo/ios/Chat/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - picoLLM-iOS (1.2.2) + +DEPENDENCIES: + - picoLLM-iOS (~> 1.2.2) + +SPEC REPOS: + trunk: + - picoLLM-iOS + +SPEC CHECKSUMS: + picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 + +PODFILE CHECKSUM: 2e5a6651f42b19fdf6b6332b7e013191cff71918 + +COCOAPODS: 1.15.2 diff --git a/demo/ios/Completion/Podfile.lock b/demo/ios/Completion/Podfile.lock new file mode 100644 index 0000000..50a17ed --- /dev/null +++ b/demo/ios/Completion/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - picoLLM-iOS (1.2.2) + +DEPENDENCIES: + - picoLLM-iOS (~> 1.2.2) + +SPEC REPOS: + trunk: + - picoLLM-iOS + +SPEC CHECKSUMS: + picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 + +PODFILE CHECKSUM: 771cb4ad028915be50c77396de5c3c8389345f34 + +COCOAPODS: 1.15.2 diff --git a/demo/nodejs/yarn.lock b/demo/nodejs/yarn.lock new file mode 100644 index 0000000..7b495bd --- /dev/null +++ b/demo/nodejs/yarn.lock @@ -0,0 +1,18 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@picovoice/picollm-node@~1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-node/-/picollm-node-1.2.2.tgz#515c7325c7d7d3b13612b63efee7392727469626" + integrity sha512-HUS84WD5YY+SxWbWztYrG4wAdRIeGqk7RjAhjdiT4XvaOo8aOw54fviDM1X/1/QPcqnvYATt06fn2YvAH9ItRg== + +commander@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" + integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== + +prettier@^2.6.2: + version "2.8.8" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== diff --git a/demo/web/chat/yarn.lock b/demo/web/chat/yarn.lock new file mode 100644 index 0000000..040987f --- /dev/null +++ b/demo/web/chat/yarn.lock @@ -0,0 +1,337 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@picovoice/picollm-web@~1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.2.tgz#d4f7c65d19aa53febf312198cfb153c97ad81c9b" + integrity sha512-drLxBiGvpxSH4clOY0TfHQ+XFp447VUY5oC2qjSLD4454C5H/PpB5qFpW8ejr78LvCU/cu9TKRtnnmk2fZq7Sw== + dependencies: + "@picovoice/web-utils" "~1.4.3" + +"@picovoice/web-utils@~1.4.3": + version "1.4.3" + resolved "https://registry.yarnpkg.com/@picovoice/web-utils/-/web-utils-1.4.3.tgz#1de0b20d6080c18d295c6df37c09d88bf7c4f555" + integrity sha512-7JN3YYsSD9Gtce6YKG3XqpX49dkeu7jTdbox7rHQA/X/Q3zxopXA9zlCKSq6EIjFbiX2iuzDKUx1XrFa3d8c0w== + dependencies: + commander "^10.0.1" + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +async@^2.6.4: + version "2.6.4" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== + dependencies: + lodash "^4.17.14" + +basic-auth@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.1.tgz#b998279bf47ce38344b4f3cf916d4679bbf51e3a" + integrity sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg== + dependencies: + safe-buffer "5.1.2" + +call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" + +chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +commander@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" + integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== + +corser@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87" + integrity sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ== + +debug@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + +define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +eventemitter3@^4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + +follow-redirects@^1.0.0: + version "1.15.9" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" + integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + +has-proto@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== + +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +hasown@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +he@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + +html-encoding-sniffer@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9" + integrity sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA== + dependencies: + whatwg-encoding "^2.0.0" + +http-proxy@^1.18.1: + version "1.18.1" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" + integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== + dependencies: + eventemitter3 "^4.0.0" + follow-redirects "^1.0.0" + requires-port "^1.0.0" + +http-server@^14.0.0: + version "14.1.1" + resolved "https://registry.yarnpkg.com/http-server/-/http-server-14.1.1.tgz#d60fbb37d7c2fdff0f0fbff0d0ee6670bd285e2e" + integrity sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A== + dependencies: + basic-auth "^2.0.1" + chalk "^4.1.2" + corser "^2.0.1" + he "^1.2.0" + html-encoding-sniffer "^3.0.0" + http-proxy "^1.18.1" + mime "^1.6.0" + minimist "^1.2.6" + opener "^1.5.1" + portfinder "^1.0.28" + secure-compare "3.0.1" + union "~0.5.0" + url-join "^4.0.1" + +iconv-lite@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +lodash@^4.17.14: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +mime@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +mkdirp@^0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +ms@^2.1.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +object-inspect@^1.13.1: + version "1.13.3" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" + integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== + +opener@^1.5.1: + version "1.5.2" + resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" + integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== + +portfinder@^1.0.28: + version "1.0.32" + resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.32.tgz#2fe1b9e58389712429dc2bea5beb2146146c7f81" + integrity sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg== + dependencies: + async "^2.6.4" + debug "^3.2.7" + mkdirp "^0.5.6" + +qs@^6.4.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" + integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== + dependencies: + side-channel "^1.0.6" + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +safe-buffer@5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +"safer-buffer@>= 2.1.2 < 3.0.0": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +secure-compare@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/secure-compare/-/secure-compare-3.0.1.tgz#f1a0329b308b221fae37b9974f3d578d0ca999e3" + integrity sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw== + +set-function-length@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + +side-channel@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" + integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== + dependencies: + call-bind "^1.0.7" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + object-inspect "^1.13.1" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +union@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075" + integrity sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA== + dependencies: + qs "^6.4.0" + +url-join@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" + integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA== + +whatwg-encoding@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53" + integrity sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg== + dependencies: + iconv-lite "0.6.3" diff --git a/demo/web/completion/yarn.lock b/demo/web/completion/yarn.lock new file mode 100644 index 0000000..040987f --- /dev/null +++ b/demo/web/completion/yarn.lock @@ -0,0 +1,337 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@picovoice/picollm-web@~1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.2.tgz#d4f7c65d19aa53febf312198cfb153c97ad81c9b" + integrity sha512-drLxBiGvpxSH4clOY0TfHQ+XFp447VUY5oC2qjSLD4454C5H/PpB5qFpW8ejr78LvCU/cu9TKRtnnmk2fZq7Sw== + dependencies: + "@picovoice/web-utils" "~1.4.3" + +"@picovoice/web-utils@~1.4.3": + version "1.4.3" + resolved "https://registry.yarnpkg.com/@picovoice/web-utils/-/web-utils-1.4.3.tgz#1de0b20d6080c18d295c6df37c09d88bf7c4f555" + integrity sha512-7JN3YYsSD9Gtce6YKG3XqpX49dkeu7jTdbox7rHQA/X/Q3zxopXA9zlCKSq6EIjFbiX2iuzDKUx1XrFa3d8c0w== + dependencies: + commander "^10.0.1" + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +async@^2.6.4: + version "2.6.4" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== + dependencies: + lodash "^4.17.14" + +basic-auth@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.1.tgz#b998279bf47ce38344b4f3cf916d4679bbf51e3a" + integrity sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg== + dependencies: + safe-buffer "5.1.2" + +call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" + +chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +commander@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" + integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== + +corser@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87" + integrity sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ== + +debug@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + +define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +eventemitter3@^4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + +follow-redirects@^1.0.0: + version "1.15.9" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" + integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + +has-proto@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== + +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +hasown@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +he@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + +html-encoding-sniffer@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9" + integrity sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA== + dependencies: + whatwg-encoding "^2.0.0" + +http-proxy@^1.18.1: + version "1.18.1" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" + integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== + dependencies: + eventemitter3 "^4.0.0" + follow-redirects "^1.0.0" + requires-port "^1.0.0" + +http-server@^14.0.0: + version "14.1.1" + resolved "https://registry.yarnpkg.com/http-server/-/http-server-14.1.1.tgz#d60fbb37d7c2fdff0f0fbff0d0ee6670bd285e2e" + integrity sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A== + dependencies: + basic-auth "^2.0.1" + chalk "^4.1.2" + corser "^2.0.1" + he "^1.2.0" + html-encoding-sniffer "^3.0.0" + http-proxy "^1.18.1" + mime "^1.6.0" + minimist "^1.2.6" + opener "^1.5.1" + portfinder "^1.0.28" + secure-compare "3.0.1" + union "~0.5.0" + url-join "^4.0.1" + +iconv-lite@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +lodash@^4.17.14: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +mime@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +mkdirp@^0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +ms@^2.1.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +object-inspect@^1.13.1: + version "1.13.3" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" + integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== + +opener@^1.5.1: + version "1.5.2" + resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" + integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== + +portfinder@^1.0.28: + version "1.0.32" + resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.32.tgz#2fe1b9e58389712429dc2bea5beb2146146c7f81" + integrity sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg== + dependencies: + async "^2.6.4" + debug "^3.2.7" + mkdirp "^0.5.6" + +qs@^6.4.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" + integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== + dependencies: + side-channel "^1.0.6" + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +safe-buffer@5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +"safer-buffer@>= 2.1.2 < 3.0.0": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +secure-compare@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/secure-compare/-/secure-compare-3.0.1.tgz#f1a0329b308b221fae37b9974f3d578d0ca999e3" + integrity sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw== + +set-function-length@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + +side-channel@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" + integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== + dependencies: + call-bind "^1.0.7" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + object-inspect "^1.13.1" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +union@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075" + integrity sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA== + dependencies: + qs "^6.4.0" + +url-join@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" + integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA== + +whatwg-encoding@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53" + integrity sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg== + dependencies: + iconv-lite "0.6.3" From e6ab3d29bc012565e71a4161800706d49bdedbb1 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Fri, 20 Dec 2024 15:43:27 -0800 Subject: [PATCH 4/7] fixed android tests --- .../java/ai/picovoice/picollm/testapp/PicoLLMTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java b/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java index 3e28dec..1e99437 100644 --- a/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java +++ b/binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java @@ -685,8 +685,6 @@ public PicoLLMDialog.Builder getDialogBuilder(String dialogName) { return new Phi3ChatDialog.Builder(); case "phi3.5-chat-dialog": return new Phi35ChatDialog.Builder(); - case "llama-3.2-chat-dialog": - return new Llama32ChatDialog.Builder(); default: return null; } From 87a68952a21794663030c4ccd33b9373cb3f7793 Mon Sep 17 00:00:00 2001 From: Albert Ho <82767499+albho@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:44:18 -0800 Subject: [PATCH 5/7] iOS available via SPM (#77) --- .github/workflows/ios-demos.yml | 16 +- .github/workflows/ios-tests.yml | 7 +- .gitignore | 3 + Package.swift | 34 ++++ .../PicoLLMAppTest.xcodeproj/project.pbxproj | 156 ++++-------------- .../contents.xcworkspacedata | 10 -- .../xcshareddata/IDEWorkspaceChecks.plist | 8 - binding/ios/PicoLLMAppTest/Podfile | 10 -- binding/ios/PicoLLMAppTest/Podfile.lock | 16 -- binding/ios/PicoLLMErrors.swift | 2 + binding/ios/README.md | 8 +- binding/ios/picoLLM-iOS.podspec | 4 +- .../PicoLLMChatDemo.xcodeproj/project.pbxproj | 101 ++++-------- demo/ios/Chat/PicoLLMChatDemo/ViewModel.swift | 1 + demo/ios/Chat/Podfile | 6 - demo/ios/Chat/Podfile.lock | 16 -- .../project.pbxproj | 95 +++-------- .../PicoLLMCompletionDemo/ViewModel.swift | 1 + demo/ios/Completion/Podfile | 6 - demo/ios/Completion/Podfile.lock | 16 -- demo/ios/README.md | 6 +- resources/.lint/spell-check/dict.txt | 1 + 22 files changed, 140 insertions(+), 383 deletions(-) create mode 100644 Package.swift delete mode 100644 binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/contents.xcworkspacedata delete mode 100644 binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 binding/ios/PicoLLMAppTest/Podfile delete mode 100644 binding/ios/PicoLLMAppTest/Podfile.lock delete mode 100644 demo/ios/Chat/Podfile delete mode 100644 demo/ios/Chat/Podfile.lock delete mode 100644 demo/ios/Completion/Podfile delete mode 100644 demo/ios/Completion/Podfile.lock diff --git a/.github/workflows/ios-demos.yml b/.github/workflows/ios-demos.yml index 74ff133..d38e353 100644 --- a/.github/workflows/ios-demos.yml +++ b/.github/workflows/ios-demos.yml @@ -26,16 +26,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install Cocoapods - run: gem install cocoapods - - - name: Run Cocoapods - run: pod install --repo-update - - name: Build run: xcrun xcodebuild build -configuration Debug - -workspace PicoLLMCompletionDemo.xcworkspace + -project PicoLLMCompletionDemo.xcodeproj -sdk iphoneos -scheme PicoLLMCompletionDemo -derivedDataPath ddp @@ -51,16 +45,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install Cocoapods - run: gem install cocoapods - - - name: Run Cocoapods - run: pod install --repo-update - - name: Build run: xcrun xcodebuild build -configuration Debug - -workspace PicoLLMChatDemo.xcworkspace + -project PicoLLMChatDemo.xcodeproj -sdk iphoneos -scheme PicoLLMChatDemo -derivedDataPath ddp diff --git a/.github/workflows/ios-tests.yml b/.github/workflows/ios-tests.yml index 3596f79..430c6f2 100644 --- a/.github/workflows/ios-tests.yml +++ b/.github/workflows/ios-tests.yml @@ -28,9 +28,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Run Cocoapods - run: pod install --repo-update - - name: Inject AccessKey run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:' PicoLLMAppTestUITests/BaseTest.swift @@ -42,7 +39,7 @@ jobs: - name: XCode Build run: xcrun xcodebuild build-for-testing -configuration Debug - -workspace PicoLLMAppTest.xcworkspace + -project PicoLLMAppTest.xcodeproj -sdk iphoneos -scheme PicoLLMAppTest -derivedDataPath ddp @@ -50,6 +47,6 @@ jobs: - name: Run Tests on Simulator run: xcrun xcodebuild test - -workspace PicoLLMAppTest.xcworkspace + -project PicoLLMAppTest.xcodeproj -scheme PicoLLMAppTest -destination 'platform=iOS Simulator,name=iPhone 13,OS=16.4' diff --git a/.gitignore b/.gitignore index 8e624b5..fc12acd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ __pycache__ *.bin *.pllm +.build +Package.resolved +.swiftpm \ No newline at end of file diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a7bcd7a --- /dev/null +++ b/Package.swift @@ -0,0 +1,34 @@ +// swift-tools-version:5.3 +import PackageDescription +let package = Package( + name: "picoLLM-iOS", + platforms: [ + .iOS(.v13) + ], + products: [ + .library( + name: "PicoLLM", + targets: ["PicoLLM"] + ) + ], + targets: [ + .binaryTarget( + name: "PvPicoLLM", + path: "lib/ios/PvPicoLLM.xcframework" + ), + .target( + name: "PicoLLM", + dependencies: ["PvPicoLLM"], + path: ".", + exclude: [ + "binding/ios/PicoLLMAppTest", + "demo" + ], + sources: [ + "binding/ios/PicoLLM.swift", + "binding/ios/PicoLLMDialog.swift", + "binding/ios/PicoLLMErrors.swift" + ] + ) + ] +) diff --git a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj b/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj index 255bbbf..3bc2d42 100644 --- a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj +++ b/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 55; + objectVersion = 60; objects = { /* Begin PBXBuildFile section */ @@ -13,10 +13,10 @@ 1E7744BD27CD9D7F00491D0B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1E7744BC27CD9D7F00491D0B /* Assets.xcassets */; }; 1E7744C027CD9D7F00491D0B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1E7744BE27CD9D7F00491D0B /* LaunchScreen.storyboard */; }; 1E7744D527CD9D7F00491D0B /* PicoLLMAppTestUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7744D427CD9D7F00491D0B /* PicoLLMAppTestUITests.swift */; }; - 4A22E640019BA3ECBF044BFD /* libPods-PicoLLMAppTestUITests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 294FADF72A91D4790191B72F /* libPods-PicoLLMAppTestUITests.a */; }; - 9002F3251AFE11CB58B4AF91 /* libPods-PicoLLMAppTest.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2EC1458495139C3C6B186FB0 /* libPods-PicoLLMAppTest.a */; }; A52A78ED18AA4EDB33D95C4D /* BaseTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = A52A7583A49E7ACAA9C7A0C5 /* BaseTest.swift */; }; C795C0F42BED5A5200BA9BD2 /* test_data.json in Resources */ = {isa = PBXBuildFile; fileRef = C795C0F32BED5A5200BA9BD2 /* test_data.json */; }; + E1E013792D160CE600DB0C2F /* PicoLLM in Frameworks */ = {isa = PBXBuildFile; productRef = E1E013782D160CE600DB0C2F /* PicoLLM */; }; + E1E0137B2D160CEA00DB0C2F /* PicoLLM in Frameworks */ = {isa = PBXBuildFile; productRef = E1E0137A2D160CEA00DB0C2F /* PicoLLM */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -30,8 +30,6 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 107FED2B859E7EE9AC12C374 /* Pods-PerformanceTest.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PerformanceTest.release.xcconfig"; path = "Target Support Files/Pods-PerformanceTest/Pods-PerformanceTest.release.xcconfig"; sourceTree = ""; }; - 1E50C3F5EFC139AC9F72C389 /* Pods-PicoLLMAppTestUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMAppTestUITests.debug.xcconfig"; path = "Target Support Files/Pods-PicoLLMAppTestUITests/Pods-PicoLLMAppTestUITests.debug.xcconfig"; sourceTree = ""; }; 1E7744B027CD9D7E00491D0B /* PicoLLMAppTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PicoLLMAppTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; 1E7744B327CD9D7E00491D0B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 1E7744B727CD9D7E00491D0B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; @@ -42,13 +40,6 @@ 1E7744D027CD9D7F00491D0B /* PicoLLMAppTestUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PicoLLMAppTestUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 1E7744D427CD9D7F00491D0B /* PicoLLMAppTestUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PicoLLMAppTestUITests.swift; sourceTree = ""; }; 1E7744E327CDA13600491D0B /* info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = info.plist; sourceTree = ""; }; - 294FADF72A91D4790191B72F /* libPods-PicoLLMAppTestUITests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PicoLLMAppTestUITests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 2B19DDB15B3549F2A0CEA808 /* Pods-PicoLLMAppTest.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMAppTest.release.xcconfig"; path = "Target Support Files/Pods-PicoLLMAppTest/Pods-PicoLLMAppTest.release.xcconfig"; sourceTree = ""; }; - 2EC1458495139C3C6B186FB0 /* libPods-PicoLLMAppTest.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PicoLLMAppTest.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3B9010DF1EC4645C3AFCD069 /* Pods-PicoLLMAppTestUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMAppTestUITests.release.xcconfig"; path = "Target Support Files/Pods-PicoLLMAppTestUITests/Pods-PicoLLMAppTestUITests.release.xcconfig"; sourceTree = ""; }; - 797233CF30E7017467863A8D /* Pods-PerformanceTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PerformanceTest.debug.xcconfig"; path = "Target Support Files/Pods-PerformanceTest/Pods-PerformanceTest.debug.xcconfig"; sourceTree = ""; }; - 859BCC69EB5B3DEE304174D9 /* Pods-PicoLLMAppTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMAppTest.debug.xcconfig"; path = "Target Support Files/Pods-PicoLLMAppTest/Pods-PicoLLMAppTest.debug.xcconfig"; sourceTree = ""; }; - 8EA77D43CC5ED0D3506A9A0F /* libPods-PerformanceTest.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PerformanceTest.a"; sourceTree = BUILT_PRODUCTS_DIR; }; A52A7583A49E7ACAA9C7A0C5 /* BaseTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaseTest.swift; sourceTree = ""; }; C795C0F32BED5A5200BA9BD2 /* test_data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = test_data.json; path = ../../../../../resources/.test/test_data.json; sourceTree = ""; }; C7FA703F2B6B145800F480F3 /* libPicoLLM-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libPicoLLM-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -59,7 +50,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 9002F3251AFE11CB58B4AF91 /* libPods-PicoLLMAppTest.a in Frameworks */, + E1E013792D160CE600DB0C2F /* PicoLLM in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -67,33 +58,19 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 4A22E640019BA3ECBF044BFD /* libPods-PicoLLMAppTestUITests.a in Frameworks */, + E1E0137B2D160CEA00DB0C2F /* PicoLLM in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 1AF96756F2A5FC2840F81D99 /* Pods */ = { - isa = PBXGroup; - children = ( - 859BCC69EB5B3DEE304174D9 /* Pods-PicoLLMAppTest.debug.xcconfig */, - 2B19DDB15B3549F2A0CEA808 /* Pods-PicoLLMAppTest.release.xcconfig */, - 1E50C3F5EFC139AC9F72C389 /* Pods-PicoLLMAppTestUITests.debug.xcconfig */, - 3B9010DF1EC4645C3AFCD069 /* Pods-PicoLLMAppTestUITests.release.xcconfig */, - 797233CF30E7017467863A8D /* Pods-PerformanceTest.debug.xcconfig */, - 107FED2B859E7EE9AC12C374 /* Pods-PerformanceTest.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; 1E7744A727CD9D7E00491D0B = { isa = PBXGroup; children = ( 1E7744B227CD9D7E00491D0B /* PicoLLMAppTest */, 1E7744D327CD9D7F00491D0B /* PicoLLMAppTestUITests */, 1E7744B127CD9D7E00491D0B /* Products */, - 1AF96756F2A5FC2840F81D99 /* Pods */, CF8A3E0166575C420DB0878C /* Frameworks */, ); sourceTree = ""; @@ -143,9 +120,6 @@ isa = PBXGroup; children = ( C7FA703F2B6B145800F480F3 /* libPicoLLM-iOS.a */, - 2EC1458495139C3C6B186FB0 /* libPods-PicoLLMAppTest.a */, - 294FADF72A91D4790191B72F /* libPods-PicoLLMAppTestUITests.a */, - 8EA77D43CC5ED0D3506A9A0F /* libPods-PerformanceTest.a */, ); name = Frameworks; sourceTree = ""; @@ -157,11 +131,9 @@ isa = PBXNativeTarget; buildConfigurationList = 1E7744DA27CD9D7F00491D0B /* Build configuration list for PBXNativeTarget "PicoLLMAppTest" */; buildPhases = ( - B1385005372F1469CA69F7B1 /* [CP] Check Pods Manifest.lock */, 1E7744AC27CD9D7E00491D0B /* Sources */, 1E7744AD27CD9D7E00491D0B /* Frameworks */, 1E7744AE27CD9D7E00491D0B /* Resources */, - 3AB647519EBEBCDE7B48DBB5 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -176,11 +148,9 @@ isa = PBXNativeTarget; buildConfigurationList = 1E7744E027CD9D7F00491D0B /* Build configuration list for PBXNativeTarget "PicoLLMAppTestUITests" */; buildPhases = ( - 56CEA52AE3D3B600B4DCD856 /* [CP] Check Pods Manifest.lock */, 1E7744CC27CD9D7F00491D0B /* Sources */, 1E7744CD27CD9D7F00491D0B /* Frameworks */, 1E7744CE27CD9D7F00491D0B /* Resources */, - CFE0717F041B6628A838F80C /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -220,6 +190,9 @@ Base, ); mainGroup = 1E7744A727CD9D7E00491D0B; + packageReferences = ( + E1E013772D160CDE00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */, + ); productRefGroup = 1E7744B127CD9D7E00491D0B /* Products */; projectDirPath = ""; projectRoot = ""; @@ -251,87 +224,6 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 3AB647519EBEBCDE7B48DBB5 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMAppTest/Pods-PicoLLMAppTest-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMAppTest/Pods-PicoLLMAppTest-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PicoLLMAppTest/Pods-PicoLLMAppTest-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - 56CEA52AE3D3B600B4DCD856 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-PicoLLMAppTestUITests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - B1385005372F1469CA69F7B1 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-PicoLLMAppTest-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - CFE0717F041B6628A838F80C /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMAppTestUITests/Pods-PicoLLMAppTestUITests-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMAppTestUITests/Pods-PicoLLMAppTestUITests-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PicoLLMAppTestUITests/Pods-PicoLLMAppTestUITests-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 1E7744AC27CD9D7E00491D0B /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -503,13 +395,12 @@ }; 1E7744DB27CD9D7F00491D0B /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 859BCC69EB5B3DEE304174D9 /* Pods-PicoLLMAppTest.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = PicoLLMAppTest/Info.plist; @@ -539,13 +430,12 @@ }; 1E7744DC27CD9D7F00491D0B /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 2B19DDB15B3549F2A0CEA808 /* Pods-PicoLLMAppTest.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = PicoLLMAppTest/Info.plist; @@ -574,11 +464,10 @@ }; 1E7744E127CD9D7F00491D0B /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 1E50C3F5EFC139AC9F72C389 /* Pods-PicoLLMAppTestUITests.debug.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 16.0; @@ -603,11 +492,10 @@ }; 1E7744E227CD9D7F00491D0B /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 3B9010DF1EC4645C3AFCD069 /* Pods-PicoLLMAppTestUITests.release.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 16.0; @@ -661,6 +549,26 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCLocalSwiftPackageReference section */ + E1E013772D160CDE00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = ../../../../picollm; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + E1E013782D160CE600DB0C2F /* PicoLLM */ = { + isa = XCSwiftPackageProductDependency; + package = E1E013772D160CDE00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */; + productName = PicoLLM; + }; + E1E0137A2D160CEA00DB0C2F /* PicoLLM */ = { + isa = XCSwiftPackageProductDependency; + package = E1E013772D160CDE00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */; + productName = PicoLLM; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 1E7744A827CD9D7E00491D0B /* Project object */; } diff --git a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/contents.xcworkspacedata b/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index d44d9b4..0000000 --- a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/binding/ios/PicoLLMAppTest/Podfile b/binding/ios/PicoLLMAppTest/Podfile deleted file mode 100644 index f5f741e..0000000 --- a/binding/ios/PicoLLMAppTest/Podfile +++ /dev/null @@ -1,10 +0,0 @@ -source 'https://cdn.cocoapods.org/' -platform :ios, '16.0' - -target 'PicoLLMAppTest' do - pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' -end - -target 'PicoLLMAppTestUITests' do - pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' -end diff --git a/binding/ios/PicoLLMAppTest/Podfile.lock b/binding/ios/PicoLLMAppTest/Podfile.lock deleted file mode 100644 index 8fe0ea3..0000000 --- a/binding/ios/PicoLLMAppTest/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - picoLLM-iOS (1.2.2) - -DEPENDENCIES: - - picoLLM-iOS (~> 1.2.2) - -SPEC REPOS: - trunk: - - picoLLM-iOS - -SPEC CHECKSUMS: - picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 - -PODFILE CHECKSUM: 587c9b24dc36d7eaa75ebc7db50d7c26a2e7e92b - -COCOAPODS: 1.15.2 diff --git a/binding/ios/PicoLLMErrors.swift b/binding/ios/PicoLLMErrors.swift index 6d77f93..b82e131 100644 --- a/binding/ios/PicoLLMErrors.swift +++ b/binding/ios/PicoLLMErrors.swift @@ -7,6 +7,8 @@ // specific language governing permissions and limitations under the License. // +import Foundation + public class PicoLLMError: LocalizedError { private let message: String private let messageStack: [String] diff --git a/binding/ios/README.md b/binding/ios/README.md index e390f70..bb24286 100644 --- a/binding/ios/README.md +++ b/binding/ios/README.md @@ -20,9 +20,15 @@ models. picoLLM Inference Engine is: ## Installation -The picoLLM iOS binding is available via [CocoaPods](https://cocoapods.org/pods/picoLLM-iOS). To import it into your iOS project, add the following line to your Podfile: +The picoLLM iOS binding is available via [Swift Package Manager](https://www.swift.org/documentation/package-manager/) or [CocoaPods](https://cocoapods.org/pods/picoLLM-iOS). +To import the package using SPM, open up your project's Package Dependencies in XCode and add: +``` +https://github.com/Picovoice/picollm.git +``` +To import it into your iOS project using CocoaPods, add the following line to your Podfile: + ```ruby pod 'picoLLM-iOS' ``` diff --git a/binding/ios/picoLLM-iOS.podspec b/binding/ios/picoLLM-iOS.podspec index 61ac4db..9272034 100644 --- a/binding/ios/picoLLM-iOS.podspec +++ b/binding/ios/picoLLM-iOS.podspec @@ -8,9 +8,9 @@ Pod::Spec.new do |s| <<-DESC picoLLM Inference Engine iOS SDK. DESC - s.homepage = 'https://github.com/Picovoice/picollm/tree/master/binding/ios' + s.homepage = 'https://github.com/Picovoice/picollm/tree/main/binding/ios' s.author = { 'Picovoice' => 'hello@picovoice.ai' } - s.source = { :git => "https://github.com/Picovoice/picollm.git", :tag => "picoLLM-iOS-v1.2.3" } + s.source = { :git => "https://github.com/Picovoice/picollm.git", :tag => s.version.to_s } s.ios.deployment_target = '16.0' s.swift_version = '5.0' s.vendored_frameworks = 'lib/ios/PvPicoLLM.xcframework' diff --git a/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj b/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj index 5127925..0b053eb 100644 --- a/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj +++ b/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 54; + objectVersion = 60; objects = { /* Begin PBXBuildFile section */ @@ -11,10 +11,11 @@ 02A1194B268D39A700A2AC99 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1194A268D39A700A2AC99 /* ContentView.swift */; }; 02A1194D268D39AB00A2AC99 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 02A1194C268D39AB00A2AC99 /* Assets.xcassets */; }; 02A1195F268D3FD600A2AC99 /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1195E268D3FD600A2AC99 /* ViewModel.swift */; }; - 3D2B8D90C4122A3A0C8C682D /* libPods-PicoLLMChatDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7231C033B41A0972F723C1A6 /* libPods-PicoLLMChatDemo.a */; }; C789D24B2BEA8E5D005FDB10 /* LoadModelView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24A2BEA8E5D005FDB10 /* LoadModelView.swift */; }; C789D24D2BEA8EAE005FDB10 /* ChatView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24C2BEA8EAE005FDB10 /* ChatView.swift */; }; C789D2512BEAD752005FDB10 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D2502BEAD752005FDB10 /* Constants.swift */; }; + E1E0137E2D16114E00DB0C2F /* PicoLLM in Frameworks */ = {isa = PBXBuildFile; productRef = E1E0137D2D16114E00DB0C2F /* PicoLLM */; }; + E1E013842D162B3D00DB0C2F /* PicoLLM in Frameworks */ = {isa = PBXBuildFile; productRef = E1E013832D162B3D00DB0C2F /* PicoLLM */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -24,9 +25,6 @@ 02A1194C268D39AB00A2AC99 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 02A11951268D39AB00A2AC99 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 02A1195E268D3FD600A2AC99 /* ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = ""; }; - 195F7C81D2A651BE1E18D367 /* Pods-PicoLLMChatDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMChatDemo.debug.xcconfig"; path = "Target Support Files/Pods-PicoLLMChatDemo/Pods-PicoLLMChatDemo.debug.xcconfig"; sourceTree = ""; }; - 7231C033B41A0972F723C1A6 /* libPods-PicoLLMChatDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PicoLLMChatDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - B4721F6A98EC8D37F91281AB /* Pods-PicoLLMChatDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMChatDemo.release.xcconfig"; path = "Target Support Files/Pods-PicoLLMChatDemo/Pods-PicoLLMChatDemo.release.xcconfig"; sourceTree = ""; }; C789D24A2BEA8E5D005FDB10 /* LoadModelView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadModelView.swift; sourceTree = ""; }; C789D24C2BEA8EAE005FDB10 /* ChatView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatView.swift; sourceTree = ""; }; C789D2502BEAD752005FDB10 /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = ""; }; @@ -37,7 +35,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 3D2B8D90C4122A3A0C8C682D /* libPods-PicoLLMChatDemo.a in Frameworks */, + E1E0137E2D16114E00DB0C2F /* PicoLLM in Frameworks */, + E1E013842D162B3D00DB0C2F /* PicoLLM in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -49,8 +48,6 @@ children = ( 02A11947268D39A700A2AC99 /* PicoLLMChatDemo */, 02A11946268D39A700A2AC99 /* Products */, - 8DB92FF3DC81AB04D3FF7242 /* Pods */, - F770462E5CFAB5B7D2E94AD8 /* Frameworks */, ); sourceTree = ""; }; @@ -77,23 +74,6 @@ path = PicoLLMChatDemo; sourceTree = ""; }; - 8DB92FF3DC81AB04D3FF7242 /* Pods */ = { - isa = PBXGroup; - children = ( - 195F7C81D2A651BE1E18D367 /* Pods-PicoLLMChatDemo.debug.xcconfig */, - B4721F6A98EC8D37F91281AB /* Pods-PicoLLMChatDemo.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; - F770462E5CFAB5B7D2E94AD8 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 7231C033B41A0972F723C1A6 /* libPods-PicoLLMChatDemo.a */, - ); - name = Frameworks; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -101,11 +81,9 @@ isa = PBXNativeTarget; buildConfigurationList = 02A11954268D39AB00A2AC99 /* Build configuration list for PBXNativeTarget "PicoLLMChatDemo" */; buildPhases = ( - 1F448DADB90CE82863E78546 /* [CP] Check Pods Manifest.lock */, 02A11941268D39A700A2AC99 /* Sources */, 02A11942268D39A700A2AC99 /* Frameworks */, 02A11943268D39A700A2AC99 /* Resources */, - FA42AEB90E30635F6CCC7782 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -140,6 +118,9 @@ Base, ); mainGroup = 02A1193C268D39A700A2AC99; + packageReferences = ( + E1E013822D162B3D00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */, + ); productRefGroup = 02A11946268D39A700A2AC99 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -160,48 +141,6 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 1F448DADB90CE82863E78546 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-PicoLLMChatDemo-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - FA42AEB90E30635F6CCC7782 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMChatDemo/Pods-PicoLLMChatDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMChatDemo/Pods-PicoLLMChatDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PicoLLMChatDemo/Pods-PicoLLMChatDemo-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 02A11941268D39A700A2AC99 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -339,13 +278,12 @@ }; 02A11955268D39AB00A2AC99 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 195F7C81D2A651BE1E18D367 /* Pods-PicoLLMChatDemo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_ASSET_PATHS = ""; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_PREVIEWS = YES; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = PicoLLMChatDemo/Info.plist; @@ -363,13 +301,12 @@ }; 02A11956268D39AB00A2AC99 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = B4721F6A98EC8D37F91281AB /* Pods-PicoLLMChatDemo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_ASSET_PATHS = ""; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_PREVIEWS = YES; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = PicoLLMChatDemo/Info.plist; @@ -407,6 +344,24 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCLocalSwiftPackageReference section */ + E1E013822D162B3D00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = ../../../../picollm; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + E1E0137D2D16114E00DB0C2F /* PicoLLM */ = { + isa = XCSwiftPackageProductDependency; + productName = PicoLLM; + }; + E1E013832D162B3D00DB0C2F /* PicoLLM */ = { + isa = XCSwiftPackageProductDependency; + productName = PicoLLM; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 02A1193D268D39A700A2AC99 /* Project object */; } diff --git a/demo/ios/Chat/PicoLLMChatDemo/ViewModel.swift b/demo/ios/Chat/PicoLLMChatDemo/ViewModel.swift index 9146394..a07b651 100644 --- a/demo/ios/Chat/PicoLLMChatDemo/ViewModel.swift +++ b/demo/ios/Chat/PicoLLMChatDemo/ViewModel.swift @@ -9,6 +9,7 @@ import PicoLLM import Combine +import Foundation class ViewModel: ObservableObject { diff --git a/demo/ios/Chat/Podfile b/demo/ios/Chat/Podfile deleted file mode 100644 index 45e49a6..0000000 --- a/demo/ios/Chat/Podfile +++ /dev/null @@ -1,6 +0,0 @@ -source 'https://cdn.cocoapods.org/' -platform :ios, '16.0' - -target 'PicoLLMChatDemo' do - pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' -end \ No newline at end of file diff --git a/demo/ios/Chat/Podfile.lock b/demo/ios/Chat/Podfile.lock deleted file mode 100644 index c0de5d7..0000000 --- a/demo/ios/Chat/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - picoLLM-iOS (1.2.2) - -DEPENDENCIES: - - picoLLM-iOS (~> 1.2.2) - -SPEC REPOS: - trunk: - - picoLLM-iOS - -SPEC CHECKSUMS: - picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 - -PODFILE CHECKSUM: 2e5a6651f42b19fdf6b6332b7e013191cff71918 - -COCOAPODS: 1.15.2 diff --git a/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj b/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj index f9e766b..a78961b 100644 --- a/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj +++ b/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 54; + objectVersion = 60; objects = { /* Begin PBXBuildFile section */ @@ -11,11 +11,11 @@ 02A1194B268D39A700A2AC99 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1194A268D39A700A2AC99 /* ContentView.swift */; }; 02A1194D268D39AB00A2AC99 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 02A1194C268D39AB00A2AC99 /* Assets.xcassets */; }; 02A1195F268D3FD600A2AC99 /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1195E268D3FD600A2AC99 /* ViewModel.swift */; }; - 3C4D5033D20F3FDD2E9185C2 /* libPods-PicoLLMCompletionDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70BD182327BB17BA8130F34E /* libPods-PicoLLMCompletionDemo.a */; }; C789D2492BEA8D26005FDB10 /* SidebarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D2482BEA8D26005FDB10 /* SidebarView.swift */; }; C789D24B2BEA8E5D005FDB10 /* LoadModelView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24A2BEA8E5D005FDB10 /* LoadModelView.swift */; }; C789D24D2BEA8EAE005FDB10 /* CompletionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24C2BEA8EAE005FDB10 /* CompletionView.swift */; }; C789D2512BEAD752005FDB10 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D2502BEAD752005FDB10 /* Constants.swift */; }; + E1E013812D1612E800DB0C2F /* PicoLLM in Frameworks */ = {isa = PBXBuildFile; productRef = E1E013802D1612E800DB0C2F /* PicoLLM */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -25,9 +25,6 @@ 02A1194C268D39AB00A2AC99 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 02A11951268D39AB00A2AC99 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 02A1195E268D3FD600A2AC99 /* ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = ""; }; - 38E6CF52FF6B3E0120A1960A /* Pods-PicoLLMCompletionDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMCompletionDemo.release.xcconfig"; path = "Target Support Files/Pods-PicoLLMCompletionDemo/Pods-PicoLLMCompletionDemo.release.xcconfig"; sourceTree = ""; }; - 4380C983EB006A338D3FA583 /* Pods-PicoLLMCompletionDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PicoLLMCompletionDemo.debug.xcconfig"; path = "Target Support Files/Pods-PicoLLMCompletionDemo/Pods-PicoLLMCompletionDemo.debug.xcconfig"; sourceTree = ""; }; - 70BD182327BB17BA8130F34E /* libPods-PicoLLMCompletionDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PicoLLMCompletionDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; C789D2482BEA8D26005FDB10 /* SidebarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SidebarView.swift; sourceTree = ""; }; C789D24A2BEA8E5D005FDB10 /* LoadModelView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadModelView.swift; sourceTree = ""; }; C789D24C2BEA8EAE005FDB10 /* CompletionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompletionView.swift; sourceTree = ""; }; @@ -39,7 +36,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 3C4D5033D20F3FDD2E9185C2 /* libPods-PicoLLMCompletionDemo.a in Frameworks */, + E1E013812D1612E800DB0C2F /* PicoLLM in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -51,8 +48,6 @@ children = ( 02A11947268D39A700A2AC99 /* PicoLLMCompletionDemo */, 02A11946268D39A700A2AC99 /* Products */, - 8DB92FF3DC81AB04D3FF7242 /* Pods */, - 87BDCEFF73B03E32BDF5463B /* Frameworks */, ); sourceTree = ""; }; @@ -80,23 +75,6 @@ path = PicoLLMCompletionDemo; sourceTree = ""; }; - 87BDCEFF73B03E32BDF5463B /* Frameworks */ = { - isa = PBXGroup; - children = ( - 70BD182327BB17BA8130F34E /* libPods-PicoLLMCompletionDemo.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 8DB92FF3DC81AB04D3FF7242 /* Pods */ = { - isa = PBXGroup; - children = ( - 4380C983EB006A338D3FA583 /* Pods-PicoLLMCompletionDemo.debug.xcconfig */, - 38E6CF52FF6B3E0120A1960A /* Pods-PicoLLMCompletionDemo.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -104,11 +82,9 @@ isa = PBXNativeTarget; buildConfigurationList = 02A11954268D39AB00A2AC99 /* Build configuration list for PBXNativeTarget "PicoLLMCompletionDemo" */; buildPhases = ( - DBA5BC7A7A75CABA57760F8A /* [CP] Check Pods Manifest.lock */, 02A11941268D39A700A2AC99 /* Sources */, 02A11942268D39A700A2AC99 /* Frameworks */, 02A11943268D39A700A2AC99 /* Resources */, - 197A83DFE9D0D1EB48085417 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -142,6 +118,9 @@ Base, ); mainGroup = 02A1193C268D39A700A2AC99; + packageReferences = ( + E1E0137F2D1612E800DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */, + ); productRefGroup = 02A11946268D39A700A2AC99 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -162,48 +141,6 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 197A83DFE9D0D1EB48085417 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMCompletionDemo/Pods-PicoLLMCompletionDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-PicoLLMCompletionDemo/Pods-PicoLLMCompletionDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PicoLLMCompletionDemo/Pods-PicoLLMCompletionDemo-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - DBA5BC7A7A75CABA57760F8A /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-PicoLLMCompletionDemo-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 02A11941268D39A700A2AC99 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -340,13 +277,12 @@ }; 02A11955268D39AB00A2AC99 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 4380C983EB006A338D3FA583 /* Pods-PicoLLMCompletionDemo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_ASSET_PATHS = ""; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_PREVIEWS = YES; INFOPLIST_FILE = PicoLLMCompletionDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 16.0; @@ -363,13 +299,12 @@ }; 02A11956268D39AB00A2AC99 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 38E6CF52FF6B3E0120A1960A /* Pods-PicoLLMCompletionDemo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_ASSET_PATHS = ""; - DEVELOPMENT_TEAM = EU9HUJJU2X; + DEVELOPMENT_TEAM = 65723695GD; ENABLE_PREVIEWS = YES; INFOPLIST_FILE = PicoLLMCompletionDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 16.0; @@ -406,6 +341,20 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCLocalSwiftPackageReference section */ + E1E0137F2D1612E800DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = ../../../../picollm; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + E1E013802D1612E800DB0C2F /* PicoLLM */ = { + isa = XCSwiftPackageProductDependency; + productName = PicoLLM; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 02A1193D268D39A700A2AC99 /* Project object */; } diff --git a/demo/ios/Completion/PicoLLMCompletionDemo/ViewModel.swift b/demo/ios/Completion/PicoLLMCompletionDemo/ViewModel.swift index 2261bad..4b604ec 100644 --- a/demo/ios/Completion/PicoLLMCompletionDemo/ViewModel.swift +++ b/demo/ios/Completion/PicoLLMCompletionDemo/ViewModel.swift @@ -9,6 +9,7 @@ import PicoLLM import Combine +import Foundation class ViewModel: ObservableObject { diff --git a/demo/ios/Completion/Podfile b/demo/ios/Completion/Podfile deleted file mode 100644 index dd73c41..0000000 --- a/demo/ios/Completion/Podfile +++ /dev/null @@ -1,6 +0,0 @@ -source 'https://cdn.cocoapods.org/' -platform :ios, '16.0' - -target 'PicoLLMCompletionDemo' do - pod 'picoLLM-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picollm/refs/heads/v1.2.3/binding/ios/picoLLM-iOS.podspec' -end diff --git a/demo/ios/Completion/Podfile.lock b/demo/ios/Completion/Podfile.lock deleted file mode 100644 index 50a17ed..0000000 --- a/demo/ios/Completion/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - picoLLM-iOS (1.2.2) - -DEPENDENCIES: - - picoLLM-iOS (~> 1.2.2) - -SPEC REPOS: - trunk: - - picoLLM-iOS - -SPEC CHECKSUMS: - picoLLM-iOS: 21f92b131dab066b63365f612222c46d04cf3141 - -PODFILE CHECKSUM: 771cb4ad028915be50c77396de5c3c8389345f34 - -COCOAPODS: 1.15.2 diff --git a/demo/ios/README.md b/demo/ios/README.md index 457e01d..053f198 100644 --- a/demo/ios/README.md +++ b/demo/ios/README.md @@ -78,9 +78,9 @@ conversation with the LLM, similar to ChatGPT. pod install ``` -2. Open the `PicoLLMCompletionDemo.xcworkspace` in XCode +2. Open the `PicoLLMCompletionDemo.xcodeproj` in XCode -3. Replace `let ACCESS_KEY = "${YOUR_ACCESS_KEY_HERE}"` in the file [VieModel.swift](./Completion/PicoLLMCompletionDemo/ViewModel.swift) with your AccessKey obtained from [Picovoice Console](https://console.picovoice.ai/). +3. Replace `"${YOUR_ACCESS_KEY_HERE}"` in the file [VieModel.swift](./Completion/PicoLLMCompletionDemo/ViewModel.swift) with your AccessKey obtained from [Picovoice Console](https://console.picovoice.ai/). 4. Build and run the project on your device. @@ -98,7 +98,7 @@ pod install pod install ``` -2. Open the `PicoLLMChatDemo.xcworkspace` in XCode +2. Open the `PicoLLMChatDemo.xcodeproj` in XCode 3. Replace `let ACCESS_KEY = "${YOUR_ACCESS_KEY_HERE}"` in the file [VieModel.swift](./Chat/PicoLLMChatDemo/ViewModel.swift) with your AccessKey obtained from [Picovoice Console](https://console.picovoice.ai/). diff --git a/resources/.lint/spell-check/dict.txt b/resources/.lint/spell-check/dict.txt index 142a4d7..53d70eb 100644 --- a/resources/.lint/spell-check/dict.txt +++ b/resources/.lint/spell-check/dict.txt @@ -70,5 +70,6 @@ drawerlayout Unmanaged Unretained Podfile +xcodeproj xcworkspace webgpu From 9b845823d66ce9b6e6f3528a634d42a302d47af3 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Mon, 23 Dec 2024 10:47:50 -0800 Subject: [PATCH 6/7] updated to use released packages --- .github/workflows/nodejs-demos.yml | 6 ------ .github/workflows/python-demos.yml | 8 -------- .github/workflows/web-demos.yml | 12 ------------ binding/android/PicoLLMTestApp/build.gradle | 6 ------ demo/android/Chat/build.gradle | 6 ------ demo/android/Completion/build.gradle | 6 ------ demo/nodejs/package.json | 2 +- demo/nodejs/yarn.lock | 8 ++++---- demo/python/requirements.txt | 2 +- demo/web/chat/package.json | 2 +- demo/web/chat/yarn.lock | 8 ++++---- demo/web/completion/package.json | 2 +- demo/web/completion/yarn.lock | 8 ++++---- 13 files changed, 16 insertions(+), 60 deletions(-) diff --git a/.github/workflows/nodejs-demos.yml b/.github/workflows/nodejs-demos.yml index aa5727f..6e81ee2 100644 --- a/.github/workflows/nodejs-demos.yml +++ b/.github/workflows/nodejs-demos.yml @@ -47,12 +47,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - # ************ REMOVE AFTER RELEASE *************** - - name: build local binding - run: yarn install && yarn build - working-directory: binding/nodejs - # ************ REMOVE AFTER RELEASE *************** - - name: Install dependencies run: yarn install diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index 40742ae..8592db8 100644 --- a/.github/workflows/python-demos.yml +++ b/.github/workflows/python-demos.yml @@ -52,14 +52,6 @@ jobs: .venv\Scripts\activate echo PATH=$PATH >> $GITHUB_ENV - # ************ REMOVE AFTER RELEASE *************** - - name: build local binding - run: | - python3 -m pip install setuptools wheel - python3 -m setup sdist bdist_wheel - working-directory: binding/python - # ************ REMOVE AFTER RELEASE *************** - - name: Install Python dependencies run: python3 -m pip install -r requirements.txt diff --git a/.github/workflows/web-demos.yml b/.github/workflows/web-demos.yml index a0ef5cc..0c94435 100644 --- a/.github/workflows/web-demos.yml +++ b/.github/workflows/web-demos.yml @@ -30,12 +30,6 @@ jobs: steps: - uses: actions/checkout@v3 - # ************ REMOVE AFTER RELEASE *************** - - name: build local binding - run: yarn install && yarn copywasm && yarn build - working-directory: binding/web - # ************ REMOVE AFTER RELEASE *************** - - name: Install dependencies run: yarn install @@ -49,11 +43,5 @@ jobs: steps: - uses: actions/checkout@v3 - # ************ REMOVE AFTER RELEASE *************** - - name: build local binding - run: yarn install && yarn copywasm && yarn build - working-directory: binding/web - # ************ REMOVE AFTER RELEASE *************** - - name: Install dependencies run: yarn install \ No newline at end of file diff --git a/binding/android/PicoLLMTestApp/build.gradle b/binding/android/PicoLLMTestApp/build.gradle index 609e742..c2a2dfe 100644 --- a/binding/android/PicoLLMTestApp/build.gradle +++ b/binding/android/PicoLLMTestApp/build.gradle @@ -6,9 +6,6 @@ buildscript { repositories { google() mavenCentral() - maven { - url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' - } } dependencies { classpath 'com.android.tools.build:gradle:7.2.2' @@ -24,9 +21,6 @@ allprojects { repositories { google() mavenCentral() - maven { - url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' - } } } diff --git a/demo/android/Chat/build.gradle b/demo/android/Chat/build.gradle index aea28a2..56f710b 100644 --- a/demo/android/Chat/build.gradle +++ b/demo/android/Chat/build.gradle @@ -6,9 +6,6 @@ buildscript { repositories { google() mavenCentral() - maven { - url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' - } } dependencies { classpath 'com.android.tools.build:gradle:7.4.2' @@ -19,9 +16,6 @@ allprojects { repositories { google() mavenCentral() - maven { - url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' - } } } diff --git a/demo/android/Completion/build.gradle b/demo/android/Completion/build.gradle index aea28a2..56f710b 100644 --- a/demo/android/Completion/build.gradle +++ b/demo/android/Completion/build.gradle @@ -6,9 +6,6 @@ buildscript { repositories { google() mavenCentral() - maven { - url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' - } } dependencies { classpath 'com.android.tools.build:gradle:7.4.2' @@ -19,9 +16,6 @@ allprojects { repositories { google() mavenCentral() - maven { - url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1358/' - } } } diff --git a/demo/nodejs/package.json b/demo/nodejs/package.json index a35919f..ed60042 100644 --- a/demo/nodejs/package.json +++ b/demo/nodejs/package.json @@ -19,7 +19,7 @@ "author": "Picovoice Inc.", "license": "Apache-2.0", "dependencies": { - "@picovoice/picollm-node": "../../binding/nodejs", + "@picovoice/picollm-node": "~1.2.3", "commander": "^6.1.0", "prettier": "^2.6.2" }, diff --git a/demo/nodejs/yarn.lock b/demo/nodejs/yarn.lock index 7b495bd..9176bab 100644 --- a/demo/nodejs/yarn.lock +++ b/demo/nodejs/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@picovoice/picollm-node@~1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-node/-/picollm-node-1.2.2.tgz#515c7325c7d7d3b13612b63efee7392727469626" - integrity sha512-HUS84WD5YY+SxWbWztYrG4wAdRIeGqk7RjAhjdiT4XvaOo8aOw54fviDM1X/1/QPcqnvYATt06fn2YvAH9ItRg== +"@picovoice/picollm-node@~1.2.3": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-node/-/picollm-node-1.2.3.tgz#e987159a308ee44b5d947213ee4401d6ff30e6ed" + integrity sha512-WdtrmMbxAUS8SDr98VRG+LulGe8UvRclu0+bBnOnYdOfEG7+XWHzC1ddsXRyN9mdmpPJj5T0xxQ1uk9dN2j+aw== commander@^6.1.0: version "6.2.1" diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index 206218b..4b99411 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1 +1 @@ -../../binding/python/dist/picollm-1.2.3-py3-none-any.whl \ No newline at end of file +picollm==1.2.3 \ No newline at end of file diff --git a/demo/web/chat/package.json b/demo/web/chat/package.json index cc903ae..3b343a6 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": "../../binding/web" + "@picovoice/picollm-web": "~1.2.3" }, "devDependencies": { "http-server": "^14.0.0" diff --git a/demo/web/chat/yarn.lock b/demo/web/chat/yarn.lock index 040987f..a314db2 100644 --- a/demo/web/chat/yarn.lock +++ b/demo/web/chat/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@picovoice/picollm-web@~1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.2.tgz#d4f7c65d19aa53febf312198cfb153c97ad81c9b" - integrity sha512-drLxBiGvpxSH4clOY0TfHQ+XFp447VUY5oC2qjSLD4454C5H/PpB5qFpW8ejr78LvCU/cu9TKRtnnmk2fZq7Sw== +"@picovoice/picollm-web@~1.2.3": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.3.tgz#765f52c55943c71dbb7c95492b93cda15e483999" + integrity sha512-QtiZTckN6UDlO5bVnR5ldhegb9h63szu4l3PknI7V4Qsz8w4AXaloRXlnOhK87oEC5Px2C56ve7+aiH9oSPcNQ== dependencies: "@picovoice/web-utils" "~1.4.3" diff --git a/demo/web/completion/package.json b/demo/web/completion/package.json index b58dc7a..ad867f0 100644 --- a/demo/web/completion/package.json +++ b/demo/web/completion/package.json @@ -16,7 +16,7 @@ "author": "Picovoice Inc", "license": "Apache-2.0", "dependencies": { - "@picovoice/picollm-web": "../../binding/web" + "@picovoice/picollm-web": "~1.2.3" }, "devDependencies": { "http-server": "^14.0.0" diff --git a/demo/web/completion/yarn.lock b/demo/web/completion/yarn.lock index 040987f..a314db2 100644 --- a/demo/web/completion/yarn.lock +++ b/demo/web/completion/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@picovoice/picollm-web@~1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.2.tgz#d4f7c65d19aa53febf312198cfb153c97ad81c9b" - integrity sha512-drLxBiGvpxSH4clOY0TfHQ+XFp447VUY5oC2qjSLD4454C5H/PpB5qFpW8ejr78LvCU/cu9TKRtnnmk2fZq7Sw== +"@picovoice/picollm-web@~1.2.3": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@picovoice/picollm-web/-/picollm-web-1.2.3.tgz#765f52c55943c71dbb7c95492b93cda15e483999" + integrity sha512-QtiZTckN6UDlO5bVnR5ldhegb9h63szu4l3PknI7V4Qsz8w4AXaloRXlnOhK87oEC5Px2C56ve7+aiH9oSPcNQ== dependencies: "@picovoice/web-utils" "~1.4.3" From 1a9aafef838f7a3cd595db6e4ec772f0fb97a777 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Mon, 23 Dec 2024 13:04:18 -0800 Subject: [PATCH 7/7] Released iOS package --- .../PicoLLMAppTest.xcodeproj/project.pbxproj | 15 +++++++++-- .../PicoLLMChatDemo.xcodeproj/project.pbxproj | 25 +++++++++++++------ .../project.pbxproj | 25 +++++++++++++------ 3 files changed, 49 insertions(+), 16 deletions(-) diff --git a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj b/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj index 3bc2d42..c345d66 100644 --- a/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj +++ b/binding/ios/PicoLLMAppTest/PicoLLMAppTest.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 60; + objectVersion = 55; objects = { /* Begin PBXBuildFile section */ @@ -191,7 +191,7 @@ ); mainGroup = 1E7744A727CD9D7E00491D0B; packageReferences = ( - E1E013772D160CDE00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */, + 34B26B862D1A07B800C33299 /* XCRemoteSwiftPackageReference "picollm" */, ); productRefGroup = 1E7744B127CD9D7E00491D0B /* Products */; projectDirPath = ""; @@ -557,6 +557,17 @@ }; /* End XCLocalSwiftPackageReference section */ +/* Begin XCRemoteSwiftPackageReference section */ + 34B26B862D1A07B800C33299 /* XCRemoteSwiftPackageReference "picollm" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/picovoice/picollm"; + requirement = { + kind = exactVersion; + version = 1.2.3; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + /* Begin XCSwiftPackageProductDependency section */ E1E013782D160CE600DB0C2F /* PicoLLM */ = { isa = XCSwiftPackageProductDependency; diff --git a/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj b/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj index 0b053eb..39c6713 100644 --- a/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj +++ b/demo/ios/Chat/PicoLLMChatDemo.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 60; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -11,6 +11,7 @@ 02A1194B268D39A700A2AC99 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1194A268D39A700A2AC99 /* ContentView.swift */; }; 02A1194D268D39AB00A2AC99 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 02A1194C268D39AB00A2AC99 /* Assets.xcassets */; }; 02A1195F268D3FD600A2AC99 /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1195E268D3FD600A2AC99 /* ViewModel.swift */; }; + 34B26B822D1A069900C33299 /* PicoLLM in Frameworks */ = {isa = PBXBuildFile; productRef = 34B26B812D1A069900C33299 /* PicoLLM */; }; C789D24B2BEA8E5D005FDB10 /* LoadModelView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24A2BEA8E5D005FDB10 /* LoadModelView.swift */; }; C789D24D2BEA8EAE005FDB10 /* ChatView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24C2BEA8EAE005FDB10 /* ChatView.swift */; }; C789D2512BEAD752005FDB10 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D2502BEAD752005FDB10 /* Constants.swift */; }; @@ -35,6 +36,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 34B26B822D1A069900C33299 /* PicoLLM in Frameworks */, E1E0137E2D16114E00DB0C2F /* PicoLLM in Frameworks */, E1E013842D162B3D00DB0C2F /* PicoLLM in Frameworks */, ); @@ -119,7 +121,7 @@ ); mainGroup = 02A1193C268D39A700A2AC99; packageReferences = ( - E1E013822D162B3D00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */, + 34B26B802D1A069900C33299 /* XCRemoteSwiftPackageReference "picollm" */, ); productRefGroup = 02A11946268D39A700A2AC99 /* Products */; projectDirPath = ""; @@ -345,14 +347,23 @@ }; /* End XCConfigurationList section */ -/* Begin XCLocalSwiftPackageReference section */ - E1E013822D162B3D00DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */ = { - isa = XCLocalSwiftPackageReference; - relativePath = ../../../../picollm; +/* Begin XCRemoteSwiftPackageReference section */ + 34B26B802D1A069900C33299 /* XCRemoteSwiftPackageReference "picollm" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/picovoice/picollm"; + requirement = { + kind = exactVersion; + version = 1.2.3; + }; }; -/* End XCLocalSwiftPackageReference section */ +/* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ + 34B26B812D1A069900C33299 /* PicoLLM */ = { + isa = XCSwiftPackageProductDependency; + package = 34B26B802D1A069900C33299 /* XCRemoteSwiftPackageReference "picollm" */; + productName = PicoLLM; + }; E1E0137D2D16114E00DB0C2F /* PicoLLM */ = { isa = XCSwiftPackageProductDependency; productName = PicoLLM; diff --git a/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj b/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj index a78961b..e86001b 100644 --- a/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj +++ b/demo/ios/Completion/PicoLLMCompletionDemo.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 60; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -11,6 +11,7 @@ 02A1194B268D39A700A2AC99 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1194A268D39A700A2AC99 /* ContentView.swift */; }; 02A1194D268D39AB00A2AC99 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 02A1194C268D39AB00A2AC99 /* Assets.xcassets */; }; 02A1195F268D3FD600A2AC99 /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1195E268D3FD600A2AC99 /* ViewModel.swift */; }; + 34B26B852D1A070E00C33299 /* PicoLLM in Frameworks */ = {isa = PBXBuildFile; productRef = 34B26B842D1A070E00C33299 /* PicoLLM */; }; C789D2492BEA8D26005FDB10 /* SidebarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D2482BEA8D26005FDB10 /* SidebarView.swift */; }; C789D24B2BEA8E5D005FDB10 /* LoadModelView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24A2BEA8E5D005FDB10 /* LoadModelView.swift */; }; C789D24D2BEA8EAE005FDB10 /* CompletionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C789D24C2BEA8EAE005FDB10 /* CompletionView.swift */; }; @@ -37,6 +38,7 @@ buildActionMask = 2147483647; files = ( E1E013812D1612E800DB0C2F /* PicoLLM in Frameworks */, + 34B26B852D1A070E00C33299 /* PicoLLM in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -119,7 +121,7 @@ ); mainGroup = 02A1193C268D39A700A2AC99; packageReferences = ( - E1E0137F2D1612E800DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */, + 34B26B832D1A070E00C33299 /* XCRemoteSwiftPackageReference "picollm" */, ); productRefGroup = 02A11946268D39A700A2AC99 /* Products */; projectDirPath = ""; @@ -342,14 +344,23 @@ }; /* End XCConfigurationList section */ -/* Begin XCLocalSwiftPackageReference section */ - E1E0137F2D1612E800DB0C2F /* XCLocalSwiftPackageReference "../../../../picollm" */ = { - isa = XCLocalSwiftPackageReference; - relativePath = ../../../../picollm; +/* Begin XCRemoteSwiftPackageReference section */ + 34B26B832D1A070E00C33299 /* XCRemoteSwiftPackageReference "picollm" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/picovoice/picollm"; + requirement = { + kind = exactVersion; + version = 1.2.3; + }; }; -/* End XCLocalSwiftPackageReference section */ +/* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ + 34B26B842D1A070E00C33299 /* PicoLLM */ = { + isa = XCSwiftPackageProductDependency; + package = 34B26B832D1A070E00C33299 /* XCRemoteSwiftPackageReference "picollm" */; + productName = PicoLLM; + }; E1E013802D1612E800DB0C2F /* PicoLLM */ = { isa = XCSwiftPackageProductDependency; productName = PicoLLM;