diff --git a/android/build.gradle b/android/build.gradle index 3a66358cf..c14886c46 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -103,7 +103,7 @@ dependencies { implementation "com.facebook.react:react-android:+" implementation 'org.opencv:opencv:4.10.0' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation("com.github.software-mansion:react-native-executorch:v0.4.9") + implementation("com.github.software-mansion-labs:react-native-executorch:v0.4.10") implementation 'org.opencv:opencv:4.10.0' implementation("com.squareup.okhttp3:okhttp:4.9.2") } diff --git a/package.json b/package.json index ca4b6d33c..e41e69715 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-executorch", - "version": "0.4.9", + "version": "0.4.10", "description": "An easy way to run AI models in react native with ExecuTorch", "source": "./src/index.ts", "main": "./lib/commonjs/index.js", diff --git a/src/controllers/LLMController.ts b/src/controllers/LLMController.ts index 622081ad3..f4b6b8507 100644 --- a/src/controllers/LLMController.ts +++ b/src/controllers/LLMController.ts @@ -284,7 +284,7 @@ export class LLMController { const template = new Template(tokenizerConfig.chat_template); const specialTokens = Object.fromEntries( - Object.keys(SPECIAL_TOKENS) + Object.values(SPECIAL_TOKENS) .filter((key) => key in tokenizerConfig) .map((key) => [key, tokenizerConfig[key]]) );