react-native-nobodywho 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,7 @@
2
2
  <!-- Generated by uniffi-bindgen-react-native -->
3
3
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  package="ooo.nobodywho">
5
- </manifest>
5
+ <application>
6
+ <uses-native-library android:name="libOpenCL.so" android:required="false" />
7
+ </application>
8
+ </manifest>
@@ -1,3 +1,6 @@
1
1
  <!-- Generated by uniffi-bindgen-react-native -->
2
2
  <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <application>
4
+ <uses-native-library android:name="libOpenCL.so" android:required="false" />
5
+ </application>
3
6
  </manifest>
@@ -152,7 +152,9 @@ export function getCachedModels(): Array<CachedModel> /*throws*/ {
152
152
  *
153
153
  * Pass `draft_model_path` pointing to a compatible MTP heads gguf (e.g.
154
154
  * `mtp-gemma-4-E2B-it.gguf` for Gemma-4-E2B) to enable MTP
155
- * speculative decoding on chats built from this model. Whether MTP is
155
+ * speculative decoding on chats built from this model. For models that
156
+ * bundle MTP layers (e.g. Qwen3.5), pass the model file itself; it is only
157
+ * loaded once. Whether MTP is
156
158
  * actually used is a per-chat decision — pass it through
157
159
  * `Chat`-level config on the wrapping binding.
158
160
  *
@@ -5168,7 +5170,7 @@ function uniffiEnsureInitialized() {
5168
5170
  if (nativeModule().ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models() !== 12002) {
5169
5171
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_nobodywho_uniffi_checksum_func_get_cached_models");
5170
5172
  }
5171
- if (nativeModule().ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model() !== 22964) {
5173
+ if (nativeModule().ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model() !== 8315) {
5172
5174
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_nobodywho_uniffi_checksum_func_load_model");
5173
5175
  }
5174
5176
  if (nativeModule().ubrn_uniffi_nobodywho_uniffi_checksum_func_load_speech_to_text() !== 3224) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nobodywho",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Run LLMs locally and offline with React Native & Expo - Tool calling, RAG, Speech-to-Text, Text-to-Speech, and VAD",
5
5
  "main": "src/wrapper.ts",
6
6
  "types": "src/wrapper.ts",
package/src/model.ts CHANGED
@@ -41,7 +41,8 @@ export class Model {
41
41
  * @param opts.projectionModelPath - Path to a multimodal projector file for vision models
42
42
  * @param opts.draftModelPath - Optional MTP draft-heads gguf. Loading it lets `Chat`
43
43
  * instances opt into MTP speculative decoding via `new Chat({ ..., mtp: true })`.
44
- * Adds around 5% to VRAM usage.
44
+ * Adds around 5% to VRAM usage. For models that bundle MTP layers (e.g. Qwen3.5),
45
+ * pass the model file itself; it is only loaded once.
45
46
  * @param opts.onDownloadProgress - Invoked with `(downloaded, total)` byte counts while a remote model is being downloaded. Throttled to ~10 Hz with a guaranteed final emit on completion. Not invoked for cached/local files.
46
47
  */
47
48
  static async load(opts: {