react-native-nobodywho 2.3.0 → 2.5.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/generated/cpp/nobodywho.cpp +1031 -5
- package/generated/cpp/nobodywho.hpp +126 -0
- package/generated/ts/nobodywho-ffi.ts +41 -2
- package/generated/ts/nobodywho.ts +962 -13
- package/package.json +1 -1
- package/src/chat.ts +38 -1
- package/src/message.ts +1 -1
- package/src/model.ts +14 -1
- package/src/prompt.ts +15 -1
- package/src/stt.ts +69 -0
- package/src/tts.ts +87 -0
- package/src/wrapper.ts +25 -4
|
@@ -40,6 +40,10 @@ protected:
|
|
|
40
40
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask(
|
|
41
41
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
42
42
|
size_t count);
|
|
43
|
+
jsi::Value
|
|
44
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(
|
|
45
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
46
|
+
size_t count);
|
|
43
47
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(
|
|
44
48
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
45
49
|
size_t count);
|
|
@@ -50,6 +54,9 @@ protected:
|
|
|
50
54
|
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_sampler_config_json(
|
|
51
55
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
52
56
|
size_t count);
|
|
57
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(
|
|
58
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
59
|
+
size_t count);
|
|
53
60
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_system_prompt(
|
|
54
61
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
55
62
|
size_t count);
|
|
@@ -57,6 +64,9 @@ protected:
|
|
|
57
64
|
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_template_variables(
|
|
58
65
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
59
66
|
size_t count);
|
|
67
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_mtp_acceptance_rate(
|
|
68
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
69
|
+
size_t count);
|
|
60
70
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(
|
|
61
71
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
62
72
|
size_t count);
|
|
@@ -82,6 +92,13 @@ protected:
|
|
|
82
92
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(
|
|
83
93
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
84
94
|
size_t count);
|
|
95
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize(
|
|
96
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
97
|
+
size_t count);
|
|
98
|
+
jsi::Value
|
|
99
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize_with_prompt(
|
|
100
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
101
|
+
size_t count);
|
|
85
102
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(
|
|
86
103
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
87
104
|
size_t count);
|
|
@@ -116,6 +133,36 @@ protected:
|
|
|
116
133
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustmodel(
|
|
117
134
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
118
135
|
size_t count);
|
|
136
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(
|
|
137
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
138
|
+
size_t count);
|
|
139
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_ruststt(
|
|
140
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
141
|
+
size_t count);
|
|
142
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_ruststt(
|
|
143
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
144
|
+
size_t count);
|
|
145
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_ruststt_new(
|
|
146
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
147
|
+
size_t count);
|
|
148
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_file(
|
|
149
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
150
|
+
size_t count);
|
|
151
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_pcm(
|
|
152
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
153
|
+
size_t count);
|
|
154
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_ruststtstream(
|
|
155
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
156
|
+
size_t count);
|
|
157
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_ruststtstream(
|
|
158
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
159
|
+
size_t count);
|
|
160
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststtstream_completed(
|
|
161
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
162
|
+
size_t count);
|
|
163
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststtstream_next_token(
|
|
164
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
165
|
+
size_t count);
|
|
119
166
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(
|
|
120
167
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
121
168
|
size_t count);
|
|
@@ -150,6 +197,21 @@ protected:
|
|
|
150
197
|
cpp_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(
|
|
151
198
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
152
199
|
size_t count);
|
|
200
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttts(
|
|
201
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
202
|
+
size_t count);
|
|
203
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rusttts(
|
|
204
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
205
|
+
size_t count);
|
|
206
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_rusttts_new(
|
|
207
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
208
|
+
size_t count);
|
|
209
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize(
|
|
210
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
211
|
+
size_t count);
|
|
212
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize_async(
|
|
213
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
214
|
+
size_t count);
|
|
153
215
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(
|
|
154
216
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
155
217
|
size_t count);
|
|
@@ -233,6 +295,9 @@ protected:
|
|
|
233
295
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_model(
|
|
234
296
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
235
297
|
size_t count);
|
|
298
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_tts(
|
|
299
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
300
|
+
size_t count);
|
|
236
301
|
jsi::Value
|
|
237
302
|
cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(
|
|
238
303
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -425,6 +490,9 @@ protected:
|
|
|
425
490
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_model(
|
|
426
491
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
427
492
|
size_t count);
|
|
493
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_tts(
|
|
494
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
495
|
+
size_t count);
|
|
428
496
|
jsi::Value
|
|
429
497
|
cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(
|
|
430
498
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -466,6 +534,10 @@ protected:
|
|
|
466
534
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
467
535
|
size_t count);
|
|
468
536
|
jsi::Value
|
|
537
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(
|
|
538
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
539
|
+
size_t count);
|
|
540
|
+
jsi::Value
|
|
469
541
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(
|
|
470
542
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
471
543
|
size_t count);
|
|
@@ -477,6 +549,9 @@ protected:
|
|
|
477
549
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(
|
|
478
550
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
479
551
|
size_t count);
|
|
552
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(
|
|
553
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
554
|
+
size_t count);
|
|
480
555
|
jsi::Value
|
|
481
556
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(
|
|
482
557
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -485,6 +560,10 @@ protected:
|
|
|
485
560
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(
|
|
486
561
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
487
562
|
size_t count);
|
|
563
|
+
jsi::Value
|
|
564
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_mtp_acceptance_rate(
|
|
565
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
566
|
+
size_t count);
|
|
488
567
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(
|
|
489
568
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
490
569
|
size_t count);
|
|
@@ -514,6 +593,13 @@ protected:
|
|
|
514
593
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(
|
|
515
594
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
516
595
|
size_t count);
|
|
596
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize(
|
|
597
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
598
|
+
size_t count);
|
|
599
|
+
jsi::Value
|
|
600
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize_with_prompt(
|
|
601
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
602
|
+
size_t count);
|
|
517
603
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(
|
|
518
604
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
519
605
|
size_t count);
|
|
@@ -524,6 +610,24 @@ protected:
|
|
|
524
610
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
525
611
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
526
612
|
size_t count);
|
|
613
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(
|
|
614
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
615
|
+
size_t count);
|
|
616
|
+
jsi::Value
|
|
617
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_file(
|
|
618
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
619
|
+
size_t count);
|
|
620
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_pcm(
|
|
621
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
622
|
+
size_t count);
|
|
623
|
+
jsi::Value
|
|
624
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_completed(
|
|
625
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
626
|
+
size_t count);
|
|
627
|
+
jsi::Value
|
|
628
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_next_token(
|
|
629
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
630
|
+
size_t count);
|
|
527
631
|
jsi::Value
|
|
528
632
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(
|
|
529
633
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -544,6 +648,13 @@ protected:
|
|
|
544
648
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(
|
|
545
649
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
546
650
|
size_t count);
|
|
651
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize(
|
|
652
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
653
|
+
size_t count);
|
|
654
|
+
jsi::Value
|
|
655
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize_async(
|
|
656
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
657
|
+
size_t count);
|
|
547
658
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(
|
|
548
659
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
549
660
|
size_t count);
|
|
@@ -604,6 +715,9 @@ protected:
|
|
|
604
715
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
605
716
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
606
717
|
size_t count);
|
|
718
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_ruststt_new(
|
|
719
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
720
|
+
size_t count);
|
|
607
721
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(
|
|
608
722
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
609
723
|
size_t count);
|
|
@@ -611,6 +725,9 @@ protected:
|
|
|
611
725
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(
|
|
612
726
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
613
727
|
size_t count);
|
|
728
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttts_new(
|
|
729
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
730
|
+
size_t count);
|
|
614
731
|
jsi::Value
|
|
615
732
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(
|
|
616
733
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -641,12 +758,21 @@ protected:
|
|
|
641
758
|
jsi::Value cpp_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
|
|
642
759
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
643
760
|
size_t count);
|
|
761
|
+
jsi::Value cpp_uniffi_internal_fn_method_ruststt_ffi__bless_pointer(
|
|
762
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
763
|
+
size_t count);
|
|
764
|
+
jsi::Value cpp_uniffi_internal_fn_method_ruststtstream_ffi__bless_pointer(
|
|
765
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
766
|
+
size_t count);
|
|
644
767
|
jsi::Value cpp_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(
|
|
645
768
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
646
769
|
size_t count);
|
|
647
770
|
jsi::Value cpp_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(
|
|
648
771
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
649
772
|
size_t count);
|
|
773
|
+
jsi::Value cpp_uniffi_internal_fn_method_rusttts_ffi__bless_pointer(
|
|
774
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
775
|
+
size_t count);
|
|
650
776
|
jsi::Value cpp_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(
|
|
651
777
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
652
778
|
size_t count);
|
|
@@ -20,13 +20,16 @@ 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, 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, 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
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(ptr: bigint, json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
25
26
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(ptr: bigint, parts: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
26
27
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(ptr: bigint): bigint;
|
|
27
28
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_sampler_config_json(ptr: bigint): bigint;
|
|
29
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(ptr: bigint): bigint;
|
|
28
30
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_system_prompt(ptr: bigint): bigint;
|
|
29
31
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_template_variables(ptr: bigint): bigint;
|
|
32
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_mtp_acceptance_rate(ptr: bigint): bigint;
|
|
30
33
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(ptr: bigint, systemPrompt: Uint8Array, tools: Uint8Array): bigint;
|
|
31
34
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_history(ptr: bigint): bigint;
|
|
32
35
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(ptr: bigint, messages: Uint8Array): bigint;
|
|
@@ -35,6 +38,8 @@ interface NativeModuleInterface {
|
|
|
35
38
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_template_variable(ptr: bigint, name: Uint8Array, value: number): bigint;
|
|
36
39
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_tools(ptr: bigint, tools: Uint8Array): bigint;
|
|
37
40
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
41
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize(ptr: bigint, message: Uint8Array): bigint;
|
|
42
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize_with_prompt(ptr: bigint, parts: Uint8Array): bigint;
|
|
38
43
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
39
44
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
40
45
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(model: bigint, contextSize: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -46,6 +51,16 @@ interface NativeModuleInterface {
|
|
|
46
51
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(ptr: bigint, text: Uint8Array): bigint;
|
|
47
52
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
48
53
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
54
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
55
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_ruststt(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
56
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_ruststt(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
57
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_ruststt_new(source: Uint8Array, language: Uint8Array, quantization: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
58
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_file(ptr: bigint, path: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
59
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_pcm(ptr: bigint, samples: Uint8Array, sampleRate: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
60
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_ruststtstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
61
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_ruststtstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
62
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststtstream_completed(ptr: bigint): bigint;
|
|
63
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststtstream_next_token(ptr: bigint): bigint;
|
|
49
64
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
50
65
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
51
66
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_completed(ptr: bigint): bigint;
|
|
@@ -57,6 +72,11 @@ interface NativeModuleInterface {
|
|
|
57
72
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_get_schema_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
58
73
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_next_pending_call(ptr: bigint): bigint;
|
|
59
74
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(ptr: bigint, callId: Uint8Array, result: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
|
|
75
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttts(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
76
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttts(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
77
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttts_new(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, precision: Uint8Array, temperature: Uint8Array, huggingfaceToken: Uint8Array, device: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
78
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize(ptr: bigint, text: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
79
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize_async(ptr: bigint, text: Uint8Array): bigint;
|
|
60
80
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
61
81
|
ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
62
82
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -83,7 +103,8 @@ interface NativeModuleInterface {
|
|
|
83
103
|
ubrn_uniffi_nobodywho_uniffi_fn_func_cosine_similarity(a: Uint8Array, b: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;
|
|
84
104
|
ubrn_uniffi_nobodywho_uniffi_fn_func_download_model(modelPath: Uint8Array, headers: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
85
105
|
ubrn_uniffi_nobodywho_uniffi_fn_func_get_cached_models(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
86
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(modelPath: Uint8Array, useGpu: number, projectionModelPath: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
106
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(modelPath: Uint8Array, useGpu: number, projectionModelPath: Uint8Array, draftModelPath: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
107
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_load_tts(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, precision: Uint8Array, temperature: Uint8Array, huggingfaceToken: Uint8Array, device: Uint8Array): bigint;
|
|
87
108
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
88
109
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_json_schema(schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
89
110
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -147,6 +168,7 @@ interface NativeModuleInterface {
|
|
|
147
168
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_download_model(): number;
|
|
148
169
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(): number;
|
|
149
170
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model(): number;
|
|
171
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_tts(): number;
|
|
150
172
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(): number;
|
|
151
173
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_json_schema(): number;
|
|
152
174
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
|
|
@@ -159,11 +181,14 @@ interface NativeModuleInterface {
|
|
|
159
181
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_k(): number;
|
|
160
182
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p(): number;
|
|
161
183
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(): number;
|
|
184
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(): number;
|
|
162
185
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(): number;
|
|
163
186
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(): number;
|
|
164
187
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(): number;
|
|
188
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
|
|
165
189
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(): number;
|
|
166
190
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(): number;
|
|
191
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_mtp_acceptance_rate(): number;
|
|
167
192
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
|
|
168
193
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_history(): number;
|
|
169
194
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_chat_history(): number;
|
|
@@ -172,14 +197,23 @@ interface NativeModuleInterface {
|
|
|
172
197
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable(): number;
|
|
173
198
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_tools(): number;
|
|
174
199
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(): number;
|
|
200
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize(): number;
|
|
201
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize_with_prompt(): number;
|
|
175
202
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(): number;
|
|
176
203
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(): number;
|
|
177
204
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
|
|
205
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
|
|
206
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_file(): number;
|
|
207
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_pcm(): number;
|
|
208
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_completed(): number;
|
|
209
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_next_token(): number;
|
|
178
210
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(): number;
|
|
179
211
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token(): number;
|
|
180
212
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json(): number;
|
|
181
213
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_next_pending_call(): number;
|
|
182
214
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(): number;
|
|
215
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize(): number;
|
|
216
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize_async(): number;
|
|
183
217
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
184
218
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
185
219
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(): number;
|
|
@@ -198,8 +232,10 @@ interface NativeModuleInterface {
|
|
|
198
232
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(): number;
|
|
199
233
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(): number;
|
|
200
234
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(): number;
|
|
235
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_ruststt_new(): number;
|
|
201
236
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(): number;
|
|
202
237
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(): number;
|
|
238
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttts_new(): number;
|
|
203
239
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(): number;
|
|
204
240
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json(): number;
|
|
205
241
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustdownloadprogresscallback_on_download_progress(): number;
|
|
@@ -209,8 +245,11 @@ interface NativeModuleInterface {
|
|
|
209
245
|
ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
210
246
|
ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
211
247
|
ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
248
|
+
ubrn_uniffi_internal_fn_method_ruststt_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
249
|
+
ubrn_uniffi_internal_fn_method_ruststtstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
212
250
|
ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
213
251
|
ubrn_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
252
|
+
ubrn_uniffi_internal_fn_method_rusttts_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
214
253
|
ubrn_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
215
254
|
ubrn_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
216
255
|
}
|