react-native-nobodywho 3.0.0 → 5.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 +524 -80
- package/generated/cpp/nobodywho.hpp +67 -8
- package/generated/ts/nobodywho-ffi.ts +21 -5
- package/generated/ts/nobodywho.ts +978 -270
- package/package.json +7 -3
- package/src/chat.ts +50 -3
- package/src/message.ts +91 -24
- package/src/model.ts +5 -0
- package/src/prompt.ts +8 -8
- package/src/sampler_presets.ts +7 -11
- package/src/wrapper.ts +5 -3
|
@@ -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);
|
|
@@ -76,6 +79,9 @@ protected:
|
|
|
76
79
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(
|
|
77
80
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
78
81
|
size_t count);
|
|
82
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_set_context_shift(
|
|
83
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
84
|
+
size_t count);
|
|
79
85
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_set_sampler_config(
|
|
80
86
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
81
87
|
size_t count);
|
|
@@ -139,6 +145,9 @@ protected:
|
|
|
139
145
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(
|
|
140
146
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
141
147
|
size_t count);
|
|
148
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_source(
|
|
149
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
150
|
+
size_t count);
|
|
142
151
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(
|
|
143
152
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
144
153
|
size_t count);
|
|
@@ -251,18 +260,37 @@ protected:
|
|
|
251
260
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(
|
|
252
261
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
253
262
|
size_t count);
|
|
263
|
+
jsi::Value
|
|
264
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_grammar(
|
|
265
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
266
|
+
size_t count);
|
|
267
|
+
jsi::Value
|
|
268
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_json_schema(
|
|
269
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
270
|
+
size_t count);
|
|
271
|
+
jsi::Value
|
|
272
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_regex(
|
|
273
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
274
|
+
size_t count);
|
|
254
275
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dist(
|
|
255
276
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
256
277
|
size_t count);
|
|
257
278
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(
|
|
258
279
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
259
280
|
size_t count);
|
|
260
|
-
jsi::Value
|
|
281
|
+
jsi::Value
|
|
282
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
|
|
261
283
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
262
284
|
size_t count);
|
|
263
285
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
|
|
264
286
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
265
287
|
size_t count);
|
|
288
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_json(
|
|
289
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
290
|
+
size_t count);
|
|
291
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
|
|
292
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
293
|
+
size_t count);
|
|
266
294
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(
|
|
267
295
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
268
296
|
size_t count);
|
|
@@ -284,6 +312,9 @@ protected:
|
|
|
284
312
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(
|
|
285
313
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
286
314
|
size_t count);
|
|
315
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(
|
|
316
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
317
|
+
size_t count);
|
|
287
318
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(
|
|
288
319
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
289
320
|
size_t count);
|
|
@@ -352,9 +383,6 @@ protected:
|
|
|
352
383
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_dry(
|
|
353
384
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
354
385
|
size_t count);
|
|
355
|
-
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_grammar(
|
|
356
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
357
|
-
size_t count);
|
|
358
386
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_greedy(
|
|
359
387
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
360
388
|
size_t count);
|
|
@@ -554,9 +582,6 @@ protected:
|
|
|
554
582
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_dry(
|
|
555
583
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
556
584
|
size_t count);
|
|
557
|
-
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_grammar(
|
|
558
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
559
|
-
size_t count);
|
|
560
585
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_greedy(
|
|
561
586
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
562
587
|
size_t count);
|
|
@@ -584,6 +609,9 @@ protected:
|
|
|
584
609
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(
|
|
585
610
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
586
611
|
size_t count);
|
|
612
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(
|
|
613
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
614
|
+
size_t count);
|
|
587
615
|
jsi::Value
|
|
588
616
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(
|
|
589
617
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -618,6 +646,10 @@ protected:
|
|
|
618
646
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
619
647
|
size_t count);
|
|
620
648
|
jsi::Value
|
|
649
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_context_shift(
|
|
650
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
651
|
+
size_t count);
|
|
652
|
+
jsi::Value
|
|
621
653
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_sampler_config(
|
|
622
654
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
623
655
|
size_t count);
|
|
@@ -660,6 +692,9 @@ protected:
|
|
|
660
692
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(
|
|
661
693
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
662
694
|
size_t count);
|
|
695
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_source(
|
|
696
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
697
|
+
size_t count);
|
|
663
698
|
jsi::Value
|
|
664
699
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(
|
|
665
700
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -716,18 +751,38 @@ protected:
|
|
|
716
751
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(
|
|
717
752
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
718
753
|
size_t count);
|
|
754
|
+
jsi::Value
|
|
755
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_grammar(
|
|
756
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
757
|
+
size_t count);
|
|
758
|
+
jsi::Value
|
|
759
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_json_schema(
|
|
760
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
761
|
+
size_t count);
|
|
762
|
+
jsi::Value
|
|
763
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_regex(
|
|
764
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
765
|
+
size_t count);
|
|
719
766
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(
|
|
720
767
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
721
768
|
size_t count);
|
|
722
769
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(
|
|
723
770
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
724
771
|
size_t count);
|
|
725
|
-
jsi::Value
|
|
772
|
+
jsi::Value
|
|
773
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(
|
|
726
774
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
727
775
|
size_t count);
|
|
728
776
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(
|
|
729
777
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
730
778
|
size_t count);
|
|
779
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_json(
|
|
780
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
781
|
+
size_t count);
|
|
782
|
+
jsi::Value
|
|
783
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(
|
|
784
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
785
|
+
size_t count);
|
|
731
786
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(
|
|
732
787
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
733
788
|
size_t count);
|
|
@@ -753,6 +808,10 @@ protected:
|
|
|
753
808
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(
|
|
754
809
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
755
810
|
size_t count);
|
|
811
|
+
jsi::Value
|
|
812
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(
|
|
813
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
814
|
+
size_t count);
|
|
756
815
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(
|
|
757
816
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
758
817
|
size_t count);
|
|
@@ -20,10 +20,11 @@ interface NativeModuleInterface {
|
|
|
20
20
|
ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(buffer: Uint8Array, uniffi_out_err: UniffiRustCallStatus): string;
|
|
21
21
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
22
22
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
23
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: Uint8Array, mtp: Uint8Array, threadCount: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
23
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: Uint8Array, mtp: Uint8Array, threadCount: Uint8Array, contextShift: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
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;
|
|
@@ -33,6 +34,7 @@ interface NativeModuleInterface {
|
|
|
33
34
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(ptr: bigint, systemPrompt: Uint8Array, tools: Uint8Array): bigint;
|
|
34
35
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_history(ptr: bigint): bigint;
|
|
35
36
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(ptr: bigint, messages: Uint8Array): bigint;
|
|
37
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_context_shift(ptr: bigint, options: Uint8Array): bigint;
|
|
36
38
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_sampler_config(ptr: bigint, sampler: bigint): bigint;
|
|
37
39
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_system_prompt(ptr: bigint, systemPrompt: Uint8Array): bigint;
|
|
38
40
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_template_variable(ptr: bigint, name: Uint8Array, value: number): bigint;
|
|
@@ -53,6 +55,7 @@ interface NativeModuleInterface {
|
|
|
53
55
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
54
56
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
55
57
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
58
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_source(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
56
59
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
57
60
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
58
61
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustspeechtotext_new(source: Uint8Array, language: Uint8Array, quantization: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -87,10 +90,15 @@ interface NativeModuleInterface {
|
|
|
87
90
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
88
91
|
ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
89
92
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
93
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_grammar(ptr: bigint, grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
94
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_json_schema(ptr: bigint, schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
95
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_regex(ptr: bigint, pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
90
96
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dist(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
91
97
|
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;
|
|
92
|
-
|
|
98
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(ptr: bigint, temperature: number, delta: number, exponent: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
93
99
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
100
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
101
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(ptr: bigint, biases: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
94
102
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(ptr: bigint, minP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
95
103
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v1(ptr: bigint, tau: number, eta: number, m: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
96
104
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v2(ptr: bigint, tau: number, eta: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -98,6 +106,7 @@ interface NativeModuleInterface {
|
|
|
98
106
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_seed(ptr: bigint, seed: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
99
107
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_temperature(ptr: bigint, temperature: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
100
108
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(ptr: bigint, topK: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
109
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(ptr: bigint, n: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
101
110
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(ptr: bigint, topP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
102
111
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_typical_p(ptr: bigint, typP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
103
112
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_xtc(ptr: bigint, xtcProbability: number, xtcThreshold: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -119,7 +128,6 @@ interface NativeModuleInterface {
|
|
|
119
128
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
120
129
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_default(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
121
130
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_dry(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
122
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
123
131
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_greedy(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
124
132
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_json(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
125
133
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_temperature(temperature: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -185,7 +193,6 @@ interface NativeModuleInterface {
|
|
|
185
193
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
|
|
186
194
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_default(): number;
|
|
187
195
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_dry(): number;
|
|
188
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_grammar(): number;
|
|
189
196
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_greedy(): number;
|
|
190
197
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_json(): number;
|
|
191
198
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_temperature(): number;
|
|
@@ -194,6 +201,7 @@ interface NativeModuleInterface {
|
|
|
194
201
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(): number;
|
|
195
202
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(): number;
|
|
196
203
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(): number;
|
|
204
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(): number;
|
|
197
205
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(): number;
|
|
198
206
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(): number;
|
|
199
207
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
|
|
@@ -203,6 +211,7 @@ interface NativeModuleInterface {
|
|
|
203
211
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
|
|
204
212
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_history(): number;
|
|
205
213
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_chat_history(): number;
|
|
214
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_context_shift(): number;
|
|
206
215
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_sampler_config(): number;
|
|
207
216
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_system_prompt(): number;
|
|
208
217
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable(): number;
|
|
@@ -215,6 +224,7 @@ interface NativeModuleInterface {
|
|
|
215
224
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
|
|
216
225
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode_batch(): number;
|
|
217
226
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
|
|
227
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_source(): number;
|
|
218
228
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(): number;
|
|
219
229
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_pcm(): number;
|
|
220
230
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_completed(): number;
|
|
@@ -229,10 +239,15 @@ interface NativeModuleInterface {
|
|
|
229
239
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_finish(): number;
|
|
230
240
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_push(): number;
|
|
231
241
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(): number;
|
|
242
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_grammar(): number;
|
|
243
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_json_schema(): number;
|
|
244
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_regex(): number;
|
|
232
245
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
233
246
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
234
|
-
|
|
247
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(): number;
|
|
235
248
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(): number;
|
|
249
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_json(): number;
|
|
250
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(): number;
|
|
236
251
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(): number;
|
|
237
252
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v1(): number;
|
|
238
253
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v2(): number;
|
|
@@ -240,6 +255,7 @@ interface NativeModuleInterface {
|
|
|
240
255
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_seed(): number;
|
|
241
256
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_temperature(): number;
|
|
242
257
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(): number;
|
|
258
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(): number;
|
|
243
259
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(): number;
|
|
244
260
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_typical_p(): number;
|
|
245
261
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_xtc(): number;
|