react-native-nobodywho 3.0.0 → 4.0.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.
- package/README.md +113 -7
- package/android/build.gradle +5 -1
- package/generated/cpp/nobodywho.cpp +221 -0
- package/generated/cpp/nobodywho.hpp +28 -0
- package/generated/ts/nobodywho-ffi.ts +8 -0
- package/generated/ts/nobodywho.ts +606 -252
- package/package.json +7 -3
- package/src/chat.ts +35 -0
- package/src/message.ts +91 -24
- package/src/prompt.ts +8 -8
- package/src/wrapper.ts +3 -3
package/README.md
CHANGED
|
@@ -1,23 +1,56 @@
|
|
|
1
|
-
# NobodyWho React Native
|
|
1
|
+
# NobodyWho React Native / Expo
|
|
2
2
|
|
|
3
|
-
NobodyWho is a React Native library for running large language models locally and offline on iOS and Android.
|
|
3
|
+
NobodyWho is a React Native / Expo library for running large language models locally and offline on iOS and Android.
|
|
4
4
|
|
|
5
|
-
Free to use in commercial projects under the EUPL-1.2 license — no API key required. Supports text, vision, embeddings, RAG & function calling.
|
|
5
|
+
Free to use in commercial projects under the EUPL-1.2 license — no API key required. Supports text, vision, hearing, speech-to-text, text-to-speech, voice activity detection, embeddings, RAG & function calling.
|
|
6
6
|
|
|
7
7
|
- [Documentation](https://docs.nobodywho.ooo) — React Native & other frameworks documentation
|
|
8
|
-
- [
|
|
8
|
+
- [RN starter example app](https://github.com/nobodywho-ooo/react-native-starter-example) / [Expo starter example app](https://github.com/nobodywho-ooo/expo-starter-example) — Test this library in 5 minutes
|
|
9
9
|
- [Discord](https://discord.gg/qhaMc2qCYB) — Get help, share ideas, and connect with other developers
|
|
10
10
|
- [GitHub Issues](https://github.com/nobodywho-ooo/nobodywho/issues) — Report bugs
|
|
11
11
|
- [GitHub Discussions](https://github.com/nobodywho-ooo/nobodywho/discussions) — Ask questions and request features
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## How do I get started?
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
First, install `react-native-nobodywho`.
|
|
16
|
+
```bash
|
|
17
|
+
# React Native
|
|
18
|
+
npm install react-native-nobodywho
|
|
19
|
+
# Expo
|
|
20
|
+
npx expo install react-native-nobodywho
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### React Native
|
|
24
|
+
|
|
25
|
+
No additional initialization step is required — the native module is loaded automatically when you first import from the package.
|
|
26
|
+
|
|
27
|
+
### Expo
|
|
28
|
+
|
|
29
|
+
NobodyWho ships native code, so it does **not** run in [Expo Go](https://docs.expo.dev/get-started/set-up-your-environment/). You need a [development build](https://docs.expo.dev/develop/development-builds/introduction/).
|
|
30
|
+
|
|
31
|
+
#### • Continuous Native Generation (CNG) projects
|
|
16
32
|
|
|
33
|
+
In a managed project, `ios/` and `android/` are not committed. For the **first build**, run the command for the platform you are targeting (`run:ios` and `run:android` are alternatives — pick your target). It runs prebuild automatically since the native folders don't exist yet, installs pods, and builds NobodyWho in:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx expo run:ios
|
|
37
|
+
# or
|
|
38
|
+
npx expo run:android
|
|
17
39
|
```
|
|
18
|
-
|
|
40
|
+
|
|
41
|
+
After you **upgrade** NobodyWho (or any other native dependency), the native folders already exist, so `run:*` would build against stale native code. Regenerate them from scratch, then rebuild:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx expo prebuild --clean # regenerate ios/ and android/ from scratch
|
|
45
|
+
npx expo run:ios # then rebuild (or run:android)
|
|
19
46
|
```
|
|
20
47
|
|
|
48
|
+
#### • Bare projects
|
|
49
|
+
|
|
50
|
+
Here `ios/` and `android/` are committed. Autolinking registers the module on your next native build — just rebuild with `expo run:*` (or your existing native build). Do not run `prebuild --clean` here unless you intend to regenerate the native folders, since it overwrites manual native edits.
|
|
51
|
+
|
|
52
|
+
You can also build with [EAS Build](https://docs.expo.dev/build/introduction/) instead of building locally. No config plugin is required.
|
|
53
|
+
|
|
21
54
|
## Supported Model Format
|
|
22
55
|
|
|
23
56
|
This library uses the **GGUF format** — a binary format optimized for fast loading and efficient LLM inference. A wide selection of GGUF models is available on [Hugging Face](https://huggingface.co/models).
|
|
@@ -152,3 +185,76 @@ const response = await chat
|
|
|
152
185
|
You can pass multiple images/audio files and interleave text between them. If the model performs poorly, try reordering the text, audio and image parts — this can make a noticeable difference. If images consume too much context, increase `contextSize` or preprocess images with compression.
|
|
153
186
|
|
|
154
187
|
See the [Vision & Hearing documentation](https://docs.nobodywho.ooo/react-native/vision/) for model recommendations and advanced tips.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Speech to Text
|
|
192
|
+
|
|
193
|
+
Transcribe spoken audio into text using Whisper models in ONNX format:
|
|
194
|
+
|
|
195
|
+
```typescript
|
|
196
|
+
import { SpeechToText } from "react-native-nobodywho";
|
|
197
|
+
|
|
198
|
+
const stt = await SpeechToText.load({
|
|
199
|
+
source: "hf://onnx-community/whisper-base",
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
const text = await stt.transcribeFile("recording.mp3").completed();
|
|
203
|
+
console.log(text);
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
You can also transcribe raw PCM buffers with `transcribePcm`, and stream the transcription token by token.
|
|
207
|
+
|
|
208
|
+
See the [Speech to Text documentation](https://docs.nobodywho.ooo/react-native/speech-to-text/) for more.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Text to Speech
|
|
213
|
+
|
|
214
|
+
Generate natural-sounding speech from text, ready to save as a WAV file or play back in your app:
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
import { TextToSpeech } from "react-native-nobodywho";
|
|
218
|
+
|
|
219
|
+
const tts = await TextToSpeech.load({
|
|
220
|
+
source: "hf://NobodyWho/Kokoro-82M", // Hugging Face repo or local folder.
|
|
221
|
+
voice: "bf_emma", // Voice to use from the model.
|
|
222
|
+
language: "en-gb", // Language code for the input text.
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
const wav = await tts.synthesize("Hello from NobodyWho!");
|
|
226
|
+
// wav is a Uint8Array containing WAV bytes.
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
NobodyWho supports the Kokoro, Pocket TTS, and Supertonic speech synthesis architectures.
|
|
230
|
+
|
|
231
|
+
See the [Text to Speech documentation](https://docs.nobodywho.ooo/react-native/text-to-speech/) for more.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Voice Activity Detection
|
|
236
|
+
|
|
237
|
+
Detect speech automatically in an audio stream, so you know when to stop listening to the microphone and start transcribing:
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
import {
|
|
241
|
+
VoiceActivityDetection,
|
|
242
|
+
VoiceActivityDetectionEvent,
|
|
243
|
+
} from "react-native-nobodywho";
|
|
244
|
+
|
|
245
|
+
const vad = await VoiceActivityDetection.load({
|
|
246
|
+
sampleRate: 16000,
|
|
247
|
+
source: "hf://onnx-community/silero-vad",
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
while (true) {
|
|
251
|
+
const chunk = readMic();
|
|
252
|
+
if (vad.push(chunk) === VoiceActivityDetectionEvent.SpeechEnded) break;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
const speech = vad.finish(); // buffered speech, ready to pass to SpeechToText
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
You can also segment speech out of an existing recording with `segment()`.
|
|
259
|
+
|
|
260
|
+
See the [Voice Activity Detection documentation](https://docs.nobodywho.ooo/react-native/voice-activity-detection/) for more.
|
package/android/build.gradle
CHANGED
|
@@ -70,7 +70,11 @@ task resolveNativeLibraries {
|
|
|
70
70
|
description = "Downloads NobodyWho native shared libraries from GitHub Releases"
|
|
71
71
|
|
|
72
72
|
doLast {
|
|
73
|
-
|
|
73
|
+
// Honor reactNativeArchitectures (the standard RN convention for
|
|
74
|
+
// restricting which ABIs a build needs) so a consumer building
|
|
75
|
+
// arm64-v8a-only never triggers an x86_64 download it doesn't need.
|
|
76
|
+
def wantedAbis = reactNativeArchitectures().toList()
|
|
77
|
+
abiToTriple.findAll { abi, triple -> wantedAbis.contains(abi) }.each { abi, triple ->
|
|
74
78
|
def abiDir = new File(nativeLibsDir, abi)
|
|
75
79
|
def libFile = new File(abiDir, "libnobodywho_uniffi.so")
|
|
76
80
|
|
|
@@ -128,6 +128,9 @@ uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(
|
|
|
128
128
|
/*handle*/ uint64_t ptr, RustBuffer json, RustCallStatus *uniffi_out_err);
|
|
129
129
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(
|
|
130
130
|
/*handle*/ uint64_t ptr, RustBuffer parts, RustCallStatus *uniffi_out_err);
|
|
131
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_rustchat_complete(
|
|
132
|
+
/*handle*/ uint64_t ptr, RustBuffer messages, RustBuffer options,
|
|
133
|
+
RustCallStatus *uniffi_out_err);
|
|
131
134
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(
|
|
132
135
|
/*handle*/ uint64_t ptr);
|
|
133
136
|
/*handle*/ uint64_t
|
|
@@ -293,11 +296,17 @@ void uniffi_nobodywho_uniffi_fn_free_samplerbuilder(
|
|
|
293
296
|
/*handle*/ uint64_t ptr, float multiplier, float base,
|
|
294
297
|
int32_t allowed_length, int32_t penalty_last_n, RustBuffer seq_breakers,
|
|
295
298
|
RustCallStatus *uniffi_out_err);
|
|
299
|
+
/*handle*/ uint64_t
|
|
300
|
+
uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
|
|
301
|
+
/*handle*/ uint64_t ptr, float temperature, float delta, float exponent,
|
|
302
|
+
RustCallStatus *uniffi_out_err);
|
|
296
303
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_samplerbuilder_grammar(
|
|
297
304
|
/*handle*/ uint64_t ptr, RustBuffer grammar, RustBuffer trigger_on,
|
|
298
305
|
RustBuffer root, RustCallStatus *uniffi_out_err);
|
|
299
306
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
|
|
300
307
|
/*handle*/ uint64_t ptr, RustCallStatus *uniffi_out_err);
|
|
308
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
|
|
309
|
+
/*handle*/ uint64_t ptr, RustBuffer biases, RustCallStatus *uniffi_out_err);
|
|
301
310
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(
|
|
302
311
|
/*handle*/ uint64_t ptr, float min_p, uint32_t min_keep,
|
|
303
312
|
RustCallStatus *uniffi_out_err);
|
|
@@ -319,6 +328,9 @@ uniffi_nobodywho_uniffi_fn_method_samplerbuilder_temperature(
|
|
|
319
328
|
/*handle*/ uint64_t ptr, float temperature, RustCallStatus *uniffi_out_err);
|
|
320
329
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(
|
|
321
330
|
/*handle*/ uint64_t ptr, int32_t top_k, RustCallStatus *uniffi_out_err);
|
|
331
|
+
/*handle*/ uint64_t
|
|
332
|
+
uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(
|
|
333
|
+
/*handle*/ uint64_t ptr, float n, RustCallStatus *uniffi_out_err);
|
|
322
334
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(
|
|
323
335
|
/*handle*/ uint64_t ptr, float top_p, uint32_t min_keep,
|
|
324
336
|
RustCallStatus *uniffi_out_err);
|
|
@@ -531,6 +543,7 @@ uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_ask();
|
|
|
531
543
|
uint16_t
|
|
532
544
|
uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt();
|
|
533
545
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt();
|
|
546
|
+
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_complete();
|
|
534
547
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history();
|
|
535
548
|
uint16_t
|
|
536
549
|
uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json();
|
|
@@ -582,8 +595,11 @@ uint16_t
|
|
|
582
595
|
uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment();
|
|
583
596
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist();
|
|
584
597
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry();
|
|
598
|
+
uint16_t
|
|
599
|
+
uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature();
|
|
585
600
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar();
|
|
586
601
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy();
|
|
602
|
+
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias();
|
|
587
603
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p();
|
|
588
604
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v1();
|
|
589
605
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v2();
|
|
@@ -591,6 +607,7 @@ uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_penalties();
|
|
|
591
607
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_seed();
|
|
592
608
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_temperature();
|
|
593
609
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k();
|
|
610
|
+
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma();
|
|
594
611
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p();
|
|
595
612
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_typical_p();
|
|
596
613
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_xtc();
|
|
@@ -2829,6 +2846,18 @@ NativeNobodywho::NativeNobodywho(
|
|
|
2829
2846
|
->cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(
|
|
2830
2847
|
rt, thisVal, args, count);
|
|
2831
2848
|
});
|
|
2849
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_complete"] =
|
|
2850
|
+
jsi::Function::createFromHostFunction(
|
|
2851
|
+
rt,
|
|
2852
|
+
jsi::PropNameID::forAscii(
|
|
2853
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_complete"),
|
|
2854
|
+
3,
|
|
2855
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2856
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2857
|
+
return this
|
|
2858
|
+
->cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_complete(
|
|
2859
|
+
rt, thisVal, args, count);
|
|
2860
|
+
});
|
|
2832
2861
|
props["ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history"] =
|
|
2833
2862
|
jsi::Function::createFromHostFunction(
|
|
2834
2863
|
rt,
|
|
@@ -3602,6 +3631,18 @@ NativeNobodywho::NativeNobodywho(
|
|
|
3602
3631
|
->cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(
|
|
3603
3632
|
rt, thisVal, args, count);
|
|
3604
3633
|
});
|
|
3634
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_"
|
|
3635
|
+
"temperature"] = jsi::Function::createFromHostFunction(
|
|
3636
|
+
rt,
|
|
3637
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_fn_method_"
|
|
3638
|
+
"samplerbuilder_dynamic_temperature"),
|
|
3639
|
+
4,
|
|
3640
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3641
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3642
|
+
return this
|
|
3643
|
+
->cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
|
|
3644
|
+
rt, thisVal, args, count);
|
|
3645
|
+
});
|
|
3605
3646
|
props["ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_grammar"] =
|
|
3606
3647
|
jsi::Function::createFromHostFunction(
|
|
3607
3648
|
rt,
|
|
@@ -3628,6 +3669,18 @@ NativeNobodywho::NativeNobodywho(
|
|
|
3628
3669
|
->cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
|
|
3629
3670
|
rt, thisVal, args, count);
|
|
3630
3671
|
});
|
|
3672
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias"] =
|
|
3673
|
+
jsi::Function::createFromHostFunction(
|
|
3674
|
+
rt,
|
|
3675
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_fn_"
|
|
3676
|
+
"method_samplerbuilder_logit_bias"),
|
|
3677
|
+
2,
|
|
3678
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3679
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3680
|
+
return this
|
|
3681
|
+
->cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
|
|
3682
|
+
rt, thisVal, args, count);
|
|
3683
|
+
});
|
|
3631
3684
|
props["ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p"] =
|
|
3632
3685
|
jsi::Function::createFromHostFunction(
|
|
3633
3686
|
rt,
|
|
@@ -3714,6 +3767,18 @@ NativeNobodywho::NativeNobodywho(
|
|
|
3714
3767
|
->cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(
|
|
3715
3768
|
rt, thisVal, args, count);
|
|
3716
3769
|
});
|
|
3770
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma"] =
|
|
3771
|
+
jsi::Function::createFromHostFunction(
|
|
3772
|
+
rt,
|
|
3773
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_fn_"
|
|
3774
|
+
"method_samplerbuilder_top_n_sigma"),
|
|
3775
|
+
2,
|
|
3776
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3777
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3778
|
+
return this
|
|
3779
|
+
->cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(
|
|
3780
|
+
rt, thisVal, args, count);
|
|
3781
|
+
});
|
|
3717
3782
|
props["ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p"] =
|
|
3718
3783
|
jsi::Function::createFromHostFunction(
|
|
3719
3784
|
rt,
|
|
@@ -4826,6 +4891,19 @@ NativeNobodywho::NativeNobodywho(
|
|
|
4826
4891
|
->cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(
|
|
4827
4892
|
rt, thisVal, args, count);
|
|
4828
4893
|
});
|
|
4894
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete"] =
|
|
4895
|
+
jsi::Function::createFromHostFunction(
|
|
4896
|
+
rt,
|
|
4897
|
+
jsi::PropNameID::forAscii(
|
|
4898
|
+
rt,
|
|
4899
|
+
"ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete"),
|
|
4900
|
+
0,
|
|
4901
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4902
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4903
|
+
return this
|
|
4904
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(
|
|
4905
|
+
rt, thisVal, args, count);
|
|
4906
|
+
});
|
|
4829
4907
|
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_"
|
|
4830
4908
|
"history"] = jsi::Function::createFromHostFunction(
|
|
4831
4909
|
rt,
|
|
@@ -5277,6 +5355,19 @@ NativeNobodywho::NativeNobodywho(
|
|
|
5277
5355
|
->cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(
|
|
5278
5356
|
rt, thisVal, args, count);
|
|
5279
5357
|
});
|
|
5358
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_"
|
|
5359
|
+
"temperature"] = jsi::Function::createFromHostFunction(
|
|
5360
|
+
rt,
|
|
5361
|
+
jsi::PropNameID::forAscii(rt,
|
|
5362
|
+
"ubrn_uniffi_nobodywho_uniffi_checksum_method_"
|
|
5363
|
+
"samplerbuilder_dynamic_temperature"),
|
|
5364
|
+
0,
|
|
5365
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5366
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5367
|
+
return this
|
|
5368
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(
|
|
5369
|
+
rt, thisVal, args, count);
|
|
5370
|
+
});
|
|
5280
5371
|
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar"] =
|
|
5281
5372
|
jsi::Function::createFromHostFunction(
|
|
5282
5373
|
rt,
|
|
@@ -5301,6 +5392,18 @@ NativeNobodywho::NativeNobodywho(
|
|
|
5301
5392
|
->cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(
|
|
5302
5393
|
rt, thisVal, args, count);
|
|
5303
5394
|
});
|
|
5395
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_"
|
|
5396
|
+
"bias"] = jsi::Function::createFromHostFunction(
|
|
5397
|
+
rt,
|
|
5398
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
5399
|
+
"method_samplerbuilder_logit_bias"),
|
|
5400
|
+
0,
|
|
5401
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5402
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5403
|
+
return this
|
|
5404
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(
|
|
5405
|
+
rt, thisVal, args, count);
|
|
5406
|
+
});
|
|
5304
5407
|
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p"] =
|
|
5305
5408
|
jsi::Function::createFromHostFunction(
|
|
5306
5409
|
rt,
|
|
@@ -5385,6 +5488,18 @@ NativeNobodywho::NativeNobodywho(
|
|
|
5385
5488
|
->cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(
|
|
5386
5489
|
rt, thisVal, args, count);
|
|
5387
5490
|
});
|
|
5491
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_"
|
|
5492
|
+
"sigma"] = jsi::Function::createFromHostFunction(
|
|
5493
|
+
rt,
|
|
5494
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
5495
|
+
"method_samplerbuilder_top_n_sigma"),
|
|
5496
|
+
0,
|
|
5497
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5498
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5499
|
+
return this
|
|
5500
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(
|
|
5501
|
+
rt, thisVal, args, count);
|
|
5502
|
+
});
|
|
5388
5503
|
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p"] =
|
|
5389
5504
|
jsi::Function::createFromHostFunction(
|
|
5390
5505
|
rt,
|
|
@@ -6103,6 +6218,24 @@ NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(
|
|
|
6103
6218
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
6104
6219
|
value);
|
|
6105
6220
|
}
|
|
6221
|
+
jsi::Value
|
|
6222
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_complete(
|
|
6223
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6224
|
+
size_t count) {
|
|
6225
|
+
RustCallStatus status =
|
|
6226
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
6227
|
+
auto value = uniffi_nobodywho_uniffi_fn_method_rustchat_complete(
|
|
6228
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
6229
|
+
args[0]),
|
|
6230
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
6231
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
|
|
6232
|
+
&status);
|
|
6233
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
6234
|
+
rt, callInvoker, status, args[count - 1]);
|
|
6235
|
+
|
|
6236
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
6237
|
+
value);
|
|
6238
|
+
}
|
|
6106
6239
|
jsi::Value NativeNobodywho::
|
|
6107
6240
|
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(
|
|
6108
6241
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -7075,6 +7208,26 @@ NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(
|
|
|
7075
7208
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7076
7209
|
value);
|
|
7077
7210
|
}
|
|
7211
|
+
jsi::Value NativeNobodywho::
|
|
7212
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
|
|
7213
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7214
|
+
size_t count) {
|
|
7215
|
+
RustCallStatus status =
|
|
7216
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7217
|
+
auto value =
|
|
7218
|
+
uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
|
|
7219
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
7220
|
+
args[0]),
|
|
7221
|
+
uniffi_jsi::Bridging<float>::fromJs(rt, callInvoker, args[1]),
|
|
7222
|
+
uniffi_jsi::Bridging<float>::fromJs(rt, callInvoker, args[2]),
|
|
7223
|
+
uniffi_jsi::Bridging<float>::fromJs(rt, callInvoker, args[3]),
|
|
7224
|
+
&status);
|
|
7225
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
7226
|
+
rt, callInvoker, status, args[count - 1]);
|
|
7227
|
+
|
|
7228
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7229
|
+
value);
|
|
7230
|
+
}
|
|
7078
7231
|
jsi::Value
|
|
7079
7232
|
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_grammar(
|
|
7080
7233
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -7110,6 +7263,23 @@ NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
|
|
|
7110
7263
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7111
7264
|
value);
|
|
7112
7265
|
}
|
|
7266
|
+
jsi::Value NativeNobodywho::
|
|
7267
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
|
|
7268
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7269
|
+
size_t count) {
|
|
7270
|
+
RustCallStatus status =
|
|
7271
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7272
|
+
auto value = uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
|
|
7273
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
7274
|
+
args[0]),
|
|
7275
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7276
|
+
&status);
|
|
7277
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
7278
|
+
rt, callInvoker, status, args[count - 1]);
|
|
7279
|
+
|
|
7280
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7281
|
+
value);
|
|
7282
|
+
}
|
|
7113
7283
|
jsi::Value
|
|
7114
7284
|
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(
|
|
7115
7285
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -7231,6 +7401,22 @@ NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(
|
|
|
7231
7401
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7232
7402
|
value);
|
|
7233
7403
|
}
|
|
7404
|
+
jsi::Value NativeNobodywho::
|
|
7405
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(
|
|
7406
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7407
|
+
size_t count) {
|
|
7408
|
+
RustCallStatus status =
|
|
7409
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7410
|
+
auto value = uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(
|
|
7411
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
7412
|
+
args[0]),
|
|
7413
|
+
uniffi_jsi::Bridging<float>::fromJs(rt, callInvoker, args[1]), &status);
|
|
7414
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
7415
|
+
rt, callInvoker, status, args[count - 1]);
|
|
7416
|
+
|
|
7417
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7418
|
+
value);
|
|
7419
|
+
}
|
|
7234
7420
|
jsi::Value
|
|
7235
7421
|
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(
|
|
7236
7422
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -8357,6 +8543,14 @@ jsi::Value NativeNobodywho::
|
|
|
8357
8543
|
|
|
8358
8544
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8359
8545
|
}
|
|
8546
|
+
jsi::Value
|
|
8547
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(
|
|
8548
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8549
|
+
size_t count) {
|
|
8550
|
+
auto value = uniffi_nobodywho_uniffi_checksum_method_rustchat_complete();
|
|
8551
|
+
|
|
8552
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8553
|
+
}
|
|
8360
8554
|
jsi::Value NativeNobodywho::
|
|
8361
8555
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(
|
|
8362
8556
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -8680,6 +8874,15 @@ NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(
|
|
|
8680
8874
|
|
|
8681
8875
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8682
8876
|
}
|
|
8877
|
+
jsi::Value NativeNobodywho::
|
|
8878
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(
|
|
8879
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8880
|
+
size_t count) {
|
|
8881
|
+
auto value =
|
|
8882
|
+
uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature();
|
|
8883
|
+
|
|
8884
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8885
|
+
}
|
|
8683
8886
|
jsi::Value NativeNobodywho::
|
|
8684
8887
|
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(
|
|
8685
8888
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -8696,6 +8899,15 @@ jsi::Value NativeNobodywho::
|
|
|
8696
8899
|
|
|
8697
8900
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8698
8901
|
}
|
|
8902
|
+
jsi::Value NativeNobodywho::
|
|
8903
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(
|
|
8904
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8905
|
+
size_t count) {
|
|
8906
|
+
auto value =
|
|
8907
|
+
uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias();
|
|
8908
|
+
|
|
8909
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8910
|
+
}
|
|
8699
8911
|
jsi::Value NativeNobodywho::
|
|
8700
8912
|
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(
|
|
8701
8913
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -8756,6 +8968,15 @@ jsi::Value NativeNobodywho::
|
|
|
8756
8968
|
|
|
8757
8969
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8758
8970
|
}
|
|
8971
|
+
jsi::Value NativeNobodywho::
|
|
8972
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(
|
|
8973
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8974
|
+
size_t count) {
|
|
8975
|
+
auto value =
|
|
8976
|
+
uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma();
|
|
8977
|
+
|
|
8978
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8979
|
+
}
|
|
8759
8980
|
jsi::Value NativeNobodywho::
|
|
8760
8981
|
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(
|
|
8761
8982
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -47,6 +47,9 @@ protected:
|
|
|
47
47
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(
|
|
48
48
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
49
49
|
size_t count);
|
|
50
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_complete(
|
|
51
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
52
|
+
size_t count);
|
|
50
53
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(
|
|
51
54
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
52
55
|
size_t count);
|
|
@@ -257,12 +260,19 @@ protected:
|
|
|
257
260
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(
|
|
258
261
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
259
262
|
size_t count);
|
|
263
|
+
jsi::Value
|
|
264
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
|
|
265
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
266
|
+
size_t count);
|
|
260
267
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_grammar(
|
|
261
268
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
262
269
|
size_t count);
|
|
263
270
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
|
|
264
271
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
265
272
|
size_t count);
|
|
273
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
|
|
274
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
275
|
+
size_t count);
|
|
266
276
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(
|
|
267
277
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
268
278
|
size_t count);
|
|
@@ -284,6 +294,9 @@ protected:
|
|
|
284
294
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(
|
|
285
295
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
286
296
|
size_t count);
|
|
297
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(
|
|
298
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
299
|
+
size_t count);
|
|
287
300
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(
|
|
288
301
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
289
302
|
size_t count);
|
|
@@ -584,6 +597,9 @@ protected:
|
|
|
584
597
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(
|
|
585
598
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
586
599
|
size_t count);
|
|
600
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(
|
|
601
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
602
|
+
size_t count);
|
|
587
603
|
jsi::Value
|
|
588
604
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(
|
|
589
605
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -722,12 +738,20 @@ protected:
|
|
|
722
738
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(
|
|
723
739
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
724
740
|
size_t count);
|
|
741
|
+
jsi::Value
|
|
742
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(
|
|
743
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
744
|
+
size_t count);
|
|
725
745
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(
|
|
726
746
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
727
747
|
size_t count);
|
|
728
748
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(
|
|
729
749
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
730
750
|
size_t count);
|
|
751
|
+
jsi::Value
|
|
752
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(
|
|
753
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
754
|
+
size_t count);
|
|
731
755
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(
|
|
732
756
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
733
757
|
size_t count);
|
|
@@ -753,6 +777,10 @@ protected:
|
|
|
753
777
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(
|
|
754
778
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
755
779
|
size_t count);
|
|
780
|
+
jsi::Value
|
|
781
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(
|
|
782
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
783
|
+
size_t count);
|
|
756
784
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(
|
|
757
785
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
758
786
|
size_t count);
|
|
@@ -24,6 +24,7 @@ interface NativeModuleInterface {
|
|
|
24
24
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask(ptr: bigint, message: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
25
25
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(ptr: bigint, json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
26
26
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(ptr: bigint, parts: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
27
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_complete(ptr: bigint, messages: Uint8Array, options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
27
28
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(ptr: bigint): bigint;
|
|
28
29
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_sampler_config_json(ptr: bigint): bigint;
|
|
29
30
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(ptr: bigint): bigint;
|
|
@@ -89,8 +90,10 @@ interface NativeModuleInterface {
|
|
|
89
90
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
90
91
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dist(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
91
92
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(ptr: bigint, multiplier: number, base: number, allowedLength: number, penaltyLastN: number, seqBreakers: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
93
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(ptr: bigint, temperature: number, delta: number, exponent: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
92
94
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_grammar(ptr: bigint, grammar: Uint8Array, triggerOn: Uint8Array, root: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
93
95
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
96
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(ptr: bigint, biases: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
94
97
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(ptr: bigint, minP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
95
98
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v1(ptr: bigint, tau: number, eta: number, m: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
96
99
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v2(ptr: bigint, tau: number, eta: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -98,6 +101,7 @@ interface NativeModuleInterface {
|
|
|
98
101
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_seed(ptr: bigint, seed: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
99
102
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_temperature(ptr: bigint, temperature: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
100
103
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(ptr: bigint, topK: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
104
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(ptr: bigint, n: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
101
105
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(ptr: bigint, topP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
102
106
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_typical_p(ptr: bigint, typP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
103
107
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_xtc(ptr: bigint, xtcProbability: number, xtcThreshold: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -194,6 +198,7 @@ interface NativeModuleInterface {
|
|
|
194
198
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(): number;
|
|
195
199
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(): number;
|
|
196
200
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(): number;
|
|
201
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(): number;
|
|
197
202
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(): number;
|
|
198
203
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(): number;
|
|
199
204
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
|
|
@@ -231,8 +236,10 @@ interface NativeModuleInterface {
|
|
|
231
236
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(): number;
|
|
232
237
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
233
238
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
239
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(): number;
|
|
234
240
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(): number;
|
|
235
241
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(): number;
|
|
242
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(): number;
|
|
236
243
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(): number;
|
|
237
244
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v1(): number;
|
|
238
245
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v2(): number;
|
|
@@ -240,6 +247,7 @@ interface NativeModuleInterface {
|
|
|
240
247
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_seed(): number;
|
|
241
248
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_temperature(): number;
|
|
242
249
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(): number;
|
|
250
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(): number;
|
|
243
251
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(): number;
|
|
244
252
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_typical_p(): number;
|
|
245
253
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_xtc(): number;
|