@xberg-io/liter-llm-wasm 2.1.2 → 2.1.4
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 +7 -7
- package/liter_llm_wasm.d.ts +1114 -6
- package/liter_llm_wasm.js +1311 -13
- package/liter_llm_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/liter_llm_wasm.js
CHANGED
|
@@ -173,6 +173,17 @@ export class WasmAssistantMessage {
|
|
|
173
173
|
}
|
|
174
174
|
return v1;
|
|
175
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Return an independent handle for an ownership-taking API.
|
|
178
|
+
*
|
|
179
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
180
|
+
* handle must remain usable.
|
|
181
|
+
* @returns {WasmAssistantMessage}
|
|
182
|
+
*/
|
|
183
|
+
copyForTransfer() {
|
|
184
|
+
const ret = wasm.wasmassistantmessage_copyForTransfer(this.__wbg_ptr);
|
|
185
|
+
return WasmAssistantMessage.__wrap(ret);
|
|
186
|
+
}
|
|
176
187
|
/**
|
|
177
188
|
* @returns {WasmAssistantMessage}
|
|
178
189
|
*/
|
|
@@ -181,6 +192,10 @@ export class WasmAssistantMessage {
|
|
|
181
192
|
return WasmAssistantMessage.__wrap(ret);
|
|
182
193
|
}
|
|
183
194
|
/**
|
|
195
|
+
* Returns a detached copy of `functionCall`.
|
|
196
|
+
*
|
|
197
|
+
* Changes to the returned value do not update this object. To update `functionCall`,
|
|
198
|
+
* read it, modify the copy, then assign the copy back to `functionCall`.
|
|
184
199
|
* @returns {WasmFunctionCall | undefined}
|
|
185
200
|
*/
|
|
186
201
|
get functionCall() {
|
|
@@ -205,6 +220,9 @@ export class WasmAssistantMessage {
|
|
|
205
220
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
206
221
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
207
222
|
* the generated setter borrows and leaves your handle alive.
|
|
223
|
+
* Takes ownership of every element in `toolCalls`.
|
|
224
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
225
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
208
226
|
* @param {string | null} [content]
|
|
209
227
|
* @param {string | null} [name]
|
|
210
228
|
* @param {WasmToolCall[] | null} [toolCalls]
|
|
@@ -346,6 +364,9 @@ export class WasmAssistantMessage {
|
|
|
346
364
|
wasm.wasmassistantmessage_set_refusal(this.__wbg_ptr, ptr0, len0);
|
|
347
365
|
}
|
|
348
366
|
/**
|
|
367
|
+
* Takes ownership of every element in `toolCalls`.
|
|
368
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
369
|
+
* element with `copyForTransfer()` before passing the array.
|
|
349
370
|
* @param {WasmToolCall[] | null} [value]
|
|
350
371
|
*/
|
|
351
372
|
set toolCalls(value) {
|
|
@@ -370,6 +391,10 @@ export class WasmAssistantMessage {
|
|
|
370
391
|
return v1;
|
|
371
392
|
}
|
|
372
393
|
/**
|
|
394
|
+
* Returns detached copies of the elements in `toolCalls`.
|
|
395
|
+
*
|
|
396
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
397
|
+
* then assign the array back to `toolCalls`.
|
|
373
398
|
* @returns {Array<any> | undefined}
|
|
374
399
|
*/
|
|
375
400
|
get toolCalls() {
|
|
@@ -538,6 +563,17 @@ export class WasmAudioContent {
|
|
|
538
563
|
const ptr = this.__destroy_into_raw();
|
|
539
564
|
wasm.__wbg_wasmaudiocontent_free(ptr, 0);
|
|
540
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* Return an independent handle for an ownership-taking API.
|
|
568
|
+
*
|
|
569
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
570
|
+
* handle must remain usable.
|
|
571
|
+
* @returns {WasmAudioContent}
|
|
572
|
+
*/
|
|
573
|
+
copyForTransfer() {
|
|
574
|
+
const ret = wasm.wasmaudiocontent_copyForTransfer(this.__wbg_ptr);
|
|
575
|
+
return WasmAudioContent.__wrap(ret);
|
|
576
|
+
}
|
|
541
577
|
/**
|
|
542
578
|
* @returns {string}
|
|
543
579
|
*/
|
|
@@ -643,6 +679,17 @@ export class WasmAuthConfig {
|
|
|
643
679
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
644
680
|
}
|
|
645
681
|
}
|
|
682
|
+
/**
|
|
683
|
+
* Return an independent handle for an ownership-taking API.
|
|
684
|
+
*
|
|
685
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
686
|
+
* handle must remain usable.
|
|
687
|
+
* @returns {WasmAuthConfig}
|
|
688
|
+
*/
|
|
689
|
+
copyForTransfer() {
|
|
690
|
+
const ret = wasm.wasmauthconfig_copyForTransfer(this.__wbg_ptr);
|
|
691
|
+
return WasmAuthConfig.__wrap(ret);
|
|
692
|
+
}
|
|
646
693
|
/**
|
|
647
694
|
* @returns {WasmAuthConfig}
|
|
648
695
|
*/
|
|
@@ -813,6 +860,17 @@ export class WasmBatchListQuery {
|
|
|
813
860
|
}
|
|
814
861
|
return v1;
|
|
815
862
|
}
|
|
863
|
+
/**
|
|
864
|
+
* Return an independent handle for an ownership-taking API.
|
|
865
|
+
*
|
|
866
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
867
|
+
* handle must remain usable.
|
|
868
|
+
* @returns {WasmBatchListQuery}
|
|
869
|
+
*/
|
|
870
|
+
copyForTransfer() {
|
|
871
|
+
const ret = wasm.wasmbatchlistquery_copyForTransfer(this.__wbg_ptr);
|
|
872
|
+
return WasmBatchListQuery.__wrap(ret);
|
|
873
|
+
}
|
|
816
874
|
/**
|
|
817
875
|
* @returns {WasmBatchListQuery}
|
|
818
876
|
*/
|
|
@@ -877,6 +935,21 @@ export class WasmBatchListResponse {
|
|
|
877
935
|
wasm.__wbg_wasmbatchlistresponse_free(ptr, 0);
|
|
878
936
|
}
|
|
879
937
|
/**
|
|
938
|
+
* Return an independent handle for an ownership-taking API.
|
|
939
|
+
*
|
|
940
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
941
|
+
* handle must remain usable.
|
|
942
|
+
* @returns {WasmBatchListResponse}
|
|
943
|
+
*/
|
|
944
|
+
copyForTransfer() {
|
|
945
|
+
const ret = wasm.wasmbatchlistresponse_copyForTransfer(this.__wbg_ptr);
|
|
946
|
+
return WasmBatchListResponse.__wrap(ret);
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Returns detached copies of the elements in `data`.
|
|
950
|
+
*
|
|
951
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
952
|
+
* then assign the array back to `data`.
|
|
880
953
|
* @returns {WasmBatchObject[]}
|
|
881
954
|
*/
|
|
882
955
|
get data() {
|
|
@@ -924,6 +997,9 @@ export class WasmBatchListResponse {
|
|
|
924
997
|
return v1;
|
|
925
998
|
}
|
|
926
999
|
/**
|
|
1000
|
+
* Takes ownership of every element in `data`.
|
|
1001
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
1002
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
927
1003
|
* @param {string | null} [object]
|
|
928
1004
|
* @param {WasmBatchObject[] | null} [data]
|
|
929
1005
|
* @param {boolean | null} [hasMore]
|
|
@@ -960,6 +1036,9 @@ export class WasmBatchListResponse {
|
|
|
960
1036
|
}
|
|
961
1037
|
}
|
|
962
1038
|
/**
|
|
1039
|
+
* Takes ownership of every element in `data`.
|
|
1040
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
1041
|
+
* element with `copyForTransfer()` before passing the array.
|
|
963
1042
|
* @param {WasmBatchObject[]} value
|
|
964
1043
|
*/
|
|
965
1044
|
set data(value) {
|
|
@@ -1051,6 +1130,17 @@ export class WasmBatchObject {
|
|
|
1051
1130
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1052
1131
|
}
|
|
1053
1132
|
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Return an independent handle for an ownership-taking API.
|
|
1135
|
+
*
|
|
1136
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1137
|
+
* handle must remain usable.
|
|
1138
|
+
* @returns {WasmBatchObject}
|
|
1139
|
+
*/
|
|
1140
|
+
copyForTransfer() {
|
|
1141
|
+
const ret = wasm.wasmbatchobject_copyForTransfer(this.__wbg_ptr);
|
|
1142
|
+
return WasmBatchObject.__wrap(ret);
|
|
1143
|
+
}
|
|
1054
1144
|
/**
|
|
1055
1145
|
* @returns {bigint}
|
|
1056
1146
|
*/
|
|
@@ -1217,6 +1307,10 @@ export class WasmBatchObject {
|
|
|
1217
1307
|
return v1;
|
|
1218
1308
|
}
|
|
1219
1309
|
/**
|
|
1310
|
+
* Returns a detached copy of `requestCounts`.
|
|
1311
|
+
*
|
|
1312
|
+
* Changes to the returned value do not update this object. To update `requestCounts`,
|
|
1313
|
+
* read it, modify the copy, then assign the copy back to `requestCounts`.
|
|
1220
1314
|
* @returns {WasmBatchRequestCounts | undefined}
|
|
1221
1315
|
*/
|
|
1222
1316
|
get requestCounts() {
|
|
@@ -1367,6 +1461,17 @@ export class WasmBatchRequestCounts {
|
|
|
1367
1461
|
const ret = wasm.wasmbatchrequestcounts_completed(this.__wbg_ptr);
|
|
1368
1462
|
return BigInt.asUintN(64, ret);
|
|
1369
1463
|
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Return an independent handle for an ownership-taking API.
|
|
1466
|
+
*
|
|
1467
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1468
|
+
* handle must remain usable.
|
|
1469
|
+
* @returns {WasmBatchRequestCounts}
|
|
1470
|
+
*/
|
|
1471
|
+
copyForTransfer() {
|
|
1472
|
+
const ret = wasm.wasmbatchrequestcounts_copyForTransfer(this.__wbg_ptr);
|
|
1473
|
+
return WasmBatchRequestCounts.__wrap(ret);
|
|
1474
|
+
}
|
|
1370
1475
|
/**
|
|
1371
1476
|
* @returns {WasmBatchRequestCounts}
|
|
1372
1477
|
*/
|
|
@@ -1480,6 +1585,17 @@ export class WasmBedrockConfig {
|
|
|
1480
1585
|
}
|
|
1481
1586
|
return v1;
|
|
1482
1587
|
}
|
|
1588
|
+
/**
|
|
1589
|
+
* Return an independent handle for an ownership-taking API.
|
|
1590
|
+
*
|
|
1591
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1592
|
+
* handle must remain usable.
|
|
1593
|
+
* @returns {WasmBedrockConfig}
|
|
1594
|
+
*/
|
|
1595
|
+
copyForTransfer() {
|
|
1596
|
+
const ret = wasm.wasmbedrockconfig_copyForTransfer(this.__wbg_ptr);
|
|
1597
|
+
return WasmBedrockConfig.__wrap(ret);
|
|
1598
|
+
}
|
|
1483
1599
|
/**
|
|
1484
1600
|
* @returns {string | undefined}
|
|
1485
1601
|
*/
|
|
@@ -1636,6 +1752,17 @@ export class WasmCatalogRefreshConfig {
|
|
|
1636
1752
|
}
|
|
1637
1753
|
return v1;
|
|
1638
1754
|
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Return an independent handle for an ownership-taking API.
|
|
1757
|
+
*
|
|
1758
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1759
|
+
* handle must remain usable.
|
|
1760
|
+
* @returns {WasmCatalogRefreshConfig}
|
|
1761
|
+
*/
|
|
1762
|
+
copyForTransfer() {
|
|
1763
|
+
const ret = wasm.wasmcatalogrefreshconfig_copyForTransfer(this.__wbg_ptr);
|
|
1764
|
+
return WasmCatalogRefreshConfig.__wrap(ret);
|
|
1765
|
+
}
|
|
1639
1766
|
/**
|
|
1640
1767
|
* @returns {WasmCatalogRefreshConfig}
|
|
1641
1768
|
*/
|
|
@@ -1740,6 +1867,10 @@ export class WasmChatCompletionChunk {
|
|
|
1740
1867
|
wasm.__wbg_wasmchatcompletionchunk_free(ptr, 0);
|
|
1741
1868
|
}
|
|
1742
1869
|
/**
|
|
1870
|
+
* Returns detached copies of the elements in `choices`.
|
|
1871
|
+
*
|
|
1872
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
1873
|
+
* then assign the array back to `choices`.
|
|
1743
1874
|
* @returns {WasmStreamChoice[]}
|
|
1744
1875
|
*/
|
|
1745
1876
|
get choices() {
|
|
@@ -1751,6 +1882,17 @@ export class WasmChatCompletionChunk {
|
|
|
1751
1882
|
clearUsage() {
|
|
1752
1883
|
wasm.wasmchatcompletionchunk_clearUsage(this.__wbg_ptr);
|
|
1753
1884
|
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Return an independent handle for an ownership-taking API.
|
|
1887
|
+
*
|
|
1888
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1889
|
+
* handle must remain usable.
|
|
1890
|
+
* @returns {WasmChatCompletionChunk}
|
|
1891
|
+
*/
|
|
1892
|
+
copyForTransfer() {
|
|
1893
|
+
const ret = wasm.wasmchatcompletionchunk_copyForTransfer(this.__wbg_ptr);
|
|
1894
|
+
return WasmChatCompletionChunk.__wrap(ret);
|
|
1895
|
+
}
|
|
1754
1896
|
/**
|
|
1755
1897
|
* @returns {bigint}
|
|
1756
1898
|
*/
|
|
@@ -1801,6 +1943,9 @@ export class WasmChatCompletionChunk {
|
|
|
1801
1943
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
1802
1944
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1803
1945
|
* the generated setter borrows and leaves your handle alive.
|
|
1946
|
+
* Takes ownership of every element in `choices`.
|
|
1947
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
1948
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
1804
1949
|
* @param {string | null} [id]
|
|
1805
1950
|
* @param {string | null} [object]
|
|
1806
1951
|
* @param {bigint | null} [created]
|
|
@@ -1861,6 +2006,9 @@ export class WasmChatCompletionChunk {
|
|
|
1861
2006
|
return v1;
|
|
1862
2007
|
}
|
|
1863
2008
|
/**
|
|
2009
|
+
* Takes ownership of every element in `choices`.
|
|
2010
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
2011
|
+
* element with `copyForTransfer()` before passing the array.
|
|
1864
2012
|
* @param {WasmStreamChoice[]} value
|
|
1865
2013
|
*/
|
|
1866
2014
|
set choices(value) {
|
|
@@ -1934,6 +2082,10 @@ export class WasmChatCompletionChunk {
|
|
|
1934
2082
|
return v1;
|
|
1935
2083
|
}
|
|
1936
2084
|
/**
|
|
2085
|
+
* Returns a detached copy of `usage`.
|
|
2086
|
+
*
|
|
2087
|
+
* Changes to the returned value do not update this object. To update `usage`,
|
|
2088
|
+
* read it, modify the copy, then assign the copy back to `usage`.
|
|
1937
2089
|
* @returns {WasmUsage | undefined}
|
|
1938
2090
|
*/
|
|
1939
2091
|
get usage() {
|
|
@@ -1973,6 +2125,17 @@ export class WasmChatCompletionRequest {
|
|
|
1973
2125
|
clearStreamOptions() {
|
|
1974
2126
|
wasm.wasmchatcompletionrequest_clearStreamOptions(this.__wbg_ptr);
|
|
1975
2127
|
}
|
|
2128
|
+
/**
|
|
2129
|
+
* Return an independent handle for an ownership-taking API.
|
|
2130
|
+
*
|
|
2131
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
2132
|
+
* handle must remain usable.
|
|
2133
|
+
* @returns {WasmChatCompletionRequest}
|
|
2134
|
+
*/
|
|
2135
|
+
copyForTransfer() {
|
|
2136
|
+
const ret = wasm.wasmchatcompletionrequest_copyForTransfer(this.__wbg_ptr);
|
|
2137
|
+
return WasmChatCompletionRequest.__wrap(ret);
|
|
2138
|
+
}
|
|
1976
2139
|
/**
|
|
1977
2140
|
* @returns {WasmChatCompletionRequest}
|
|
1978
2141
|
*/
|
|
@@ -2076,6 +2239,9 @@ export class WasmChatCompletionRequest {
|
|
|
2076
2239
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
2077
2240
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
2078
2241
|
* the generated setter borrows and leaves your handle alive.
|
|
2242
|
+
* Takes ownership of every element in `tools`.
|
|
2243
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
2244
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
2079
2245
|
* @param {string | null} [model]
|
|
2080
2246
|
* @param {any | null} [messages]
|
|
2081
2247
|
* @param {number | null} [temperature]
|
|
@@ -2345,6 +2511,9 @@ export class WasmChatCompletionRequest {
|
|
|
2345
2511
|
wasm.wasmchatcompletionrequest_set_toolChoice(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
|
|
2346
2512
|
}
|
|
2347
2513
|
/**
|
|
2514
|
+
* Takes ownership of every element in `tools`.
|
|
2515
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
2516
|
+
* element with `copyForTransfer()` before passing the array.
|
|
2348
2517
|
* @param {WasmChatCompletionTool[] | null} [value]
|
|
2349
2518
|
*/
|
|
2350
2519
|
set tools(value) {
|
|
@@ -2393,6 +2562,10 @@ export class WasmChatCompletionRequest {
|
|
|
2393
2562
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
2394
2563
|
}
|
|
2395
2564
|
/**
|
|
2565
|
+
* Returns a detached copy of `streamOptions`.
|
|
2566
|
+
*
|
|
2567
|
+
* Changes to the returned value do not update this object. To update `streamOptions`,
|
|
2568
|
+
* read it, modify the copy, then assign the copy back to `streamOptions`.
|
|
2396
2569
|
* @returns {WasmStreamOptions | undefined}
|
|
2397
2570
|
*/
|
|
2398
2571
|
get streamOptions() {
|
|
@@ -2421,6 +2594,10 @@ export class WasmChatCompletionRequest {
|
|
|
2421
2594
|
return ret;
|
|
2422
2595
|
}
|
|
2423
2596
|
/**
|
|
2597
|
+
* Returns detached copies of the elements in `tools`.
|
|
2598
|
+
*
|
|
2599
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
2600
|
+
* then assign the array back to `tools`.
|
|
2424
2601
|
* @returns {Array<any> | undefined}
|
|
2425
2602
|
*/
|
|
2426
2603
|
get tools() {
|
|
@@ -2484,6 +2661,10 @@ export class WasmChatCompletionResponse {
|
|
|
2484
2661
|
wasm.__wbg_wasmchatcompletionresponse_free(ptr, 0);
|
|
2485
2662
|
}
|
|
2486
2663
|
/**
|
|
2664
|
+
* Returns detached copies of the elements in `choices`.
|
|
2665
|
+
*
|
|
2666
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
2667
|
+
* then assign the array back to `choices`.
|
|
2487
2668
|
* @returns {WasmChoice[]}
|
|
2488
2669
|
*/
|
|
2489
2670
|
get choices() {
|
|
@@ -2495,6 +2676,17 @@ export class WasmChatCompletionResponse {
|
|
|
2495
2676
|
clearUsage() {
|
|
2496
2677
|
wasm.wasmchatcompletionresponse_clearUsage(this.__wbg_ptr);
|
|
2497
2678
|
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Return an independent handle for an ownership-taking API.
|
|
2681
|
+
*
|
|
2682
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
2683
|
+
* handle must remain usable.
|
|
2684
|
+
* @returns {WasmChatCompletionResponse}
|
|
2685
|
+
*/
|
|
2686
|
+
copyForTransfer() {
|
|
2687
|
+
const ret = wasm.wasmchatcompletionresponse_copyForTransfer(this.__wbg_ptr);
|
|
2688
|
+
return WasmChatCompletionResponse.__wrap(ret);
|
|
2689
|
+
}
|
|
2498
2690
|
/**
|
|
2499
2691
|
* @returns {bigint}
|
|
2500
2692
|
*/
|
|
@@ -2545,6 +2737,9 @@ export class WasmChatCompletionResponse {
|
|
|
2545
2737
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
2546
2738
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
2547
2739
|
* the generated setter borrows and leaves your handle alive.
|
|
2740
|
+
* Takes ownership of every element in `choices`.
|
|
2741
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
2742
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
2548
2743
|
* @param {string | null} [id]
|
|
2549
2744
|
* @param {string | null} [object]
|
|
2550
2745
|
* @param {bigint | null} [created]
|
|
@@ -2605,6 +2800,9 @@ export class WasmChatCompletionResponse {
|
|
|
2605
2800
|
return v1;
|
|
2606
2801
|
}
|
|
2607
2802
|
/**
|
|
2803
|
+
* Takes ownership of every element in `choices`.
|
|
2804
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
2805
|
+
* element with `copyForTransfer()` before passing the array.
|
|
2608
2806
|
* @param {WasmChoice[]} value
|
|
2609
2807
|
*/
|
|
2610
2808
|
set choices(value) {
|
|
@@ -2678,6 +2876,10 @@ export class WasmChatCompletionResponse {
|
|
|
2678
2876
|
return v1;
|
|
2679
2877
|
}
|
|
2680
2878
|
/**
|
|
2879
|
+
* Returns a detached copy of `usage`.
|
|
2880
|
+
*
|
|
2881
|
+
* Changes to the returned value do not update this object. To update `usage`,
|
|
2882
|
+
* read it, modify the copy, then assign the copy back to `usage`.
|
|
2681
2883
|
* @returns {WasmUsage | undefined}
|
|
2682
2884
|
*/
|
|
2683
2885
|
get usage() {
|
|
@@ -2713,6 +2915,17 @@ export class WasmChatCompletionTool {
|
|
|
2713
2915
|
const ptr = this.__destroy_into_raw();
|
|
2714
2916
|
wasm.__wbg_wasmchatcompletiontool_free(ptr, 0);
|
|
2715
2917
|
}
|
|
2918
|
+
/**
|
|
2919
|
+
* Return an independent handle for an ownership-taking API.
|
|
2920
|
+
*
|
|
2921
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
2922
|
+
* handle must remain usable.
|
|
2923
|
+
* @returns {WasmChatCompletionTool}
|
|
2924
|
+
*/
|
|
2925
|
+
copyForTransfer() {
|
|
2926
|
+
const ret = wasm.wasmchatcompletiontool_copyForTransfer(this.__wbg_ptr);
|
|
2927
|
+
return WasmChatCompletionTool.__wrap(ret);
|
|
2928
|
+
}
|
|
2716
2929
|
/**
|
|
2717
2930
|
* @returns {WasmChatCompletionTool}
|
|
2718
2931
|
*/
|
|
@@ -2721,6 +2934,10 @@ export class WasmChatCompletionTool {
|
|
|
2721
2934
|
return WasmChatCompletionTool.__wrap(ret);
|
|
2722
2935
|
}
|
|
2723
2936
|
/**
|
|
2937
|
+
* Returns a detached copy of `function`.
|
|
2938
|
+
*
|
|
2939
|
+
* Changes to the returned value do not update this object. To update `function`,
|
|
2940
|
+
* read it, modify the copy, then assign the copy back to `function`.
|
|
2724
2941
|
* @returns {WasmFunctionDefinition}
|
|
2725
2942
|
*/
|
|
2726
2943
|
get function() {
|
|
@@ -2795,6 +3012,17 @@ export class WasmChoice {
|
|
|
2795
3012
|
const ptr = this.__destroy_into_raw();
|
|
2796
3013
|
wasm.__wbg_wasmchoice_free(ptr, 0);
|
|
2797
3014
|
}
|
|
3015
|
+
/**
|
|
3016
|
+
* Return an independent handle for an ownership-taking API.
|
|
3017
|
+
*
|
|
3018
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3019
|
+
* handle must remain usable.
|
|
3020
|
+
* @returns {WasmChoice}
|
|
3021
|
+
*/
|
|
3022
|
+
copyForTransfer() {
|
|
3023
|
+
const ret = wasm.wasmchoice_copyForTransfer(this.__wbg_ptr);
|
|
3024
|
+
return WasmChoice.__wrap(ret);
|
|
3025
|
+
}
|
|
2798
3026
|
/**
|
|
2799
3027
|
* @returns {WasmChoice}
|
|
2800
3028
|
*/
|
|
@@ -2829,6 +3057,10 @@ export class WasmChoice {
|
|
|
2829
3057
|
return ret;
|
|
2830
3058
|
}
|
|
2831
3059
|
/**
|
|
3060
|
+
* Returns a detached copy of `message`.
|
|
3061
|
+
*
|
|
3062
|
+
* Changes to the returned value do not update this object. To update `message`,
|
|
3063
|
+
* read it, modify the copy, then assign the copy back to `message`.
|
|
2832
3064
|
* @returns {WasmAssistantMessage}
|
|
2833
3065
|
*/
|
|
2834
3066
|
get message() {
|
|
@@ -3050,6 +3282,17 @@ export class WasmCreateBatchRequest {
|
|
|
3050
3282
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3051
3283
|
}
|
|
3052
3284
|
}
|
|
3285
|
+
/**
|
|
3286
|
+
* Return an independent handle for an ownership-taking API.
|
|
3287
|
+
*
|
|
3288
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3289
|
+
* handle must remain usable.
|
|
3290
|
+
* @returns {WasmCreateBatchRequest}
|
|
3291
|
+
*/
|
|
3292
|
+
copyForTransfer() {
|
|
3293
|
+
const ret = wasm.wasmcreatebatchrequest_copyForTransfer(this.__wbg_ptr);
|
|
3294
|
+
return WasmCreateBatchRequest.__wrap(ret);
|
|
3295
|
+
}
|
|
3053
3296
|
/**
|
|
3054
3297
|
* @returns {WasmCreateBatchRequest}
|
|
3055
3298
|
*/
|
|
@@ -3165,6 +3408,17 @@ export class WasmCreateFileRequest {
|
|
|
3165
3408
|
const ptr = this.__destroy_into_raw();
|
|
3166
3409
|
wasm.__wbg_wasmcreatefilerequest_free(ptr, 0);
|
|
3167
3410
|
}
|
|
3411
|
+
/**
|
|
3412
|
+
* Return an independent handle for an ownership-taking API.
|
|
3413
|
+
*
|
|
3414
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3415
|
+
* handle must remain usable.
|
|
3416
|
+
* @returns {WasmCreateFileRequest}
|
|
3417
|
+
*/
|
|
3418
|
+
copyForTransfer() {
|
|
3419
|
+
const ret = wasm.wasmcreatefilerequest_copyForTransfer(this.__wbg_ptr);
|
|
3420
|
+
return WasmCreateFileRequest.__wrap(ret);
|
|
3421
|
+
}
|
|
3168
3422
|
/**
|
|
3169
3423
|
* @returns {WasmCreateFileRequest}
|
|
3170
3424
|
*/
|
|
@@ -3274,6 +3528,17 @@ export class WasmCreateImageRequest {
|
|
|
3274
3528
|
const ptr = this.__destroy_into_raw();
|
|
3275
3529
|
wasm.__wbg_wasmcreateimagerequest_free(ptr, 0);
|
|
3276
3530
|
}
|
|
3531
|
+
/**
|
|
3532
|
+
* Return an independent handle for an ownership-taking API.
|
|
3533
|
+
*
|
|
3534
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3535
|
+
* handle must remain usable.
|
|
3536
|
+
* @returns {WasmCreateImageRequest}
|
|
3537
|
+
*/
|
|
3538
|
+
copyForTransfer() {
|
|
3539
|
+
const ret = wasm.wasmcreateimagerequest_copyForTransfer(this.__wbg_ptr);
|
|
3540
|
+
return WasmCreateImageRequest.__wrap(ret);
|
|
3541
|
+
}
|
|
3277
3542
|
/**
|
|
3278
3543
|
* @returns {WasmCreateImageRequest}
|
|
3279
3544
|
*/
|
|
@@ -3507,6 +3772,17 @@ export class WasmCreateResponseRequest {
|
|
|
3507
3772
|
const ptr = this.__destroy_into_raw();
|
|
3508
3773
|
wasm.__wbg_wasmcreateresponserequest_free(ptr, 0);
|
|
3509
3774
|
}
|
|
3775
|
+
/**
|
|
3776
|
+
* Return an independent handle for an ownership-taking API.
|
|
3777
|
+
*
|
|
3778
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3779
|
+
* handle must remain usable.
|
|
3780
|
+
* @returns {WasmCreateResponseRequest}
|
|
3781
|
+
*/
|
|
3782
|
+
copyForTransfer() {
|
|
3783
|
+
const ret = wasm.wasmcreateresponserequest_copyForTransfer(this.__wbg_ptr);
|
|
3784
|
+
return WasmCreateResponseRequest.__wrap(ret);
|
|
3785
|
+
}
|
|
3510
3786
|
/**
|
|
3511
3787
|
* @returns {WasmCreateResponseRequest}
|
|
3512
3788
|
*/
|
|
@@ -3570,6 +3846,9 @@ export class WasmCreateResponseRequest {
|
|
|
3570
3846
|
}
|
|
3571
3847
|
}
|
|
3572
3848
|
/**
|
|
3849
|
+
* Takes ownership of every element in `tools`.
|
|
3850
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
3851
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
3573
3852
|
* @param {string | null} [model]
|
|
3574
3853
|
* @param {any | null} [input]
|
|
3575
3854
|
* @param {string | null} [instructions]
|
|
@@ -3645,6 +3924,9 @@ export class WasmCreateResponseRequest {
|
|
|
3645
3924
|
wasm.wasmcreateresponserequest_set_temperature(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? 0 : value);
|
|
3646
3925
|
}
|
|
3647
3926
|
/**
|
|
3927
|
+
* Takes ownership of every element in `tools`.
|
|
3928
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
3929
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3648
3930
|
* @param {WasmResponseTool[] | null} [value]
|
|
3649
3931
|
*/
|
|
3650
3932
|
set tools(value) {
|
|
@@ -3667,6 +3949,10 @@ export class WasmCreateResponseRequest {
|
|
|
3667
3949
|
return ret[0] === 0 ? undefined : ret[1];
|
|
3668
3950
|
}
|
|
3669
3951
|
/**
|
|
3952
|
+
* Returns detached copies of the elements in `tools`.
|
|
3953
|
+
*
|
|
3954
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3955
|
+
* then assign the array back to `tools`.
|
|
3670
3956
|
* @returns {Array<any> | undefined}
|
|
3671
3957
|
*/
|
|
3672
3958
|
get tools() {
|
|
@@ -3696,6 +3982,17 @@ export class WasmCreateSpeechRequest {
|
|
|
3696
3982
|
const ptr = this.__destroy_into_raw();
|
|
3697
3983
|
wasm.__wbg_wasmcreatespeechrequest_free(ptr, 0);
|
|
3698
3984
|
}
|
|
3985
|
+
/**
|
|
3986
|
+
* Return an independent handle for an ownership-taking API.
|
|
3987
|
+
*
|
|
3988
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3989
|
+
* handle must remain usable.
|
|
3990
|
+
* @returns {WasmCreateSpeechRequest}
|
|
3991
|
+
*/
|
|
3992
|
+
copyForTransfer() {
|
|
3993
|
+
const ret = wasm.wasmcreatespeechrequest_copyForTransfer(this.__wbg_ptr);
|
|
3994
|
+
return WasmCreateSpeechRequest.__wrap(ret);
|
|
3995
|
+
}
|
|
3699
3996
|
/**
|
|
3700
3997
|
* @returns {WasmCreateSpeechRequest}
|
|
3701
3998
|
*/
|
|
@@ -3849,6 +4146,17 @@ export class WasmCreateTranscriptionRequest {
|
|
|
3849
4146
|
const ptr = this.__destroy_into_raw();
|
|
3850
4147
|
wasm.__wbg_wasmcreatetranscriptionrequest_free(ptr, 0);
|
|
3851
4148
|
}
|
|
4149
|
+
/**
|
|
4150
|
+
* Return an independent handle for an ownership-taking API.
|
|
4151
|
+
*
|
|
4152
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4153
|
+
* handle must remain usable.
|
|
4154
|
+
* @returns {WasmCreateTranscriptionRequest}
|
|
4155
|
+
*/
|
|
4156
|
+
copyForTransfer() {
|
|
4157
|
+
const ret = wasm.wasmcreatetranscriptionrequest_copyForTransfer(this.__wbg_ptr);
|
|
4158
|
+
return WasmCreateTranscriptionRequest.__wrap(ret);
|
|
4159
|
+
}
|
|
3852
4160
|
/**
|
|
3853
4161
|
* @returns {WasmCreateTranscriptionRequest}
|
|
3854
4162
|
*/
|
|
@@ -4044,6 +4352,17 @@ export class WasmCustomProviderConfig {
|
|
|
4044
4352
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
4045
4353
|
}
|
|
4046
4354
|
}
|
|
4355
|
+
/**
|
|
4356
|
+
* Return an independent handle for an ownership-taking API.
|
|
4357
|
+
*
|
|
4358
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4359
|
+
* handle must remain usable.
|
|
4360
|
+
* @returns {WasmCustomProviderConfig}
|
|
4361
|
+
*/
|
|
4362
|
+
copyForTransfer() {
|
|
4363
|
+
const ret = wasm.wasmcustomproviderconfig_copyForTransfer(this.__wbg_ptr);
|
|
4364
|
+
return WasmCustomProviderConfig.__wrap(ret);
|
|
4365
|
+
}
|
|
4047
4366
|
/**
|
|
4048
4367
|
* @returns {WasmCustomProviderConfig}
|
|
4049
4368
|
*/
|
|
@@ -4149,6 +4468,17 @@ export class WasmDecodedDataUrl {
|
|
|
4149
4468
|
const ptr = this.__destroy_into_raw();
|
|
4150
4469
|
wasm.__wbg_wasmdecodeddataurl_free(ptr, 0);
|
|
4151
4470
|
}
|
|
4471
|
+
/**
|
|
4472
|
+
* Return an independent handle for an ownership-taking API.
|
|
4473
|
+
*
|
|
4474
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4475
|
+
* handle must remain usable.
|
|
4476
|
+
* @returns {WasmDecodedDataUrl}
|
|
4477
|
+
*/
|
|
4478
|
+
copyForTransfer() {
|
|
4479
|
+
const ret = wasm.wasmdecodeddataurl_copyForTransfer(this.__wbg_ptr);
|
|
4480
|
+
return WasmDecodedDataUrl.__wrap(ret);
|
|
4481
|
+
}
|
|
4152
4482
|
/**
|
|
4153
4483
|
* @returns {Uint8Array}
|
|
4154
4484
|
*/
|
|
@@ -4216,7 +4546,7 @@ if (Symbol.dispose) WasmDecodedDataUrl.prototype[Symbol.dispose] = WasmDecodedDa
|
|
|
4216
4546
|
/**
|
|
4217
4547
|
* Default client implementation backed by `reqwest`.
|
|
4218
4548
|
*
|
|
4219
|
-
* Sends requests to
|
|
4549
|
+
* Sends requests to 174 LLM providers with automatic provider detection
|
|
4220
4550
|
* and per-request routing. The provider is resolved at construction time
|
|
4221
4551
|
* from `model_hint` (or defaults to OpenAI), but individual requests can
|
|
4222
4552
|
* override the provider via model name prefix (e.g. `"anthropic/claude-3-5-sonnet"`
|
|
@@ -4287,6 +4617,17 @@ export class WasmDefaultClient {
|
|
|
4287
4617
|
const ret = wasm.wasmdefaultclient_chat(this.__wbg_ptr, ptr0);
|
|
4288
4618
|
return ret;
|
|
4289
4619
|
}
|
|
4620
|
+
/**
|
|
4621
|
+
* Return an independent handle for an ownership-taking API.
|
|
4622
|
+
*
|
|
4623
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4624
|
+
* handle must remain usable.
|
|
4625
|
+
* @returns {WasmDefaultClient}
|
|
4626
|
+
*/
|
|
4627
|
+
copyForTransfer() {
|
|
4628
|
+
const ret = wasm.wasmdefaultclient_copyForTransfer(this.__wbg_ptr);
|
|
4629
|
+
return WasmDefaultClient.__wrap(ret);
|
|
4630
|
+
}
|
|
4290
4631
|
/**
|
|
4291
4632
|
* @param {WasmCreateBatchRequest} req
|
|
4292
4633
|
* @returns {Promise<WasmBatchObject>}
|
|
@@ -4538,6 +4879,17 @@ export class WasmDeleteResponse {
|
|
|
4538
4879
|
const ptr = this.__destroy_into_raw();
|
|
4539
4880
|
wasm.__wbg_wasmdeleteresponse_free(ptr, 0);
|
|
4540
4881
|
}
|
|
4882
|
+
/**
|
|
4883
|
+
* Return an independent handle for an ownership-taking API.
|
|
4884
|
+
*
|
|
4885
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4886
|
+
* handle must remain usable.
|
|
4887
|
+
* @returns {WasmDeleteResponse}
|
|
4888
|
+
*/
|
|
4889
|
+
copyForTransfer() {
|
|
4890
|
+
const ret = wasm.wasmdeleteresponse_copyForTransfer(this.__wbg_ptr);
|
|
4891
|
+
return WasmDeleteResponse.__wrap(ret);
|
|
4892
|
+
}
|
|
4541
4893
|
/**
|
|
4542
4894
|
* @returns {WasmDeleteResponse}
|
|
4543
4895
|
*/
|
|
@@ -4657,6 +5009,17 @@ export class WasmDeveloperMessage {
|
|
|
4657
5009
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
4658
5010
|
}
|
|
4659
5011
|
}
|
|
5012
|
+
/**
|
|
5013
|
+
* Return an independent handle for an ownership-taking API.
|
|
5014
|
+
*
|
|
5015
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5016
|
+
* handle must remain usable.
|
|
5017
|
+
* @returns {WasmDeveloperMessage}
|
|
5018
|
+
*/
|
|
5019
|
+
copyForTransfer() {
|
|
5020
|
+
const ret = wasm.wasmdevelopermessage_copyForTransfer(this.__wbg_ptr);
|
|
5021
|
+
return WasmDeveloperMessage.__wrap(ret);
|
|
5022
|
+
}
|
|
4660
5023
|
/**
|
|
4661
5024
|
* @returns {WasmDeveloperMessage}
|
|
4662
5025
|
*/
|
|
@@ -4729,6 +5092,17 @@ export class WasmDocumentContent {
|
|
|
4729
5092
|
const ptr = this.__destroy_into_raw();
|
|
4730
5093
|
wasm.__wbg_wasmdocumentcontent_free(ptr, 0);
|
|
4731
5094
|
}
|
|
5095
|
+
/**
|
|
5096
|
+
* Return an independent handle for an ownership-taking API.
|
|
5097
|
+
*
|
|
5098
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5099
|
+
* handle must remain usable.
|
|
5100
|
+
* @returns {WasmDocumentContent}
|
|
5101
|
+
*/
|
|
5102
|
+
copyForTransfer() {
|
|
5103
|
+
const ret = wasm.wasmdocumentcontent_copyForTransfer(this.__wbg_ptr);
|
|
5104
|
+
return WasmDocumentContent.__wrap(ret);
|
|
5105
|
+
}
|
|
4732
5106
|
/**
|
|
4733
5107
|
* @returns {string}
|
|
4734
5108
|
*/
|
|
@@ -4950,6 +5324,17 @@ export class WasmEmbeddingObject {
|
|
|
4950
5324
|
const ptr = this.__destroy_into_raw();
|
|
4951
5325
|
wasm.__wbg_wasmembeddingobject_free(ptr, 0);
|
|
4952
5326
|
}
|
|
5327
|
+
/**
|
|
5328
|
+
* Return an independent handle for an ownership-taking API.
|
|
5329
|
+
*
|
|
5330
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5331
|
+
* handle must remain usable.
|
|
5332
|
+
* @returns {WasmEmbeddingObject}
|
|
5333
|
+
*/
|
|
5334
|
+
copyForTransfer() {
|
|
5335
|
+
const ret = wasm.wasmembeddingobject_copyForTransfer(this.__wbg_ptr);
|
|
5336
|
+
return WasmEmbeddingObject.__wrap(ret);
|
|
5337
|
+
}
|
|
4953
5338
|
/**
|
|
4954
5339
|
* @returns {WasmEmbeddingObject}
|
|
4955
5340
|
*/
|
|
@@ -5048,6 +5433,17 @@ export class WasmEmbeddingRequest {
|
|
|
5048
5433
|
const ptr = this.__destroy_into_raw();
|
|
5049
5434
|
wasm.__wbg_wasmembeddingrequest_free(ptr, 0);
|
|
5050
5435
|
}
|
|
5436
|
+
/**
|
|
5437
|
+
* Return an independent handle for an ownership-taking API.
|
|
5438
|
+
*
|
|
5439
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5440
|
+
* handle must remain usable.
|
|
5441
|
+
* @returns {WasmEmbeddingRequest}
|
|
5442
|
+
*/
|
|
5443
|
+
copyForTransfer() {
|
|
5444
|
+
const ret = wasm.wasmembeddingrequest_copyForTransfer(this.__wbg_ptr);
|
|
5445
|
+
return WasmEmbeddingRequest.__wrap(ret);
|
|
5446
|
+
}
|
|
5051
5447
|
/**
|
|
5052
5448
|
* @returns {WasmEmbeddingRequest}
|
|
5053
5449
|
*/
|
|
@@ -5186,6 +5582,21 @@ export class WasmEmbeddingResponse {
|
|
|
5186
5582
|
wasm.wasmembeddingresponse_clearUsage(this.__wbg_ptr);
|
|
5187
5583
|
}
|
|
5188
5584
|
/**
|
|
5585
|
+
* Return an independent handle for an ownership-taking API.
|
|
5586
|
+
*
|
|
5587
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5588
|
+
* handle must remain usable.
|
|
5589
|
+
* @returns {WasmEmbeddingResponse}
|
|
5590
|
+
*/
|
|
5591
|
+
copyForTransfer() {
|
|
5592
|
+
const ret = wasm.wasmembeddingresponse_copyForTransfer(this.__wbg_ptr);
|
|
5593
|
+
return WasmEmbeddingResponse.__wrap(ret);
|
|
5594
|
+
}
|
|
5595
|
+
/**
|
|
5596
|
+
* Returns detached copies of the elements in `data`.
|
|
5597
|
+
*
|
|
5598
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
5599
|
+
* then assign the array back to `data`.
|
|
5189
5600
|
* @returns {WasmEmbeddingObject[]}
|
|
5190
5601
|
*/
|
|
5191
5602
|
get data() {
|
|
@@ -5222,6 +5633,9 @@ export class WasmEmbeddingResponse {
|
|
|
5222
5633
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
5223
5634
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
5224
5635
|
* the generated setter borrows and leaves your handle alive.
|
|
5636
|
+
* Takes ownership of every element in `data`.
|
|
5637
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
5638
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
5225
5639
|
* @param {string} object
|
|
5226
5640
|
* @param {WasmEmbeddingObject[]} data
|
|
5227
5641
|
* @param {string} model
|
|
@@ -5260,6 +5674,9 @@ export class WasmEmbeddingResponse {
|
|
|
5260
5674
|
}
|
|
5261
5675
|
}
|
|
5262
5676
|
/**
|
|
5677
|
+
* Takes ownership of every element in `data`.
|
|
5678
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
5679
|
+
* element with `copyForTransfer()` before passing the array.
|
|
5263
5680
|
* @param {WasmEmbeddingObject[]} value
|
|
5264
5681
|
*/
|
|
5265
5682
|
set data(value) {
|
|
@@ -5291,6 +5708,10 @@ export class WasmEmbeddingResponse {
|
|
|
5291
5708
|
wasm.wasmembeddingresponse_set_usage(this.__wbg_ptr, value.__wbg_ptr);
|
|
5292
5709
|
}
|
|
5293
5710
|
/**
|
|
5711
|
+
* Returns a detached copy of `usage`.
|
|
5712
|
+
*
|
|
5713
|
+
* Changes to the returned value do not update this object. To update `usage`,
|
|
5714
|
+
* read it, modify the copy, then assign the copy back to `usage`.
|
|
5294
5715
|
* @returns {WasmUsage | undefined}
|
|
5295
5716
|
*/
|
|
5296
5717
|
get usage() {
|
|
@@ -5332,6 +5753,17 @@ export class WasmFileListQuery {
|
|
|
5332
5753
|
}
|
|
5333
5754
|
return v1;
|
|
5334
5755
|
}
|
|
5756
|
+
/**
|
|
5757
|
+
* Return an independent handle for an ownership-taking API.
|
|
5758
|
+
*
|
|
5759
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5760
|
+
* handle must remain usable.
|
|
5761
|
+
* @returns {WasmFileListQuery}
|
|
5762
|
+
*/
|
|
5763
|
+
copyForTransfer() {
|
|
5764
|
+
const ret = wasm.wasmfilelistquery_copyForTransfer(this.__wbg_ptr);
|
|
5765
|
+
return WasmFileListQuery.__wrap(ret);
|
|
5766
|
+
}
|
|
5335
5767
|
/**
|
|
5336
5768
|
* @returns {WasmFileListQuery}
|
|
5337
5769
|
*/
|
|
@@ -5419,6 +5851,21 @@ export class WasmFileListResponse {
|
|
|
5419
5851
|
wasm.__wbg_wasmfilelistresponse_free(ptr, 0);
|
|
5420
5852
|
}
|
|
5421
5853
|
/**
|
|
5854
|
+
* Return an independent handle for an ownership-taking API.
|
|
5855
|
+
*
|
|
5856
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5857
|
+
* handle must remain usable.
|
|
5858
|
+
* @returns {WasmFileListResponse}
|
|
5859
|
+
*/
|
|
5860
|
+
copyForTransfer() {
|
|
5861
|
+
const ret = wasm.wasmfilelistresponse_copyForTransfer(this.__wbg_ptr);
|
|
5862
|
+
return WasmFileListResponse.__wrap(ret);
|
|
5863
|
+
}
|
|
5864
|
+
/**
|
|
5865
|
+
* Returns detached copies of the elements in `data`.
|
|
5866
|
+
*
|
|
5867
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
5868
|
+
* then assign the array back to `data`.
|
|
5422
5869
|
* @returns {WasmFileObject[]}
|
|
5423
5870
|
*/
|
|
5424
5871
|
get data() {
|
|
@@ -5442,6 +5889,9 @@ export class WasmFileListResponse {
|
|
|
5442
5889
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
5443
5890
|
}
|
|
5444
5891
|
/**
|
|
5892
|
+
* Takes ownership of every element in `data`.
|
|
5893
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
5894
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
5445
5895
|
* @param {string | null} [object]
|
|
5446
5896
|
* @param {WasmFileObject[] | null} [data]
|
|
5447
5897
|
* @param {boolean | null} [hasMore]
|
|
@@ -5472,6 +5922,9 @@ export class WasmFileListResponse {
|
|
|
5472
5922
|
}
|
|
5473
5923
|
}
|
|
5474
5924
|
/**
|
|
5925
|
+
* Takes ownership of every element in `data`.
|
|
5926
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
5927
|
+
* element with `copyForTransfer()` before passing the array.
|
|
5475
5928
|
* @param {WasmFileObject[]} value
|
|
5476
5929
|
*/
|
|
5477
5930
|
set data(value) {
|
|
@@ -5529,6 +5982,17 @@ export class WasmFileObject {
|
|
|
5529
5982
|
const ret = wasm.wasmfileobject_bytes(this.__wbg_ptr);
|
|
5530
5983
|
return BigInt.asUintN(64, ret);
|
|
5531
5984
|
}
|
|
5985
|
+
/**
|
|
5986
|
+
* Return an independent handle for an ownership-taking API.
|
|
5987
|
+
*
|
|
5988
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5989
|
+
* handle must remain usable.
|
|
5990
|
+
* @returns {WasmFileObject}
|
|
5991
|
+
*/
|
|
5992
|
+
copyForTransfer() {
|
|
5993
|
+
const ret = wasm.wasmfileobject_copyForTransfer(this.__wbg_ptr);
|
|
5994
|
+
return WasmFileObject.__wrap(ret);
|
|
5995
|
+
}
|
|
5532
5996
|
/**
|
|
5533
5997
|
* @returns {bigint}
|
|
5534
5998
|
*/
|
|
@@ -5754,6 +6218,17 @@ export class WasmFunctionCall {
|
|
|
5754
6218
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5755
6219
|
}
|
|
5756
6220
|
}
|
|
6221
|
+
/**
|
|
6222
|
+
* Return an independent handle for an ownership-taking API.
|
|
6223
|
+
*
|
|
6224
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6225
|
+
* handle must remain usable.
|
|
6226
|
+
* @returns {WasmFunctionCall}
|
|
6227
|
+
*/
|
|
6228
|
+
copyForTransfer() {
|
|
6229
|
+
const ret = wasm.wasmfunctioncall_copyForTransfer(this.__wbg_ptr);
|
|
6230
|
+
return WasmFunctionCall.__wrap(ret);
|
|
6231
|
+
}
|
|
5757
6232
|
/**
|
|
5758
6233
|
* @returns {WasmFunctionCall}
|
|
5759
6234
|
*/
|
|
@@ -5829,6 +6304,17 @@ export class WasmFunctionDefinition {
|
|
|
5829
6304
|
const ptr = this.__destroy_into_raw();
|
|
5830
6305
|
wasm.__wbg_wasmfunctiondefinition_free(ptr, 0);
|
|
5831
6306
|
}
|
|
6307
|
+
/**
|
|
6308
|
+
* Return an independent handle for an ownership-taking API.
|
|
6309
|
+
*
|
|
6310
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6311
|
+
* handle must remain usable.
|
|
6312
|
+
* @returns {WasmFunctionDefinition}
|
|
6313
|
+
*/
|
|
6314
|
+
copyForTransfer() {
|
|
6315
|
+
const ret = wasm.wasmfunctiondefinition_copyForTransfer(this.__wbg_ptr);
|
|
6316
|
+
return WasmFunctionDefinition.__wrap(ret);
|
|
6317
|
+
}
|
|
5832
6318
|
/**
|
|
5833
6319
|
* @returns {WasmFunctionDefinition}
|
|
5834
6320
|
*/
|
|
@@ -5959,6 +6445,17 @@ export class WasmFunctionMessage {
|
|
|
5959
6445
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5960
6446
|
}
|
|
5961
6447
|
}
|
|
6448
|
+
/**
|
|
6449
|
+
* Return an independent handle for an ownership-taking API.
|
|
6450
|
+
*
|
|
6451
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6452
|
+
* handle must remain usable.
|
|
6453
|
+
* @returns {WasmFunctionMessage}
|
|
6454
|
+
*/
|
|
6455
|
+
copyForTransfer() {
|
|
6456
|
+
const ret = wasm.wasmfunctionmessage_copyForTransfer(this.__wbg_ptr);
|
|
6457
|
+
return WasmFunctionMessage.__wrap(ret);
|
|
6458
|
+
}
|
|
5962
6459
|
/**
|
|
5963
6460
|
* @returns {WasmFunctionMessage}
|
|
5964
6461
|
*/
|
|
@@ -6052,6 +6549,17 @@ export class WasmImage {
|
|
|
6052
6549
|
}
|
|
6053
6550
|
return v1;
|
|
6054
6551
|
}
|
|
6552
|
+
/**
|
|
6553
|
+
* Return an independent handle for an ownership-taking API.
|
|
6554
|
+
*
|
|
6555
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6556
|
+
* handle must remain usable.
|
|
6557
|
+
* @returns {WasmImage}
|
|
6558
|
+
*/
|
|
6559
|
+
copyForTransfer() {
|
|
6560
|
+
const ret = wasm.wasmimage_copyForTransfer(this.__wbg_ptr);
|
|
6561
|
+
return WasmImage.__wrap(ret);
|
|
6562
|
+
}
|
|
6055
6563
|
/**
|
|
6056
6564
|
* @returns {WasmImage}
|
|
6057
6565
|
*/
|
|
@@ -6163,6 +6671,17 @@ export class WasmImageUrl {
|
|
|
6163
6671
|
const ptr = this.__destroy_into_raw();
|
|
6164
6672
|
wasm.__wbg_wasmimageurl_free(ptr, 0);
|
|
6165
6673
|
}
|
|
6674
|
+
/**
|
|
6675
|
+
* Return an independent handle for an ownership-taking API.
|
|
6676
|
+
*
|
|
6677
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6678
|
+
* handle must remain usable.
|
|
6679
|
+
* @returns {WasmImageUrl}
|
|
6680
|
+
*/
|
|
6681
|
+
copyForTransfer() {
|
|
6682
|
+
const ret = wasm.wasmimageurl_copyForTransfer(this.__wbg_ptr);
|
|
6683
|
+
return WasmImageUrl.__wrap(ret);
|
|
6684
|
+
}
|
|
6166
6685
|
/**
|
|
6167
6686
|
* @returns {WasmImageUrl}
|
|
6168
6687
|
*/
|
|
@@ -6246,6 +6765,17 @@ export class WasmImagesResponse {
|
|
|
6246
6765
|
const ptr = this.__destroy_into_raw();
|
|
6247
6766
|
wasm.__wbg_wasmimagesresponse_free(ptr, 0);
|
|
6248
6767
|
}
|
|
6768
|
+
/**
|
|
6769
|
+
* Return an independent handle for an ownership-taking API.
|
|
6770
|
+
*
|
|
6771
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6772
|
+
* handle must remain usable.
|
|
6773
|
+
* @returns {WasmImagesResponse}
|
|
6774
|
+
*/
|
|
6775
|
+
copyForTransfer() {
|
|
6776
|
+
const ret = wasm.wasmimagesresponse_copyForTransfer(this.__wbg_ptr);
|
|
6777
|
+
return WasmImagesResponse.__wrap(ret);
|
|
6778
|
+
}
|
|
6249
6779
|
/**
|
|
6250
6780
|
* @returns {bigint}
|
|
6251
6781
|
*/
|
|
@@ -6254,6 +6784,10 @@ export class WasmImagesResponse {
|
|
|
6254
6784
|
return BigInt.asUintN(64, ret);
|
|
6255
6785
|
}
|
|
6256
6786
|
/**
|
|
6787
|
+
* Returns detached copies of the elements in `data`.
|
|
6788
|
+
*
|
|
6789
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
6790
|
+
* then assign the array back to `data`.
|
|
6257
6791
|
* @returns {WasmImage[]}
|
|
6258
6792
|
*/
|
|
6259
6793
|
get data() {
|
|
@@ -6270,6 +6804,9 @@ export class WasmImagesResponse {
|
|
|
6270
6804
|
return WasmImagesResponse.__wrap(ret);
|
|
6271
6805
|
}
|
|
6272
6806
|
/**
|
|
6807
|
+
* Takes ownership of every element in `data`.
|
|
6808
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
6809
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
6273
6810
|
* @param {bigint | null} [created]
|
|
6274
6811
|
* @param {WasmImage[] | null} [data]
|
|
6275
6812
|
*/
|
|
@@ -6288,6 +6825,9 @@ export class WasmImagesResponse {
|
|
|
6288
6825
|
wasm.wasmimagesresponse_set_created(this.__wbg_ptr, value);
|
|
6289
6826
|
}
|
|
6290
6827
|
/**
|
|
6828
|
+
* Takes ownership of every element in `data`.
|
|
6829
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
6830
|
+
* element with `copyForTransfer()` before passing the array.
|
|
6291
6831
|
* @param {WasmImage[]} value
|
|
6292
6832
|
*/
|
|
6293
6833
|
set data(value) {
|
|
@@ -6318,6 +6858,17 @@ export class WasmJsonSchemaFormat {
|
|
|
6318
6858
|
const ptr = this.__destroy_into_raw();
|
|
6319
6859
|
wasm.__wbg_wasmjsonschemaformat_free(ptr, 0);
|
|
6320
6860
|
}
|
|
6861
|
+
/**
|
|
6862
|
+
* Return an independent handle for an ownership-taking API.
|
|
6863
|
+
*
|
|
6864
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6865
|
+
* handle must remain usable.
|
|
6866
|
+
* @returns {WasmJsonSchemaFormat}
|
|
6867
|
+
*/
|
|
6868
|
+
copyForTransfer() {
|
|
6869
|
+
const ret = wasm.wasmjsonschemaformat_copyForTransfer(this.__wbg_ptr);
|
|
6870
|
+
return WasmJsonSchemaFormat.__wrap(ret);
|
|
6871
|
+
}
|
|
6321
6872
|
/**
|
|
6322
6873
|
* @returns {WasmJsonSchemaFormat}
|
|
6323
6874
|
*/
|
|
@@ -6414,7 +6965,7 @@ export class WasmJsonSchemaFormat {
|
|
|
6414
6965
|
if (Symbol.dispose) WasmJsonSchemaFormat.prototype[Symbol.dispose] = WasmJsonSchemaFormat.prototype.free;
|
|
6415
6966
|
|
|
6416
6967
|
/**
|
|
6417
|
-
* Opaque WASM handle for [`liter_llm::
|
|
6968
|
+
* Opaque WASM handle for [`liter_llm::LiterLlmError`] that exposes introspection methods.
|
|
6418
6969
|
*/
|
|
6419
6970
|
export class WasmLiterLlmError {
|
|
6420
6971
|
__destroy_into_raw() {
|
|
@@ -6451,6 +7002,14 @@ export class WasmLiterLlmError {
|
|
|
6451
7002
|
const ret = wasm.wasmliterllmerror_isTransient(this.__wbg_ptr);
|
|
6452
7003
|
return ret !== 0;
|
|
6453
7004
|
}
|
|
7005
|
+
/**
|
|
7006
|
+
* `retry_after` in whole milliseconds (undefined when absent).
|
|
7007
|
+
* @returns {bigint | undefined}
|
|
7008
|
+
*/
|
|
7009
|
+
retryAfter() {
|
|
7010
|
+
const ret = wasm.wasmliterllmerror_retryAfter(this.__wbg_ptr);
|
|
7011
|
+
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
7012
|
+
}
|
|
6454
7013
|
/**
|
|
6455
7014
|
* HTTP status code for this error variant.
|
|
6456
7015
|
* @returns {number}
|
|
@@ -6483,9 +7042,20 @@ export class WasmLlmBudgetConfig {
|
|
|
6483
7042
|
wasm.__wbg_wasmllmbudgetconfig_free(ptr, 0);
|
|
6484
7043
|
}
|
|
6485
7044
|
/**
|
|
7045
|
+
* Return an independent handle for an ownership-taking API.
|
|
7046
|
+
*
|
|
7047
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7048
|
+
* handle must remain usable.
|
|
6486
7049
|
* @returns {WasmLlmBudgetConfig}
|
|
6487
7050
|
*/
|
|
6488
|
-
|
|
7051
|
+
copyForTransfer() {
|
|
7052
|
+
const ret = wasm.wasmllmbudgetconfig_copyForTransfer(this.__wbg_ptr);
|
|
7053
|
+
return WasmLlmBudgetConfig.__wrap(ret);
|
|
7054
|
+
}
|
|
7055
|
+
/**
|
|
7056
|
+
* @returns {WasmLlmBudgetConfig}
|
|
7057
|
+
*/
|
|
7058
|
+
static default() {
|
|
6489
7059
|
const ret = wasm.wasmllmbudgetconfig_default();
|
|
6490
7060
|
return WasmLlmBudgetConfig.__wrap(ret);
|
|
6491
7061
|
}
|
|
@@ -6590,6 +7160,17 @@ export class WasmLlmCacheConfig {
|
|
|
6590
7160
|
}
|
|
6591
7161
|
return v1;
|
|
6592
7162
|
}
|
|
7163
|
+
/**
|
|
7164
|
+
* Return an independent handle for an ownership-taking API.
|
|
7165
|
+
*
|
|
7166
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7167
|
+
* handle must remain usable.
|
|
7168
|
+
* @returns {WasmLlmCacheConfig}
|
|
7169
|
+
*/
|
|
7170
|
+
copyForTransfer() {
|
|
7171
|
+
const ret = wasm.wasmllmcacheconfig_copyForTransfer(this.__wbg_ptr);
|
|
7172
|
+
return WasmLlmCacheConfig.__wrap(ret);
|
|
7173
|
+
}
|
|
6593
7174
|
/**
|
|
6594
7175
|
* @returns {WasmLlmCacheConfig}
|
|
6595
7176
|
*/
|
|
@@ -6712,6 +7293,10 @@ export class WasmLlmConfig {
|
|
|
6712
7293
|
return v1;
|
|
6713
7294
|
}
|
|
6714
7295
|
/**
|
|
7296
|
+
* Returns a detached copy of `bedrock`.
|
|
7297
|
+
*
|
|
7298
|
+
* Changes to the returned value do not update this object. To update `bedrock`,
|
|
7299
|
+
* read it, modify the copy, then assign the copy back to `bedrock`.
|
|
6715
7300
|
* @returns {WasmBedrockConfig | undefined}
|
|
6716
7301
|
*/
|
|
6717
7302
|
get bedrock() {
|
|
@@ -6719,6 +7304,10 @@ export class WasmLlmConfig {
|
|
|
6719
7304
|
return ret === 0 ? undefined : WasmBedrockConfig.__wrap(ret);
|
|
6720
7305
|
}
|
|
6721
7306
|
/**
|
|
7307
|
+
* Returns a detached copy of `budget`.
|
|
7308
|
+
*
|
|
7309
|
+
* Changes to the returned value do not update this object. To update `budget`,
|
|
7310
|
+
* read it, modify the copy, then assign the copy back to `budget`.
|
|
6722
7311
|
* @returns {WasmLlmBudgetConfig | undefined}
|
|
6723
7312
|
*/
|
|
6724
7313
|
get budget() {
|
|
@@ -6726,6 +7315,10 @@ export class WasmLlmConfig {
|
|
|
6726
7315
|
return ret === 0 ? undefined : WasmLlmBudgetConfig.__wrap(ret);
|
|
6727
7316
|
}
|
|
6728
7317
|
/**
|
|
7318
|
+
* Returns a detached copy of `cache`.
|
|
7319
|
+
*
|
|
7320
|
+
* Changes to the returned value do not update this object. To update `cache`,
|
|
7321
|
+
* read it, modify the copy, then assign the copy back to `cache`.
|
|
6729
7322
|
* @returns {WasmLlmCacheConfig | undefined}
|
|
6730
7323
|
*/
|
|
6731
7324
|
get cache() {
|
|
@@ -6754,6 +7347,17 @@ export class WasmLlmConfig {
|
|
|
6754
7347
|
const ret = wasm.wasmllmconfig_cooldownSecs(this.__wbg_ptr);
|
|
6755
7348
|
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
6756
7349
|
}
|
|
7350
|
+
/**
|
|
7351
|
+
* Return an independent handle for an ownership-taking API.
|
|
7352
|
+
*
|
|
7353
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7354
|
+
* handle must remain usable.
|
|
7355
|
+
* @returns {WasmLlmConfig}
|
|
7356
|
+
*/
|
|
7357
|
+
copyForTransfer() {
|
|
7358
|
+
const ret = wasm.wasmllmconfig_copyForTransfer(this.__wbg_ptr);
|
|
7359
|
+
return WasmLlmConfig.__wrap(ret);
|
|
7360
|
+
}
|
|
6757
7361
|
/**
|
|
6758
7362
|
* @returns {boolean | undefined}
|
|
6759
7363
|
*/
|
|
@@ -6783,6 +7387,10 @@ export class WasmLlmConfig {
|
|
|
6783
7387
|
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
6784
7388
|
}
|
|
6785
7389
|
/**
|
|
7390
|
+
* Returns a detached copy of `inFlightLimit`.
|
|
7391
|
+
*
|
|
7392
|
+
* Changes to the returned value do not update this object. To update `inFlightLimit`,
|
|
7393
|
+
* read it, modify the copy, then assign the copy back to `inFlightLimit`.
|
|
6786
7394
|
* @returns {WasmLlmInFlightLimitConfig | undefined}
|
|
6787
7395
|
*/
|
|
6788
7396
|
get inFlightLimit() {
|
|
@@ -6831,6 +7439,9 @@ export class WasmLlmConfig {
|
|
|
6831
7439
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
6832
7440
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
6833
7441
|
* the generated setter borrows and leaves your handle alive.
|
|
7442
|
+
* Takes ownership of every element in `providers`.
|
|
7443
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
7444
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
6834
7445
|
* @param {string | null} [model]
|
|
6835
7446
|
* @param {string | null} [apiKey]
|
|
6836
7447
|
* @param {string | null} [baseUrl]
|
|
@@ -6891,6 +7502,10 @@ export class WasmLlmConfig {
|
|
|
6891
7502
|
return this;
|
|
6892
7503
|
}
|
|
6893
7504
|
/**
|
|
7505
|
+
* Returns detached copies of the elements in `providers`.
|
|
7506
|
+
*
|
|
7507
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
7508
|
+
* then assign the array back to `providers`.
|
|
6894
7509
|
* @returns {Array<any> | undefined}
|
|
6895
7510
|
*/
|
|
6896
7511
|
get providers() {
|
|
@@ -6898,6 +7513,10 @@ export class WasmLlmConfig {
|
|
|
6898
7513
|
return ret;
|
|
6899
7514
|
}
|
|
6900
7515
|
/**
|
|
7516
|
+
* Returns a detached copy of `rateLimit`.
|
|
7517
|
+
*
|
|
7518
|
+
* Changes to the returned value do not update this object. To update `rateLimit`,
|
|
7519
|
+
* read it, modify the copy, then assign the copy back to `rateLimit`.
|
|
6901
7520
|
* @returns {WasmLlmRateLimitConfig | undefined}
|
|
6902
7521
|
*/
|
|
6903
7522
|
get rateLimit() {
|
|
@@ -6999,6 +7618,9 @@ export class WasmLlmConfig {
|
|
|
6999
7618
|
wasm.wasmllmconfig_set_model(this.__wbg_ptr, ptr0, len0);
|
|
7000
7619
|
}
|
|
7001
7620
|
/**
|
|
7621
|
+
* Takes ownership of every element in `providers`.
|
|
7622
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
7623
|
+
* element with `copyForTransfer()` before passing the array.
|
|
7002
7624
|
* @param {WasmLlmProviderConfig[] | null} [value]
|
|
7003
7625
|
*/
|
|
7004
7626
|
set providers(value) {
|
|
@@ -7075,6 +7697,17 @@ export class WasmLlmInFlightLimitConfig {
|
|
|
7075
7697
|
const ptr = this.__destroy_into_raw();
|
|
7076
7698
|
wasm.__wbg_wasmllminflightlimitconfig_free(ptr, 0);
|
|
7077
7699
|
}
|
|
7700
|
+
/**
|
|
7701
|
+
* Return an independent handle for an ownership-taking API.
|
|
7702
|
+
*
|
|
7703
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7704
|
+
* handle must remain usable.
|
|
7705
|
+
* @returns {WasmLlmInFlightLimitConfig}
|
|
7706
|
+
*/
|
|
7707
|
+
copyForTransfer() {
|
|
7708
|
+
const ret = wasm.wasmllminflightlimitconfig_copyForTransfer(this.__wbg_ptr);
|
|
7709
|
+
return WasmLlmInFlightLimitConfig.__wrap(ret);
|
|
7710
|
+
}
|
|
7078
7711
|
/**
|
|
7079
7712
|
* @returns {WasmLlmInFlightLimitConfig}
|
|
7080
7713
|
*/
|
|
@@ -7160,6 +7793,17 @@ export class WasmLlmProviderConfig {
|
|
|
7160
7793
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
7161
7794
|
}
|
|
7162
7795
|
}
|
|
7796
|
+
/**
|
|
7797
|
+
* Return an independent handle for an ownership-taking API.
|
|
7798
|
+
*
|
|
7799
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7800
|
+
* handle must remain usable.
|
|
7801
|
+
* @returns {WasmLlmProviderConfig}
|
|
7802
|
+
*/
|
|
7803
|
+
copyForTransfer() {
|
|
7804
|
+
const ret = wasm.wasmllmproviderconfig_copyForTransfer(this.__wbg_ptr);
|
|
7805
|
+
return WasmLlmProviderConfig.__wrap(ret);
|
|
7806
|
+
}
|
|
7163
7807
|
/**
|
|
7164
7808
|
* @returns {WasmLlmProviderConfig}
|
|
7165
7809
|
*/
|
|
@@ -7266,6 +7910,17 @@ export class WasmLlmRateLimitConfig {
|
|
|
7266
7910
|
const ptr = this.__destroy_into_raw();
|
|
7267
7911
|
wasm.__wbg_wasmllmratelimitconfig_free(ptr, 0);
|
|
7268
7912
|
}
|
|
7913
|
+
/**
|
|
7914
|
+
* Return an independent handle for an ownership-taking API.
|
|
7915
|
+
*
|
|
7916
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7917
|
+
* handle must remain usable.
|
|
7918
|
+
* @returns {WasmLlmRateLimitConfig}
|
|
7919
|
+
*/
|
|
7920
|
+
copyForTransfer() {
|
|
7921
|
+
const ret = wasm.wasmllmratelimitconfig_copyForTransfer(this.__wbg_ptr);
|
|
7922
|
+
return WasmLlmRateLimitConfig.__wrap(ret);
|
|
7923
|
+
}
|
|
7269
7924
|
/**
|
|
7270
7925
|
* @returns {WasmLlmRateLimitConfig}
|
|
7271
7926
|
*/
|
|
@@ -7380,6 +8035,17 @@ export class WasmModelInfo {
|
|
|
7380
8035
|
const ret = wasm.wasmmodelinfo_cacheReadInputTokenCost(this.__wbg_ptr);
|
|
7381
8036
|
return ret[0] === 0 ? undefined : ret[1];
|
|
7382
8037
|
}
|
|
8038
|
+
/**
|
|
8039
|
+
* Return an independent handle for an ownership-taking API.
|
|
8040
|
+
*
|
|
8041
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8042
|
+
* handle must remain usable.
|
|
8043
|
+
* @returns {WasmModelInfo}
|
|
8044
|
+
*/
|
|
8045
|
+
copyForTransfer() {
|
|
8046
|
+
const ret = wasm.wasmmodelinfo_copyForTransfer(this.__wbg_ptr);
|
|
8047
|
+
return WasmModelInfo.__wrap(ret);
|
|
8048
|
+
}
|
|
7383
8049
|
/**
|
|
7384
8050
|
* @returns {WasmModelInfo}
|
|
7385
8051
|
*/
|
|
@@ -7435,6 +8101,9 @@ export class WasmModelInfo {
|
|
|
7435
8101
|
return v1;
|
|
7436
8102
|
}
|
|
7437
8103
|
/**
|
|
8104
|
+
* Takes ownership of every element in `tiers`.
|
|
8105
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
8106
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
7438
8107
|
* @param {number | null} [inputCostPerToken]
|
|
7439
8108
|
* @param {number | null} [outputCostPerToken]
|
|
7440
8109
|
* @param {WasmModelTier[] | null} [tiers]
|
|
@@ -7597,6 +8266,9 @@ export class WasmModelInfo {
|
|
|
7597
8266
|
wasm.wasmmodelinfo_set_supportsVision(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
7598
8267
|
}
|
|
7599
8268
|
/**
|
|
8269
|
+
* Takes ownership of every element in `tiers`.
|
|
8270
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
8271
|
+
* element with `copyForTransfer()` before passing the array.
|
|
7600
8272
|
* @param {WasmModelTier[]} value
|
|
7601
8273
|
*/
|
|
7602
8274
|
set tiers(value) {
|
|
@@ -7654,6 +8326,10 @@ export class WasmModelInfo {
|
|
|
7654
8326
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
7655
8327
|
}
|
|
7656
8328
|
/**
|
|
8329
|
+
* Returns detached copies of the elements in `tiers`.
|
|
8330
|
+
*
|
|
8331
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
8332
|
+
* then assign the array back to `tiers`.
|
|
7657
8333
|
* @returns {WasmModelTier[]}
|
|
7658
8334
|
*/
|
|
7659
8335
|
get tiers() {
|
|
@@ -7691,6 +8367,17 @@ export class WasmModelObject {
|
|
|
7691
8367
|
const ptr = this.__destroy_into_raw();
|
|
7692
8368
|
wasm.__wbg_wasmmodelobject_free(ptr, 0);
|
|
7693
8369
|
}
|
|
8370
|
+
/**
|
|
8371
|
+
* Return an independent handle for an ownership-taking API.
|
|
8372
|
+
*
|
|
8373
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8374
|
+
* handle must remain usable.
|
|
8375
|
+
* @returns {WasmModelObject}
|
|
8376
|
+
*/
|
|
8377
|
+
copyForTransfer() {
|
|
8378
|
+
const ret = wasm.wasmmodelobject_copyForTransfer(this.__wbg_ptr);
|
|
8379
|
+
return WasmModelObject.__wrap(ret);
|
|
8380
|
+
}
|
|
7694
8381
|
/**
|
|
7695
8382
|
* @returns {bigint}
|
|
7696
8383
|
*/
|
|
@@ -7842,6 +8529,17 @@ export class WasmModelTier {
|
|
|
7842
8529
|
const ret = wasm.wasmmodeltier_cacheReadInputTokenCost(this.__wbg_ptr);
|
|
7843
8530
|
return ret[0] === 0 ? undefined : ret[1];
|
|
7844
8531
|
}
|
|
8532
|
+
/**
|
|
8533
|
+
* Return an independent handle for an ownership-taking API.
|
|
8534
|
+
*
|
|
8535
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8536
|
+
* handle must remain usable.
|
|
8537
|
+
* @returns {WasmModelTier}
|
|
8538
|
+
*/
|
|
8539
|
+
copyForTransfer() {
|
|
8540
|
+
const ret = wasm.wasmmodeltier_copyForTransfer(this.__wbg_ptr);
|
|
8541
|
+
return WasmModelTier.__wrap(ret);
|
|
8542
|
+
}
|
|
7845
8543
|
/**
|
|
7846
8544
|
* @returns {WasmModelTier}
|
|
7847
8545
|
*/
|
|
@@ -7979,6 +8677,21 @@ export class WasmModelsListResponse {
|
|
|
7979
8677
|
wasm.__wbg_wasmmodelslistresponse_free(ptr, 0);
|
|
7980
8678
|
}
|
|
7981
8679
|
/**
|
|
8680
|
+
* Return an independent handle for an ownership-taking API.
|
|
8681
|
+
*
|
|
8682
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8683
|
+
* handle must remain usable.
|
|
8684
|
+
* @returns {WasmModelsListResponse}
|
|
8685
|
+
*/
|
|
8686
|
+
copyForTransfer() {
|
|
8687
|
+
const ret = wasm.wasmmodelslistresponse_copyForTransfer(this.__wbg_ptr);
|
|
8688
|
+
return WasmModelsListResponse.__wrap(ret);
|
|
8689
|
+
}
|
|
8690
|
+
/**
|
|
8691
|
+
* Returns detached copies of the elements in `data`.
|
|
8692
|
+
*
|
|
8693
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
8694
|
+
* then assign the array back to `data`.
|
|
7982
8695
|
* @returns {WasmModelObject[]}
|
|
7983
8696
|
*/
|
|
7984
8697
|
get data() {
|
|
@@ -7995,6 +8708,9 @@ export class WasmModelsListResponse {
|
|
|
7995
8708
|
return WasmModelsListResponse.__wrap(ret);
|
|
7996
8709
|
}
|
|
7997
8710
|
/**
|
|
8711
|
+
* Takes ownership of every element in `data`.
|
|
8712
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
8713
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
7998
8714
|
* @param {string | null} [object]
|
|
7999
8715
|
* @param {WasmModelObject[] | null} [data]
|
|
8000
8716
|
*/
|
|
@@ -8024,6 +8740,9 @@ export class WasmModelsListResponse {
|
|
|
8024
8740
|
}
|
|
8025
8741
|
}
|
|
8026
8742
|
/**
|
|
8743
|
+
* Takes ownership of every element in `data`.
|
|
8744
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
8745
|
+
* element with `copyForTransfer()` before passing the array.
|
|
8027
8746
|
* @param {WasmModelObject[]} value
|
|
8028
8747
|
*/
|
|
8029
8748
|
set data(value) {
|
|
@@ -8062,6 +8781,17 @@ export class WasmModerationCategories {
|
|
|
8062
8781
|
const ptr = this.__destroy_into_raw();
|
|
8063
8782
|
wasm.__wbg_wasmmoderationcategories_free(ptr, 0);
|
|
8064
8783
|
}
|
|
8784
|
+
/**
|
|
8785
|
+
* Return an independent handle for an ownership-taking API.
|
|
8786
|
+
*
|
|
8787
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8788
|
+
* handle must remain usable.
|
|
8789
|
+
* @returns {WasmModerationCategories}
|
|
8790
|
+
*/
|
|
8791
|
+
copyForTransfer() {
|
|
8792
|
+
const ret = wasm.wasmmoderationcategories_copyForTransfer(this.__wbg_ptr);
|
|
8793
|
+
return WasmModerationCategories.__wrap(ret);
|
|
8794
|
+
}
|
|
8065
8795
|
/**
|
|
8066
8796
|
* @returns {WasmModerationCategories}
|
|
8067
8797
|
*/
|
|
@@ -8254,6 +8984,17 @@ export class WasmModerationCategoryScores {
|
|
|
8254
8984
|
const ptr = this.__destroy_into_raw();
|
|
8255
8985
|
wasm.__wbg_wasmmoderationcategoryscores_free(ptr, 0);
|
|
8256
8986
|
}
|
|
8987
|
+
/**
|
|
8988
|
+
* Return an independent handle for an ownership-taking API.
|
|
8989
|
+
*
|
|
8990
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8991
|
+
* handle must remain usable.
|
|
8992
|
+
* @returns {WasmModerationCategoryScores}
|
|
8993
|
+
*/
|
|
8994
|
+
copyForTransfer() {
|
|
8995
|
+
const ret = wasm.wasmmoderationcategoryscores_copyForTransfer(this.__wbg_ptr);
|
|
8996
|
+
return WasmModerationCategoryScores.__wrap(ret);
|
|
8997
|
+
}
|
|
8257
8998
|
/**
|
|
8258
8999
|
* @returns {WasmModerationCategoryScores}
|
|
8259
9000
|
*/
|
|
@@ -8446,6 +9187,17 @@ export class WasmModerationRequest {
|
|
|
8446
9187
|
const ptr = this.__destroy_into_raw();
|
|
8447
9188
|
wasm.__wbg_wasmmoderationrequest_free(ptr, 0);
|
|
8448
9189
|
}
|
|
9190
|
+
/**
|
|
9191
|
+
* Return an independent handle for an ownership-taking API.
|
|
9192
|
+
*
|
|
9193
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
9194
|
+
* handle must remain usable.
|
|
9195
|
+
* @returns {WasmModerationRequest}
|
|
9196
|
+
*/
|
|
9197
|
+
copyForTransfer() {
|
|
9198
|
+
const ret = wasm.wasmmoderationrequest_copyForTransfer(this.__wbg_ptr);
|
|
9199
|
+
return WasmModerationRequest.__wrap(ret);
|
|
9200
|
+
}
|
|
8449
9201
|
/**
|
|
8450
9202
|
* @returns {WasmModerationRequest}
|
|
8451
9203
|
*/
|
|
@@ -8521,6 +9273,17 @@ export class WasmModerationResponse {
|
|
|
8521
9273
|
const ptr = this.__destroy_into_raw();
|
|
8522
9274
|
wasm.__wbg_wasmmoderationresponse_free(ptr, 0);
|
|
8523
9275
|
}
|
|
9276
|
+
/**
|
|
9277
|
+
* Return an independent handle for an ownership-taking API.
|
|
9278
|
+
*
|
|
9279
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
9280
|
+
* handle must remain usable.
|
|
9281
|
+
* @returns {WasmModerationResponse}
|
|
9282
|
+
*/
|
|
9283
|
+
copyForTransfer() {
|
|
9284
|
+
const ret = wasm.wasmmoderationresponse_copyForTransfer(this.__wbg_ptr);
|
|
9285
|
+
return WasmModerationResponse.__wrap(ret);
|
|
9286
|
+
}
|
|
8524
9287
|
/**
|
|
8525
9288
|
* @returns {WasmModerationResponse}
|
|
8526
9289
|
*/
|
|
@@ -8559,6 +9322,9 @@ export class WasmModerationResponse {
|
|
|
8559
9322
|
}
|
|
8560
9323
|
}
|
|
8561
9324
|
/**
|
|
9325
|
+
* Takes ownership of every element in `results`.
|
|
9326
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
9327
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
8562
9328
|
* @param {string} id
|
|
8563
9329
|
* @param {string} model
|
|
8564
9330
|
* @param {WasmModerationResult[]} results
|
|
@@ -8576,6 +9342,10 @@ export class WasmModerationResponse {
|
|
|
8576
9342
|
return this;
|
|
8577
9343
|
}
|
|
8578
9344
|
/**
|
|
9345
|
+
* Returns detached copies of the elements in `results`.
|
|
9346
|
+
*
|
|
9347
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
9348
|
+
* then assign the array back to `results`.
|
|
8579
9349
|
* @returns {WasmModerationResult[]}
|
|
8580
9350
|
*/
|
|
8581
9351
|
get results() {
|
|
@@ -8601,6 +9371,9 @@ export class WasmModerationResponse {
|
|
|
8601
9371
|
wasm.wasmmoderationresponse_set_model(this.__wbg_ptr, ptr0, len0);
|
|
8602
9372
|
}
|
|
8603
9373
|
/**
|
|
9374
|
+
* Takes ownership of every element in `results`.
|
|
9375
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
9376
|
+
* element with `copyForTransfer()` before passing the array.
|
|
8604
9377
|
* @param {WasmModerationResult[]} value
|
|
8605
9378
|
*/
|
|
8606
9379
|
set results(value) {
|
|
@@ -8638,6 +9411,10 @@ export class WasmModerationResult {
|
|
|
8638
9411
|
wasm.__wbg_wasmmoderationresult_free(ptr, 0);
|
|
8639
9412
|
}
|
|
8640
9413
|
/**
|
|
9414
|
+
* Returns a detached copy of `categories`.
|
|
9415
|
+
*
|
|
9416
|
+
* Changes to the returned value do not update this object. To update `categories`,
|
|
9417
|
+
* read it, modify the copy, then assign the copy back to `categories`.
|
|
8641
9418
|
* @returns {WasmModerationCategories}
|
|
8642
9419
|
*/
|
|
8643
9420
|
get categories() {
|
|
@@ -8645,12 +9422,27 @@ export class WasmModerationResult {
|
|
|
8645
9422
|
return WasmModerationCategories.__wrap(ret);
|
|
8646
9423
|
}
|
|
8647
9424
|
/**
|
|
9425
|
+
* Returns a detached copy of `categoryScores`.
|
|
9426
|
+
*
|
|
9427
|
+
* Changes to the returned value do not update this object. To update `categoryScores`,
|
|
9428
|
+
* read it, modify the copy, then assign the copy back to `categoryScores`.
|
|
8648
9429
|
* @returns {WasmModerationCategoryScores}
|
|
8649
9430
|
*/
|
|
8650
9431
|
get categoryScores() {
|
|
8651
9432
|
const ret = wasm.wasmmoderationresult_categoryScores(this.__wbg_ptr);
|
|
8652
9433
|
return WasmModerationCategoryScores.__wrap(ret);
|
|
8653
9434
|
}
|
|
9435
|
+
/**
|
|
9436
|
+
* Return an independent handle for an ownership-taking API.
|
|
9437
|
+
*
|
|
9438
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
9439
|
+
* handle must remain usable.
|
|
9440
|
+
* @returns {WasmModerationResult}
|
|
9441
|
+
*/
|
|
9442
|
+
copyForTransfer() {
|
|
9443
|
+
const ret = wasm.wasmmoderationresult_copyForTransfer(this.__wbg_ptr);
|
|
9444
|
+
return WasmModerationResult.__wrap(ret);
|
|
9445
|
+
}
|
|
8654
9446
|
/**
|
|
8655
9447
|
* @returns {WasmModerationResult}
|
|
8656
9448
|
*/
|
|
@@ -8846,6 +9638,17 @@ export class WasmOcrImage {
|
|
|
8846
9638
|
const ptr = this.__destroy_into_raw();
|
|
8847
9639
|
wasm.__wbg_wasmocrimage_free(ptr, 0);
|
|
8848
9640
|
}
|
|
9641
|
+
/**
|
|
9642
|
+
* Return an independent handle for an ownership-taking API.
|
|
9643
|
+
*
|
|
9644
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
9645
|
+
* handle must remain usable.
|
|
9646
|
+
* @returns {WasmOcrImage}
|
|
9647
|
+
*/
|
|
9648
|
+
copyForTransfer() {
|
|
9649
|
+
const ret = wasm.wasmocrimage_copyForTransfer(this.__wbg_ptr);
|
|
9650
|
+
return WasmOcrImage.__wrap(ret);
|
|
9651
|
+
}
|
|
8849
9652
|
/**
|
|
8850
9653
|
* @returns {WasmOcrImage}
|
|
8851
9654
|
*/
|
|
@@ -8942,6 +9745,17 @@ export class WasmOcrPage {
|
|
|
8942
9745
|
clearDimensions() {
|
|
8943
9746
|
wasm.wasmocrpage_clearDimensions(this.__wbg_ptr);
|
|
8944
9747
|
}
|
|
9748
|
+
/**
|
|
9749
|
+
* Return an independent handle for an ownership-taking API.
|
|
9750
|
+
*
|
|
9751
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
9752
|
+
* handle must remain usable.
|
|
9753
|
+
* @returns {WasmOcrPage}
|
|
9754
|
+
*/
|
|
9755
|
+
copyForTransfer() {
|
|
9756
|
+
const ret = wasm.wasmocrpage_copyForTransfer(this.__wbg_ptr);
|
|
9757
|
+
return WasmOcrPage.__wrap(ret);
|
|
9758
|
+
}
|
|
8945
9759
|
/**
|
|
8946
9760
|
* @returns {WasmOcrPage}
|
|
8947
9761
|
*/
|
|
@@ -8950,6 +9764,10 @@ export class WasmOcrPage {
|
|
|
8950
9764
|
return WasmOcrPage.__wrap(ret);
|
|
8951
9765
|
}
|
|
8952
9766
|
/**
|
|
9767
|
+
* Returns a detached copy of `dimensions`.
|
|
9768
|
+
*
|
|
9769
|
+
* Changes to the returned value do not update this object. To update `dimensions`,
|
|
9770
|
+
* read it, modify the copy, then assign the copy back to `dimensions`.
|
|
8953
9771
|
* @returns {WasmPageDimensions | undefined}
|
|
8954
9772
|
*/
|
|
8955
9773
|
get dimensions() {
|
|
@@ -8957,6 +9775,10 @@ export class WasmOcrPage {
|
|
|
8957
9775
|
return ret === 0 ? undefined : WasmPageDimensions.__wrap(ret);
|
|
8958
9776
|
}
|
|
8959
9777
|
/**
|
|
9778
|
+
* Returns detached copies of the elements in `images`.
|
|
9779
|
+
*
|
|
9780
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
9781
|
+
* then assign the array back to `images`.
|
|
8960
9782
|
* @returns {Array<any> | undefined}
|
|
8961
9783
|
*/
|
|
8962
9784
|
get images() {
|
|
@@ -8991,6 +9813,9 @@ export class WasmOcrPage {
|
|
|
8991
9813
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
8992
9814
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
8993
9815
|
* the generated setter borrows and leaves your handle alive.
|
|
9816
|
+
* Takes ownership of every element in `images`.
|
|
9817
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
9818
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
8994
9819
|
* @param {number} index
|
|
8995
9820
|
* @param {string} markdown
|
|
8996
9821
|
* @param {WasmOcrImage[] | null} [images]
|
|
@@ -9019,6 +9844,9 @@ export class WasmOcrPage {
|
|
|
9019
9844
|
wasm.wasmocrpage_set_dimensions(this.__wbg_ptr, value.__wbg_ptr);
|
|
9020
9845
|
}
|
|
9021
9846
|
/**
|
|
9847
|
+
* Takes ownership of every element in `images`.
|
|
9848
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
9849
|
+
* element with `copyForTransfer()` before passing the array.
|
|
9022
9850
|
* @param {WasmOcrImage[] | null} [value]
|
|
9023
9851
|
*/
|
|
9024
9852
|
set images(value) {
|
|
@@ -9063,6 +9891,17 @@ export class WasmOcrRequest {
|
|
|
9063
9891
|
const ptr = this.__destroy_into_raw();
|
|
9064
9892
|
wasm.__wbg_wasmocrrequest_free(ptr, 0);
|
|
9065
9893
|
}
|
|
9894
|
+
/**
|
|
9895
|
+
* Return an independent handle for an ownership-taking API.
|
|
9896
|
+
*
|
|
9897
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
9898
|
+
* handle must remain usable.
|
|
9899
|
+
* @returns {WasmOcrRequest}
|
|
9900
|
+
*/
|
|
9901
|
+
copyForTransfer() {
|
|
9902
|
+
const ret = wasm.wasmocrrequest_copyForTransfer(this.__wbg_ptr);
|
|
9903
|
+
return WasmOcrRequest.__wrap(ret);
|
|
9904
|
+
}
|
|
9066
9905
|
/**
|
|
9067
9906
|
* @returns {WasmOcrRequest}
|
|
9068
9907
|
*/
|
|
@@ -9181,6 +10020,17 @@ export class WasmOcrResponse {
|
|
|
9181
10020
|
clearUsage() {
|
|
9182
10021
|
wasm.wasmocrresponse_clearUsage(this.__wbg_ptr);
|
|
9183
10022
|
}
|
|
10023
|
+
/**
|
|
10024
|
+
* Return an independent handle for an ownership-taking API.
|
|
10025
|
+
*
|
|
10026
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10027
|
+
* handle must remain usable.
|
|
10028
|
+
* @returns {WasmOcrResponse}
|
|
10029
|
+
*/
|
|
10030
|
+
copyForTransfer() {
|
|
10031
|
+
const ret = wasm.wasmocrresponse_copyForTransfer(this.__wbg_ptr);
|
|
10032
|
+
return WasmOcrResponse.__wrap(ret);
|
|
10033
|
+
}
|
|
9184
10034
|
/**
|
|
9185
10035
|
* @returns {WasmOcrResponse}
|
|
9186
10036
|
*/
|
|
@@ -9209,6 +10059,9 @@ export class WasmOcrResponse {
|
|
|
9209
10059
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
9210
10060
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
9211
10061
|
* the generated setter borrows and leaves your handle alive.
|
|
10062
|
+
* Takes ownership of every element in `pages`.
|
|
10063
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
10064
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
9212
10065
|
* @param {WasmOcrPage[]} pages
|
|
9213
10066
|
* @param {string} model
|
|
9214
10067
|
* @param {WasmUsage | null} [usage]
|
|
@@ -9229,6 +10082,10 @@ export class WasmOcrResponse {
|
|
|
9229
10082
|
return this;
|
|
9230
10083
|
}
|
|
9231
10084
|
/**
|
|
10085
|
+
* Returns detached copies of the elements in `pages`.
|
|
10086
|
+
*
|
|
10087
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
10088
|
+
* then assign the array back to `pages`.
|
|
9232
10089
|
* @returns {WasmOcrPage[]}
|
|
9233
10090
|
*/
|
|
9234
10091
|
get pages() {
|
|
@@ -9246,6 +10103,9 @@ export class WasmOcrResponse {
|
|
|
9246
10103
|
wasm.wasmocrresponse_set_model(this.__wbg_ptr, ptr0, len0);
|
|
9247
10104
|
}
|
|
9248
10105
|
/**
|
|
10106
|
+
* Takes ownership of every element in `pages`.
|
|
10107
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
10108
|
+
* element with `copyForTransfer()` before passing the array.
|
|
9249
10109
|
* @param {WasmOcrPage[]} value
|
|
9250
10110
|
*/
|
|
9251
10111
|
set pages(value) {
|
|
@@ -9261,6 +10121,10 @@ export class WasmOcrResponse {
|
|
|
9261
10121
|
wasm.wasmocrresponse_set_usage(this.__wbg_ptr, value.__wbg_ptr);
|
|
9262
10122
|
}
|
|
9263
10123
|
/**
|
|
10124
|
+
* Returns a detached copy of `usage`.
|
|
10125
|
+
*
|
|
10126
|
+
* Changes to the returned value do not update this object. To update `usage`,
|
|
10127
|
+
* read it, modify the copy, then assign the copy back to `usage`.
|
|
9264
10128
|
* @returns {WasmUsage | undefined}
|
|
9265
10129
|
*/
|
|
9266
10130
|
get usage() {
|
|
@@ -9290,6 +10154,17 @@ export class WasmPageDimensions {
|
|
|
9290
10154
|
const ptr = this.__destroy_into_raw();
|
|
9291
10155
|
wasm.__wbg_wasmpagedimensions_free(ptr, 0);
|
|
9292
10156
|
}
|
|
10157
|
+
/**
|
|
10158
|
+
* Return an independent handle for an ownership-taking API.
|
|
10159
|
+
*
|
|
10160
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10161
|
+
* handle must remain usable.
|
|
10162
|
+
* @returns {WasmPageDimensions}
|
|
10163
|
+
*/
|
|
10164
|
+
copyForTransfer() {
|
|
10165
|
+
const ret = wasm.wasmpagedimensions_copyForTransfer(this.__wbg_ptr);
|
|
10166
|
+
return WasmPageDimensions.__wrap(ret);
|
|
10167
|
+
}
|
|
9293
10168
|
/**
|
|
9294
10169
|
* @returns {WasmPageDimensions}
|
|
9295
10170
|
*/
|
|
@@ -9375,6 +10250,17 @@ export class WasmPromptTokensDetails {
|
|
|
9375
10250
|
const ret = wasm.wasmprompttokensdetails_cachedTokens(this.__wbg_ptr);
|
|
9376
10251
|
return BigInt.asUintN(64, ret);
|
|
9377
10252
|
}
|
|
10253
|
+
/**
|
|
10254
|
+
* Return an independent handle for an ownership-taking API.
|
|
10255
|
+
*
|
|
10256
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10257
|
+
* handle must remain usable.
|
|
10258
|
+
* @returns {WasmPromptTokensDetails}
|
|
10259
|
+
*/
|
|
10260
|
+
copyForTransfer() {
|
|
10261
|
+
const ret = wasm.wasmprompttokensdetails_copyForTransfer(this.__wbg_ptr);
|
|
10262
|
+
return WasmPromptTokensDetails.__wrap(ret);
|
|
10263
|
+
}
|
|
9378
10264
|
/**
|
|
9379
10265
|
* @returns {WasmPromptTokensDetails}
|
|
9380
10266
|
*/
|
|
@@ -9451,6 +10337,17 @@ export class WasmProviderCapabilities {
|
|
|
9451
10337
|
const ret = wasm.wasmprovidercapabilities_audioOut(this.__wbg_ptr);
|
|
9452
10338
|
return ret !== 0;
|
|
9453
10339
|
}
|
|
10340
|
+
/**
|
|
10341
|
+
* Return an independent handle for an ownership-taking API.
|
|
10342
|
+
*
|
|
10343
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10344
|
+
* handle must remain usable.
|
|
10345
|
+
* @returns {WasmProviderCapabilities}
|
|
10346
|
+
*/
|
|
10347
|
+
copyForTransfer() {
|
|
10348
|
+
const ret = wasm.wasmprovidercapabilities_copyForTransfer(this.__wbg_ptr);
|
|
10349
|
+
return WasmProviderCapabilities.__wrap(ret);
|
|
10350
|
+
}
|
|
9454
10351
|
/**
|
|
9455
10352
|
* @returns {WasmProviderCapabilities}
|
|
9456
10353
|
*/
|
|
@@ -9577,6 +10474,10 @@ export class WasmProviderConfig {
|
|
|
9577
10474
|
wasm.__wbg_wasmproviderconfig_free(ptr, 0);
|
|
9578
10475
|
}
|
|
9579
10476
|
/**
|
|
10477
|
+
* Returns a detached copy of `auth`.
|
|
10478
|
+
*
|
|
10479
|
+
* Changes to the returned value do not update this object. To update `auth`,
|
|
10480
|
+
* read it, modify the copy, then assign the copy back to `auth`.
|
|
9580
10481
|
* @returns {WasmAuthConfig | undefined}
|
|
9581
10482
|
*/
|
|
9582
10483
|
get auth() {
|
|
@@ -9598,6 +10499,17 @@ export class WasmProviderConfig {
|
|
|
9598
10499
|
clearAuth() {
|
|
9599
10500
|
wasm.wasmproviderconfig_clearAuth(this.__wbg_ptr);
|
|
9600
10501
|
}
|
|
10502
|
+
/**
|
|
10503
|
+
* Return an independent handle for an ownership-taking API.
|
|
10504
|
+
*
|
|
10505
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10506
|
+
* handle must remain usable.
|
|
10507
|
+
* @returns {WasmProviderConfig}
|
|
10508
|
+
*/
|
|
10509
|
+
copyForTransfer() {
|
|
10510
|
+
const ret = wasm.wasmproviderconfig_copyForTransfer(this.__wbg_ptr);
|
|
10511
|
+
return WasmProviderConfig.__wrap(ret);
|
|
10512
|
+
}
|
|
9601
10513
|
/**
|
|
9602
10514
|
* @returns {WasmProviderConfig}
|
|
9603
10515
|
*/
|
|
@@ -9796,6 +10708,17 @@ export class WasmRerankRequest {
|
|
|
9796
10708
|
const ptr = this.__destroy_into_raw();
|
|
9797
10709
|
wasm.__wbg_wasmrerankrequest_free(ptr, 0);
|
|
9798
10710
|
}
|
|
10711
|
+
/**
|
|
10712
|
+
* Return an independent handle for an ownership-taking API.
|
|
10713
|
+
*
|
|
10714
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10715
|
+
* handle must remain usable.
|
|
10716
|
+
* @returns {WasmRerankRequest}
|
|
10717
|
+
*/
|
|
10718
|
+
copyForTransfer() {
|
|
10719
|
+
const ret = wasm.wasmrerankrequest_copyForTransfer(this.__wbg_ptr);
|
|
10720
|
+
return WasmRerankRequest.__wrap(ret);
|
|
10721
|
+
}
|
|
9799
10722
|
/**
|
|
9800
10723
|
* @returns {WasmRerankRequest}
|
|
9801
10724
|
*/
|
|
@@ -9928,6 +10851,17 @@ export class WasmRerankResponse {
|
|
|
9928
10851
|
const ptr = this.__destroy_into_raw();
|
|
9929
10852
|
wasm.__wbg_wasmrerankresponse_free(ptr, 0);
|
|
9930
10853
|
}
|
|
10854
|
+
/**
|
|
10855
|
+
* Return an independent handle for an ownership-taking API.
|
|
10856
|
+
*
|
|
10857
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10858
|
+
* handle must remain usable.
|
|
10859
|
+
* @returns {WasmRerankResponse}
|
|
10860
|
+
*/
|
|
10861
|
+
copyForTransfer() {
|
|
10862
|
+
const ret = wasm.wasmrerankresponse_copyForTransfer(this.__wbg_ptr);
|
|
10863
|
+
return WasmRerankResponse.__wrap(ret);
|
|
10864
|
+
}
|
|
9931
10865
|
/**
|
|
9932
10866
|
* @returns {WasmRerankResponse}
|
|
9933
10867
|
*/
|
|
@@ -9955,6 +10889,9 @@ export class WasmRerankResponse {
|
|
|
9955
10889
|
return ret;
|
|
9956
10890
|
}
|
|
9957
10891
|
/**
|
|
10892
|
+
* Takes ownership of every element in `results`.
|
|
10893
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
10894
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
9958
10895
|
* @param {WasmRerankResult[]} results
|
|
9959
10896
|
* @param {string | null} [id]
|
|
9960
10897
|
* @param {any | null} [meta]
|
|
@@ -9970,6 +10907,10 @@ export class WasmRerankResponse {
|
|
|
9970
10907
|
return this;
|
|
9971
10908
|
}
|
|
9972
10909
|
/**
|
|
10910
|
+
* Returns detached copies of the elements in `results`.
|
|
10911
|
+
*
|
|
10912
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
10913
|
+
* then assign the array back to `results`.
|
|
9973
10914
|
* @returns {WasmRerankResult[]}
|
|
9974
10915
|
*/
|
|
9975
10916
|
get results() {
|
|
@@ -9993,6 +10934,9 @@ export class WasmRerankResponse {
|
|
|
9993
10934
|
wasm.wasmrerankresponse_set_meta(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
|
|
9994
10935
|
}
|
|
9995
10936
|
/**
|
|
10937
|
+
* Takes ownership of every element in `results`.
|
|
10938
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
10939
|
+
* element with `copyForTransfer()` before passing the array.
|
|
9996
10940
|
* @param {WasmRerankResult[]} value
|
|
9997
10941
|
*/
|
|
9998
10942
|
set results(value) {
|
|
@@ -10032,6 +10976,17 @@ export class WasmRerankResult {
|
|
|
10032
10976
|
clearDocument() {
|
|
10033
10977
|
wasm.wasmrerankresult_clearDocument(this.__wbg_ptr);
|
|
10034
10978
|
}
|
|
10979
|
+
/**
|
|
10980
|
+
* Return an independent handle for an ownership-taking API.
|
|
10981
|
+
*
|
|
10982
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
10983
|
+
* handle must remain usable.
|
|
10984
|
+
* @returns {WasmRerankResult}
|
|
10985
|
+
*/
|
|
10986
|
+
copyForTransfer() {
|
|
10987
|
+
const ret = wasm.wasmrerankresult_copyForTransfer(this.__wbg_ptr);
|
|
10988
|
+
return WasmRerankResult.__wrap(ret);
|
|
10989
|
+
}
|
|
10035
10990
|
/**
|
|
10036
10991
|
* @returns {WasmRerankResult}
|
|
10037
10992
|
*/
|
|
@@ -10040,6 +10995,10 @@ export class WasmRerankResult {
|
|
|
10040
10995
|
return WasmRerankResult.__wrap(ret);
|
|
10041
10996
|
}
|
|
10042
10997
|
/**
|
|
10998
|
+
* Returns a detached copy of `document`.
|
|
10999
|
+
*
|
|
11000
|
+
* Changes to the returned value do not update this object. To update `document`,
|
|
11001
|
+
* read it, modify the copy, then assign the copy back to `document`.
|
|
10043
11002
|
* @returns {WasmRerankResultDocument | undefined}
|
|
10044
11003
|
*/
|
|
10045
11004
|
get document() {
|
|
@@ -10123,6 +11082,17 @@ export class WasmRerankResultDocument {
|
|
|
10123
11082
|
const ptr = this.__destroy_into_raw();
|
|
10124
11083
|
wasm.__wbg_wasmrerankresultdocument_free(ptr, 0);
|
|
10125
11084
|
}
|
|
11085
|
+
/**
|
|
11086
|
+
* Return an independent handle for an ownership-taking API.
|
|
11087
|
+
*
|
|
11088
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
11089
|
+
* handle must remain usable.
|
|
11090
|
+
* @returns {WasmRerankResultDocument}
|
|
11091
|
+
*/
|
|
11092
|
+
copyForTransfer() {
|
|
11093
|
+
const ret = wasm.wasmrerankresultdocument_copyForTransfer(this.__wbg_ptr);
|
|
11094
|
+
return WasmRerankResultDocument.__wrap(ret);
|
|
11095
|
+
}
|
|
10126
11096
|
/**
|
|
10127
11097
|
* @returns {WasmRerankResultDocument}
|
|
10128
11098
|
*/
|
|
@@ -10283,6 +11253,17 @@ export class WasmResponseObject {
|
|
|
10283
11253
|
clearUsage() {
|
|
10284
11254
|
wasm.wasmresponseobject_clearUsage(this.__wbg_ptr);
|
|
10285
11255
|
}
|
|
11256
|
+
/**
|
|
11257
|
+
* Return an independent handle for an ownership-taking API.
|
|
11258
|
+
*
|
|
11259
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
11260
|
+
* handle must remain usable.
|
|
11261
|
+
* @returns {WasmResponseObject}
|
|
11262
|
+
*/
|
|
11263
|
+
copyForTransfer() {
|
|
11264
|
+
const ret = wasm.wasmresponseobject_copyForTransfer(this.__wbg_ptr);
|
|
11265
|
+
return WasmResponseObject.__wrap(ret);
|
|
11266
|
+
}
|
|
10286
11267
|
/**
|
|
10287
11268
|
* @returns {bigint}
|
|
10288
11269
|
*/
|
|
@@ -10340,6 +11321,9 @@ export class WasmResponseObject {
|
|
|
10340
11321
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
10341
11322
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
10342
11323
|
* the generated setter borrows and leaves your handle alive.
|
|
11324
|
+
* Takes ownership of every element in `output`.
|
|
11325
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
11326
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
10343
11327
|
* @param {string | null} [id]
|
|
10344
11328
|
* @param {string | null} [object]
|
|
10345
11329
|
* @param {bigint | null} [createdAt]
|
|
@@ -10386,6 +11370,10 @@ export class WasmResponseObject {
|
|
|
10386
11370
|
}
|
|
10387
11371
|
}
|
|
10388
11372
|
/**
|
|
11373
|
+
* Returns detached copies of the elements in `output`.
|
|
11374
|
+
*
|
|
11375
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
11376
|
+
* then assign the array back to `output`.
|
|
10389
11377
|
* @returns {WasmResponseOutputItem[]}
|
|
10390
11378
|
*/
|
|
10391
11379
|
get output() {
|
|
@@ -10431,6 +11419,9 @@ export class WasmResponseObject {
|
|
|
10431
11419
|
wasm.wasmresponseobject_set_object(this.__wbg_ptr, ptr0, len0);
|
|
10432
11420
|
}
|
|
10433
11421
|
/**
|
|
11422
|
+
* Takes ownership of every element in `output`.
|
|
11423
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
11424
|
+
* element with `copyForTransfer()` before passing the array.
|
|
10434
11425
|
* @param {WasmResponseOutputItem[]} value
|
|
10435
11426
|
*/
|
|
10436
11427
|
set output(value) {
|
|
@@ -10469,6 +11460,10 @@ export class WasmResponseObject {
|
|
|
10469
11460
|
}
|
|
10470
11461
|
}
|
|
10471
11462
|
/**
|
|
11463
|
+
* Returns a detached copy of `usage`.
|
|
11464
|
+
*
|
|
11465
|
+
* Changes to the returned value do not update this object. To update `usage`,
|
|
11466
|
+
* read it, modify the copy, then assign the copy back to `usage`.
|
|
10472
11467
|
* @returns {WasmResponseUsage | undefined}
|
|
10473
11468
|
*/
|
|
10474
11469
|
get usage() {
|
|
@@ -10511,6 +11506,17 @@ export class WasmResponseOutputItem {
|
|
|
10511
11506
|
const ret = wasm.wasmresponseoutputitem_content(this.__wbg_ptr);
|
|
10512
11507
|
return ret;
|
|
10513
11508
|
}
|
|
11509
|
+
/**
|
|
11510
|
+
* Return an independent handle for an ownership-taking API.
|
|
11511
|
+
*
|
|
11512
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
11513
|
+
* handle must remain usable.
|
|
11514
|
+
* @returns {WasmResponseOutputItem}
|
|
11515
|
+
*/
|
|
11516
|
+
copyForTransfer() {
|
|
11517
|
+
const ret = wasm.wasmresponseoutputitem_copyForTransfer(this.__wbg_ptr);
|
|
11518
|
+
return WasmResponseOutputItem.__wrap(ret);
|
|
11519
|
+
}
|
|
10514
11520
|
/**
|
|
10515
11521
|
* @returns {WasmResponseOutputItem}
|
|
10516
11522
|
*/
|
|
@@ -10595,6 +11601,17 @@ export class WasmResponseTool {
|
|
|
10595
11601
|
const ret = wasm.wasmresponsetool_config(this.__wbg_ptr);
|
|
10596
11602
|
return ret;
|
|
10597
11603
|
}
|
|
11604
|
+
/**
|
|
11605
|
+
* Return an independent handle for an ownership-taking API.
|
|
11606
|
+
*
|
|
11607
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
11608
|
+
* handle must remain usable.
|
|
11609
|
+
* @returns {WasmResponseTool}
|
|
11610
|
+
*/
|
|
11611
|
+
copyForTransfer() {
|
|
11612
|
+
const ret = wasm.wasmresponsetool_copyForTransfer(this.__wbg_ptr);
|
|
11613
|
+
return WasmResponseTool.__wrap(ret);
|
|
11614
|
+
}
|
|
10598
11615
|
/**
|
|
10599
11616
|
* @returns {WasmResponseTool}
|
|
10600
11617
|
*/
|
|
@@ -10666,6 +11683,17 @@ export class WasmResponseUsage {
|
|
|
10666
11683
|
const ptr = this.__destroy_into_raw();
|
|
10667
11684
|
wasm.__wbg_wasmresponseusage_free(ptr, 0);
|
|
10668
11685
|
}
|
|
11686
|
+
/**
|
|
11687
|
+
* Return an independent handle for an ownership-taking API.
|
|
11688
|
+
*
|
|
11689
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
11690
|
+
* handle must remain usable.
|
|
11691
|
+
* @returns {WasmResponseUsage}
|
|
11692
|
+
*/
|
|
11693
|
+
copyForTransfer() {
|
|
11694
|
+
const ret = wasm.wasmresponseusage_copyForTransfer(this.__wbg_ptr);
|
|
11695
|
+
return WasmResponseUsage.__wrap(ret);
|
|
11696
|
+
}
|
|
10669
11697
|
/**
|
|
10670
11698
|
* @returns {WasmResponseUsage}
|
|
10671
11699
|
*/
|
|
@@ -10746,6 +11774,17 @@ export class WasmSearchRequest {
|
|
|
10746
11774
|
const ptr = this.__destroy_into_raw();
|
|
10747
11775
|
wasm.__wbg_wasmsearchrequest_free(ptr, 0);
|
|
10748
11776
|
}
|
|
11777
|
+
/**
|
|
11778
|
+
* Return an independent handle for an ownership-taking API.
|
|
11779
|
+
*
|
|
11780
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
11781
|
+
* handle must remain usable.
|
|
11782
|
+
* @returns {WasmSearchRequest}
|
|
11783
|
+
*/
|
|
11784
|
+
copyForTransfer() {
|
|
11785
|
+
const ret = wasm.wasmsearchrequest_copyForTransfer(this.__wbg_ptr);
|
|
11786
|
+
return WasmSearchRequest.__wrap(ret);
|
|
11787
|
+
}
|
|
10749
11788
|
/**
|
|
10750
11789
|
* @returns {string | undefined}
|
|
10751
11790
|
*/
|
|
@@ -10896,6 +11935,17 @@ export class WasmSearchResponse {
|
|
|
10896
11935
|
const ptr = this.__destroy_into_raw();
|
|
10897
11936
|
wasm.__wbg_wasmsearchresponse_free(ptr, 0);
|
|
10898
11937
|
}
|
|
11938
|
+
/**
|
|
11939
|
+
* Return an independent handle for an ownership-taking API.
|
|
11940
|
+
*
|
|
11941
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
11942
|
+
* handle must remain usable.
|
|
11943
|
+
* @returns {WasmSearchResponse}
|
|
11944
|
+
*/
|
|
11945
|
+
copyForTransfer() {
|
|
11946
|
+
const ret = wasm.wasmsearchresponse_copyForTransfer(this.__wbg_ptr);
|
|
11947
|
+
return WasmSearchResponse.__wrap(ret);
|
|
11948
|
+
}
|
|
10899
11949
|
/**
|
|
10900
11950
|
* @returns {WasmSearchResponse}
|
|
10901
11951
|
*/
|
|
@@ -10919,6 +11969,9 @@ export class WasmSearchResponse {
|
|
|
10919
11969
|
}
|
|
10920
11970
|
}
|
|
10921
11971
|
/**
|
|
11972
|
+
* Takes ownership of every element in `results`.
|
|
11973
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
11974
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
10922
11975
|
* @param {WasmSearchResult[]} results
|
|
10923
11976
|
* @param {string} model
|
|
10924
11977
|
*/
|
|
@@ -10933,6 +11986,10 @@ export class WasmSearchResponse {
|
|
|
10933
11986
|
return this;
|
|
10934
11987
|
}
|
|
10935
11988
|
/**
|
|
11989
|
+
* Returns detached copies of the elements in `results`.
|
|
11990
|
+
*
|
|
11991
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
11992
|
+
* then assign the array back to `results`.
|
|
10936
11993
|
* @returns {WasmSearchResult[]}
|
|
10937
11994
|
*/
|
|
10938
11995
|
get results() {
|
|
@@ -10950,6 +12007,9 @@ export class WasmSearchResponse {
|
|
|
10950
12007
|
wasm.wasmsearchresponse_set_model(this.__wbg_ptr, ptr0, len0);
|
|
10951
12008
|
}
|
|
10952
12009
|
/**
|
|
12010
|
+
* Takes ownership of every element in `results`.
|
|
12011
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
12012
|
+
* element with `copyForTransfer()` before passing the array.
|
|
10953
12013
|
* @param {WasmSearchResult[]} value
|
|
10954
12014
|
*/
|
|
10955
12015
|
set results(value) {
|
|
@@ -10986,6 +12046,17 @@ export class WasmSearchResult {
|
|
|
10986
12046
|
const ptr = this.__destroy_into_raw();
|
|
10987
12047
|
wasm.__wbg_wasmsearchresult_free(ptr, 0);
|
|
10988
12048
|
}
|
|
12049
|
+
/**
|
|
12050
|
+
* Return an independent handle for an ownership-taking API.
|
|
12051
|
+
*
|
|
12052
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12053
|
+
* handle must remain usable.
|
|
12054
|
+
* @returns {WasmSearchResult}
|
|
12055
|
+
*/
|
|
12056
|
+
copyForTransfer() {
|
|
12057
|
+
const ret = wasm.wasmsearchresult_copyForTransfer(this.__wbg_ptr);
|
|
12058
|
+
return WasmSearchResult.__wrap(ret);
|
|
12059
|
+
}
|
|
10989
12060
|
/**
|
|
10990
12061
|
* @returns {string | undefined}
|
|
10991
12062
|
*/
|
|
@@ -11125,6 +12196,17 @@ export class WasmSpecificFunction {
|
|
|
11125
12196
|
const ptr = this.__destroy_into_raw();
|
|
11126
12197
|
wasm.__wbg_wasmspecificfunction_free(ptr, 0);
|
|
11127
12198
|
}
|
|
12199
|
+
/**
|
|
12200
|
+
* Return an independent handle for an ownership-taking API.
|
|
12201
|
+
*
|
|
12202
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12203
|
+
* handle must remain usable.
|
|
12204
|
+
* @returns {WasmSpecificFunction}
|
|
12205
|
+
*/
|
|
12206
|
+
copyForTransfer() {
|
|
12207
|
+
const ret = wasm.wasmspecificfunction_copyForTransfer(this.__wbg_ptr);
|
|
12208
|
+
return WasmSpecificFunction.__wrap(ret);
|
|
12209
|
+
}
|
|
11128
12210
|
/**
|
|
11129
12211
|
* @returns {WasmSpecificFunction}
|
|
11130
12212
|
*/
|
|
@@ -11204,6 +12286,17 @@ export class WasmSpecificToolChoice {
|
|
|
11204
12286
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
11205
12287
|
}
|
|
11206
12288
|
}
|
|
12289
|
+
/**
|
|
12290
|
+
* Return an independent handle for an ownership-taking API.
|
|
12291
|
+
*
|
|
12292
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12293
|
+
* handle must remain usable.
|
|
12294
|
+
* @returns {WasmSpecificToolChoice}
|
|
12295
|
+
*/
|
|
12296
|
+
copyForTransfer() {
|
|
12297
|
+
const ret = wasm.wasmspecifictoolchoice_copyForTransfer(this.__wbg_ptr);
|
|
12298
|
+
return WasmSpecificToolChoice.__wrap(ret);
|
|
12299
|
+
}
|
|
11207
12300
|
/**
|
|
11208
12301
|
* @returns {WasmSpecificToolChoice}
|
|
11209
12302
|
*/
|
|
@@ -11212,6 +12305,10 @@ export class WasmSpecificToolChoice {
|
|
|
11212
12305
|
return WasmSpecificToolChoice.__wrap(ret);
|
|
11213
12306
|
}
|
|
11214
12307
|
/**
|
|
12308
|
+
* Returns a detached copy of `function`.
|
|
12309
|
+
*
|
|
12310
|
+
* Changes to the returned value do not update this object. To update `function`,
|
|
12311
|
+
* read it, modify the copy, then assign the copy back to `function`.
|
|
11215
12312
|
* @returns {WasmSpecificFunction}
|
|
11216
12313
|
*/
|
|
11217
12314
|
get function() {
|
|
@@ -11280,6 +12377,17 @@ export class WasmStreamChoice {
|
|
|
11280
12377
|
const ptr = this.__destroy_into_raw();
|
|
11281
12378
|
wasm.__wbg_wasmstreamchoice_free(ptr, 0);
|
|
11282
12379
|
}
|
|
12380
|
+
/**
|
|
12381
|
+
* Return an independent handle for an ownership-taking API.
|
|
12382
|
+
*
|
|
12383
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12384
|
+
* handle must remain usable.
|
|
12385
|
+
* @returns {WasmStreamChoice}
|
|
12386
|
+
*/
|
|
12387
|
+
copyForTransfer() {
|
|
12388
|
+
const ret = wasm.wasmstreamchoice_copyForTransfer(this.__wbg_ptr);
|
|
12389
|
+
return WasmStreamChoice.__wrap(ret);
|
|
12390
|
+
}
|
|
11283
12391
|
/**
|
|
11284
12392
|
* @returns {WasmStreamChoice}
|
|
11285
12393
|
*/
|
|
@@ -11288,6 +12396,10 @@ export class WasmStreamChoice {
|
|
|
11288
12396
|
return WasmStreamChoice.__wrap(ret);
|
|
11289
12397
|
}
|
|
11290
12398
|
/**
|
|
12399
|
+
* Returns a detached copy of `delta`.
|
|
12400
|
+
*
|
|
12401
|
+
* Changes to the returned value do not update this object. To update `delta`,
|
|
12402
|
+
* read it, modify the copy, then assign the copy back to `delta`.
|
|
11291
12403
|
* @returns {WasmStreamDelta}
|
|
11292
12404
|
*/
|
|
11293
12405
|
get delta() {
|
|
@@ -11391,6 +12503,17 @@ export class WasmStreamDelta {
|
|
|
11391
12503
|
}
|
|
11392
12504
|
return v1;
|
|
11393
12505
|
}
|
|
12506
|
+
/**
|
|
12507
|
+
* Return an independent handle for an ownership-taking API.
|
|
12508
|
+
*
|
|
12509
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12510
|
+
* handle must remain usable.
|
|
12511
|
+
* @returns {WasmStreamDelta}
|
|
12512
|
+
*/
|
|
12513
|
+
copyForTransfer() {
|
|
12514
|
+
const ret = wasm.wasmstreamdelta_copyForTransfer(this.__wbg_ptr);
|
|
12515
|
+
return WasmStreamDelta.__wrap(ret);
|
|
12516
|
+
}
|
|
11394
12517
|
/**
|
|
11395
12518
|
* @returns {WasmStreamDelta}
|
|
11396
12519
|
*/
|
|
@@ -11399,6 +12522,10 @@ export class WasmStreamDelta {
|
|
|
11399
12522
|
return WasmStreamDelta.__wrap(ret);
|
|
11400
12523
|
}
|
|
11401
12524
|
/**
|
|
12525
|
+
* Returns a detached copy of `functionCall`.
|
|
12526
|
+
*
|
|
12527
|
+
* Changes to the returned value do not update this object. To update `functionCall`,
|
|
12528
|
+
* read it, modify the copy, then assign the copy back to `functionCall`.
|
|
11402
12529
|
* @returns {WasmStreamFunctionCall | undefined}
|
|
11403
12530
|
*/
|
|
11404
12531
|
get functionCall() {
|
|
@@ -11411,6 +12538,9 @@ export class WasmStreamDelta {
|
|
|
11411
12538
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
11412
12539
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
11413
12540
|
* the generated setter borrows and leaves your handle alive.
|
|
12541
|
+
* Takes ownership of every element in `toolCalls`.
|
|
12542
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
12543
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
11414
12544
|
* @param {string | null} [role]
|
|
11415
12545
|
* @param {string | null} [content]
|
|
11416
12546
|
* @param {WasmStreamToolCall[] | null} [toolCalls]
|
|
@@ -11515,6 +12645,9 @@ export class WasmStreamDelta {
|
|
|
11515
12645
|
wasm.wasmstreamdelta_set_role(this.__wbg_ptr, ptr0, len0);
|
|
11516
12646
|
}
|
|
11517
12647
|
/**
|
|
12648
|
+
* Takes ownership of every element in `toolCalls`.
|
|
12649
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
12650
|
+
* element with `copyForTransfer()` before passing the array.
|
|
11518
12651
|
* @param {WasmStreamToolCall[] | null} [value]
|
|
11519
12652
|
*/
|
|
11520
12653
|
set toolCalls(value) {
|
|
@@ -11523,6 +12656,10 @@ export class WasmStreamDelta {
|
|
|
11523
12656
|
wasm.wasmstreamdelta_set_toolCalls(this.__wbg_ptr, ptr0, len0);
|
|
11524
12657
|
}
|
|
11525
12658
|
/**
|
|
12659
|
+
* Returns detached copies of the elements in `toolCalls`.
|
|
12660
|
+
*
|
|
12661
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
12662
|
+
* then assign the array back to `toolCalls`.
|
|
11526
12663
|
* @returns {Array<any> | undefined}
|
|
11527
12664
|
*/
|
|
11528
12665
|
get toolCalls() {
|
|
@@ -11578,6 +12715,17 @@ export class WasmStreamFunctionCall {
|
|
|
11578
12715
|
}
|
|
11579
12716
|
return v1;
|
|
11580
12717
|
}
|
|
12718
|
+
/**
|
|
12719
|
+
* Return an independent handle for an ownership-taking API.
|
|
12720
|
+
*
|
|
12721
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12722
|
+
* handle must remain usable.
|
|
12723
|
+
* @returns {WasmStreamFunctionCall}
|
|
12724
|
+
*/
|
|
12725
|
+
copyForTransfer() {
|
|
12726
|
+
const ret = wasm.wasmstreamfunctioncall_copyForTransfer(this.__wbg_ptr);
|
|
12727
|
+
return WasmStreamFunctionCall.__wrap(ret);
|
|
12728
|
+
}
|
|
11581
12729
|
/**
|
|
11582
12730
|
* @returns {WasmStreamFunctionCall}
|
|
11583
12731
|
*/
|
|
@@ -11650,6 +12798,17 @@ export class WasmStreamOptions {
|
|
|
11650
12798
|
const ptr = this.__destroy_into_raw();
|
|
11651
12799
|
wasm.__wbg_wasmstreamoptions_free(ptr, 0);
|
|
11652
12800
|
}
|
|
12801
|
+
/**
|
|
12802
|
+
* Return an independent handle for an ownership-taking API.
|
|
12803
|
+
*
|
|
12804
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12805
|
+
* handle must remain usable.
|
|
12806
|
+
* @returns {WasmStreamOptions}
|
|
12807
|
+
*/
|
|
12808
|
+
copyForTransfer() {
|
|
12809
|
+
const ret = wasm.wasmstreamoptions_copyForTransfer(this.__wbg_ptr);
|
|
12810
|
+
return WasmStreamOptions.__wrap(ret);
|
|
12811
|
+
}
|
|
11653
12812
|
/**
|
|
11654
12813
|
* @returns {WasmStreamOptions}
|
|
11655
12814
|
*/
|
|
@@ -11723,6 +12882,17 @@ export class WasmStreamToolCall {
|
|
|
11723
12882
|
clearFunction() {
|
|
11724
12883
|
wasm.wasmstreamtoolcall_clearFunction(this.__wbg_ptr);
|
|
11725
12884
|
}
|
|
12885
|
+
/**
|
|
12886
|
+
* Return an independent handle for an ownership-taking API.
|
|
12887
|
+
*
|
|
12888
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
12889
|
+
* handle must remain usable.
|
|
12890
|
+
* @returns {WasmStreamToolCall}
|
|
12891
|
+
*/
|
|
12892
|
+
copyForTransfer() {
|
|
12893
|
+
const ret = wasm.wasmstreamtoolcall_copyForTransfer(this.__wbg_ptr);
|
|
12894
|
+
return WasmStreamToolCall.__wrap(ret);
|
|
12895
|
+
}
|
|
11726
12896
|
/**
|
|
11727
12897
|
* @returns {WasmStreamToolCall}
|
|
11728
12898
|
*/
|
|
@@ -11731,6 +12901,10 @@ export class WasmStreamToolCall {
|
|
|
11731
12901
|
return WasmStreamToolCall.__wrap(ret);
|
|
11732
12902
|
}
|
|
11733
12903
|
/**
|
|
12904
|
+
* Returns a detached copy of `function`.
|
|
12905
|
+
*
|
|
12906
|
+
* Changes to the returned value do not update this object. To update `function`,
|
|
12907
|
+
* read it, modify the copy, then assign the copy back to `function`.
|
|
11734
12908
|
* @returns {WasmStreamFunctionCall | undefined}
|
|
11735
12909
|
*/
|
|
11736
12910
|
get function() {
|
|
@@ -11837,6 +13011,17 @@ export class WasmSystemMessage {
|
|
|
11837
13011
|
const ret = wasm.wasmsystemmessage_content(this.__wbg_ptr);
|
|
11838
13012
|
return ret;
|
|
11839
13013
|
}
|
|
13014
|
+
/**
|
|
13015
|
+
* Return an independent handle for an ownership-taking API.
|
|
13016
|
+
*
|
|
13017
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13018
|
+
* handle must remain usable.
|
|
13019
|
+
* @returns {WasmSystemMessage}
|
|
13020
|
+
*/
|
|
13021
|
+
copyForTransfer() {
|
|
13022
|
+
const ret = wasm.wasmsystemmessage_copyForTransfer(this.__wbg_ptr);
|
|
13023
|
+
return WasmSystemMessage.__wrap(ret);
|
|
13024
|
+
}
|
|
11840
13025
|
/**
|
|
11841
13026
|
* @returns {WasmSystemMessage}
|
|
11842
13027
|
*/
|
|
@@ -11926,6 +13111,17 @@ export class WasmToolCall {
|
|
|
11926
13111
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
11927
13112
|
}
|
|
11928
13113
|
}
|
|
13114
|
+
/**
|
|
13115
|
+
* Return an independent handle for an ownership-taking API.
|
|
13116
|
+
*
|
|
13117
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13118
|
+
* handle must remain usable.
|
|
13119
|
+
* @returns {WasmToolCall}
|
|
13120
|
+
*/
|
|
13121
|
+
copyForTransfer() {
|
|
13122
|
+
const ret = wasm.wasmtoolcall_copyForTransfer(this.__wbg_ptr);
|
|
13123
|
+
return WasmToolCall.__wrap(ret);
|
|
13124
|
+
}
|
|
11929
13125
|
/**
|
|
11930
13126
|
* @returns {WasmToolCall}
|
|
11931
13127
|
*/
|
|
@@ -11934,6 +13130,10 @@ export class WasmToolCall {
|
|
|
11934
13130
|
return WasmToolCall.__wrap(ret);
|
|
11935
13131
|
}
|
|
11936
13132
|
/**
|
|
13133
|
+
* Returns a detached copy of `function`.
|
|
13134
|
+
*
|
|
13135
|
+
* Changes to the returned value do not update this object. To update `function`,
|
|
13136
|
+
* read it, modify the copy, then assign the copy back to `function`.
|
|
11937
13137
|
* @returns {WasmFunctionCall}
|
|
11938
13138
|
*/
|
|
11939
13139
|
get function() {
|
|
@@ -12030,6 +13230,17 @@ export class WasmToolMessage {
|
|
|
12030
13230
|
const ret = wasm.wasmtoolmessage_content(this.__wbg_ptr);
|
|
12031
13231
|
return ret;
|
|
12032
13232
|
}
|
|
13233
|
+
/**
|
|
13234
|
+
* Return an independent handle for an ownership-taking API.
|
|
13235
|
+
*
|
|
13236
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13237
|
+
* handle must remain usable.
|
|
13238
|
+
* @returns {WasmToolMessage}
|
|
13239
|
+
*/
|
|
13240
|
+
copyForTransfer() {
|
|
13241
|
+
const ret = wasm.wasmtoolmessage_copyForTransfer(this.__wbg_ptr);
|
|
13242
|
+
return WasmToolMessage.__wrap(ret);
|
|
13243
|
+
}
|
|
12033
13244
|
/**
|
|
12034
13245
|
* @returns {WasmToolMessage}
|
|
12035
13246
|
*/
|
|
@@ -12136,6 +13347,17 @@ export class WasmTranscriptionResponse {
|
|
|
12136
13347
|
const ptr = this.__destroy_into_raw();
|
|
12137
13348
|
wasm.__wbg_wasmtranscriptionresponse_free(ptr, 0);
|
|
12138
13349
|
}
|
|
13350
|
+
/**
|
|
13351
|
+
* Return an independent handle for an ownership-taking API.
|
|
13352
|
+
*
|
|
13353
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13354
|
+
* handle must remain usable.
|
|
13355
|
+
* @returns {WasmTranscriptionResponse}
|
|
13356
|
+
*/
|
|
13357
|
+
copyForTransfer() {
|
|
13358
|
+
const ret = wasm.wasmtranscriptionresponse_copyForTransfer(this.__wbg_ptr);
|
|
13359
|
+
return WasmTranscriptionResponse.__wrap(ret);
|
|
13360
|
+
}
|
|
12139
13361
|
/**
|
|
12140
13362
|
* @returns {WasmTranscriptionResponse}
|
|
12141
13363
|
*/
|
|
@@ -12163,6 +13385,9 @@ export class WasmTranscriptionResponse {
|
|
|
12163
13385
|
return v1;
|
|
12164
13386
|
}
|
|
12165
13387
|
/**
|
|
13388
|
+
* Takes ownership of every element in `segments`.
|
|
13389
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
13390
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
12166
13391
|
* @param {string | null} [text]
|
|
12167
13392
|
* @param {string | null} [language]
|
|
12168
13393
|
* @param {number | null} [duration]
|
|
@@ -12181,6 +13406,10 @@ export class WasmTranscriptionResponse {
|
|
|
12181
13406
|
return this;
|
|
12182
13407
|
}
|
|
12183
13408
|
/**
|
|
13409
|
+
* Returns detached copies of the elements in `segments`.
|
|
13410
|
+
*
|
|
13411
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
13412
|
+
* then assign the array back to `segments`.
|
|
12184
13413
|
* @returns {Array<any> | undefined}
|
|
12185
13414
|
*/
|
|
12186
13415
|
get segments() {
|
|
@@ -12202,6 +13431,9 @@ export class WasmTranscriptionResponse {
|
|
|
12202
13431
|
wasm.wasmtranscriptionresponse_set_language(this.__wbg_ptr, ptr0, len0);
|
|
12203
13432
|
}
|
|
12204
13433
|
/**
|
|
13434
|
+
* Takes ownership of every element in `segments`.
|
|
13435
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
13436
|
+
* element with `copyForTransfer()` before passing the array.
|
|
12205
13437
|
* @param {WasmTranscriptionSegment[] | null} [value]
|
|
12206
13438
|
*/
|
|
12207
13439
|
set segments(value) {
|
|
@@ -12261,6 +13493,17 @@ export class WasmTranscriptionSegment {
|
|
|
12261
13493
|
const ptr = this.__destroy_into_raw();
|
|
12262
13494
|
wasm.__wbg_wasmtranscriptionsegment_free(ptr, 0);
|
|
12263
13495
|
}
|
|
13496
|
+
/**
|
|
13497
|
+
* Return an independent handle for an ownership-taking API.
|
|
13498
|
+
*
|
|
13499
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13500
|
+
* handle must remain usable.
|
|
13501
|
+
* @returns {WasmTranscriptionSegment}
|
|
13502
|
+
*/
|
|
13503
|
+
copyForTransfer() {
|
|
13504
|
+
const ret = wasm.wasmtranscriptionsegment_copyForTransfer(this.__wbg_ptr);
|
|
13505
|
+
return WasmTranscriptionSegment.__wrap(ret);
|
|
13506
|
+
}
|
|
12264
13507
|
/**
|
|
12265
13508
|
* @returns {WasmTranscriptionSegment}
|
|
12266
13509
|
*/
|
|
@@ -12377,6 +13620,17 @@ export class WasmUsage {
|
|
|
12377
13620
|
const ret = wasm.wasmusage_completionTokens(this.__wbg_ptr);
|
|
12378
13621
|
return BigInt.asUintN(64, ret);
|
|
12379
13622
|
}
|
|
13623
|
+
/**
|
|
13624
|
+
* Return an independent handle for an ownership-taking API.
|
|
13625
|
+
*
|
|
13626
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13627
|
+
* handle must remain usable.
|
|
13628
|
+
* @returns {WasmUsage}
|
|
13629
|
+
*/
|
|
13630
|
+
copyForTransfer() {
|
|
13631
|
+
const ret = wasm.wasmusage_copyForTransfer(this.__wbg_ptr);
|
|
13632
|
+
return WasmUsage.__wrap(ret);
|
|
13633
|
+
}
|
|
12380
13634
|
/**
|
|
12381
13635
|
* @returns {WasmUsage}
|
|
12382
13636
|
*/
|
|
@@ -12407,6 +13661,10 @@ export class WasmUsage {
|
|
|
12407
13661
|
return this;
|
|
12408
13662
|
}
|
|
12409
13663
|
/**
|
|
13664
|
+
* Returns a detached copy of `promptTokensDetails`.
|
|
13665
|
+
*
|
|
13666
|
+
* Changes to the returned value do not update this object. To update `promptTokensDetails`,
|
|
13667
|
+
* read it, modify the copy, then assign the copy back to `promptTokensDetails`.
|
|
12410
13668
|
* @returns {WasmPromptTokensDetails | undefined}
|
|
12411
13669
|
*/
|
|
12412
13670
|
get promptTokensDetails() {
|
|
@@ -12482,6 +13740,17 @@ export class WasmUserMessage {
|
|
|
12482
13740
|
const ret = wasm.wasmusermessage_content(this.__wbg_ptr);
|
|
12483
13741
|
return ret;
|
|
12484
13742
|
}
|
|
13743
|
+
/**
|
|
13744
|
+
* Return an independent handle for an ownership-taking API.
|
|
13745
|
+
*
|
|
13746
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13747
|
+
* handle must remain usable.
|
|
13748
|
+
* @returns {WasmUserMessage}
|
|
13749
|
+
*/
|
|
13750
|
+
copyForTransfer() {
|
|
13751
|
+
const ret = wasm.wasmusermessage_copyForTransfer(this.__wbg_ptr);
|
|
13752
|
+
return WasmUserMessage.__wrap(ret);
|
|
13753
|
+
}
|
|
12485
13754
|
/**
|
|
12486
13755
|
* @returns {WasmUserMessage}
|
|
12487
13756
|
*/
|
|
@@ -12560,6 +13829,17 @@ export class WasmWaitForBatchConfig {
|
|
|
12560
13829
|
const ret = wasm.wasmwaitforbatchconfig_backoffMultiplier(this.__wbg_ptr);
|
|
12561
13830
|
return ret;
|
|
12562
13831
|
}
|
|
13832
|
+
/**
|
|
13833
|
+
* Return an independent handle for an ownership-taking API.
|
|
13834
|
+
*
|
|
13835
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
13836
|
+
* handle must remain usable.
|
|
13837
|
+
* @returns {WasmWaitForBatchConfig}
|
|
13838
|
+
*/
|
|
13839
|
+
copyForTransfer() {
|
|
13840
|
+
const ret = wasm.wasmwaitforbatchconfig_copyForTransfer(this.__wbg_ptr);
|
|
13841
|
+
return WasmWaitForBatchConfig.__wrap(ret);
|
|
13842
|
+
}
|
|
12563
13843
|
/**
|
|
12564
13844
|
* @returns {WasmWaitForBatchConfig}
|
|
12565
13845
|
*/
|
|
@@ -12648,7 +13928,7 @@ export function allProviders() {
|
|
|
12648
13928
|
/**
|
|
12649
13929
|
* Return the capability flags for a named provider.
|
|
12650
13930
|
*
|
|
12651
|
-
* Performs an O(n) linear scan over the embedded registry (
|
|
13931
|
+
* Performs an O(n) linear scan over the embedded registry (174 entries).
|
|
12652
13932
|
* Returns an owned value so bindings can pass capability data without
|
|
12653
13933
|
* borrowing registry internals.
|
|
12654
13934
|
*
|
|
@@ -12821,11 +14101,19 @@ export function createClient(api_key, base_url, timeout_secs, max_retries, model
|
|
|
12821
14101
|
* Create a new LLM client from a JSON string.
|
|
12822
14102
|
*
|
|
12823
14103
|
* The JSON object accepts the same fields as `liter-llm.toml` (snake_case).
|
|
14104
|
+
* Middleware keys (`cache`, `budget`, `cooldown_secs`, `rate_limit`,
|
|
14105
|
+
* `in_flight_limit`, `health_check_secs`, `cost_tracking`, `tracing`) are
|
|
14106
|
+
* applied: the returned client routes the `LlmClient` methods (`chat`,
|
|
14107
|
+
* `chat_stream`, `embed`, `list_models`, `image_generate`, `speech`,
|
|
14108
|
+
* `transcribe`, `moderate`, `rerank`, `search`, `ocr`) through the managed
|
|
14109
|
+
* Tower stack. File, batch and response operations bypass it. Each `providers`
|
|
14110
|
+
* entry is registered process-wide via `register_custom_provider`.
|
|
12824
14111
|
*
|
|
12825
14112
|
* # Errors
|
|
12826
14113
|
*
|
|
12827
|
-
* Returns `LiterLlmError.BadRequest` if `json` is not valid JSON
|
|
12828
|
-
*
|
|
14114
|
+
* Returns `LiterLlmError.BadRequest` if `json` is not valid JSON, contains
|
|
14115
|
+
* unknown fields, or sets middleware keys in a build without the `tower` and
|
|
14116
|
+
* `native-http` features. Provider registration failures are propagated.
|
|
12829
14117
|
* @param {string} json
|
|
12830
14118
|
* @returns {WasmDefaultClient}
|
|
12831
14119
|
*/
|
|
@@ -13018,6 +14306,13 @@ function __wbg_get_imports() {
|
|
|
13018
14306
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
13019
14307
|
return ret;
|
|
13020
14308
|
},
|
|
14309
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
14310
|
+
const ret = String(arg1);
|
|
14311
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
14312
|
+
const len1 = WASM_VECTOR_LEN;
|
|
14313
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
14314
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
14315
|
+
},
|
|
13021
14316
|
__wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c: function(arg0, arg1) {
|
|
13022
14317
|
const v = arg1;
|
|
13023
14318
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -13075,6 +14370,9 @@ function __wbg_get_imports() {
|
|
|
13075
14370
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
13076
14371
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
13077
14372
|
},
|
|
14373
|
+
__wbg___wbindgen_rethrow_cb2e88c6b2a16733: function(arg0) {
|
|
14374
|
+
throw arg0;
|
|
14375
|
+
},
|
|
13078
14376
|
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
13079
14377
|
const obj = arg1;
|
|
13080
14378
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -13725,23 +15023,23 @@ function __wbg_get_imports() {
|
|
|
13725
15023
|
return ret;
|
|
13726
15024
|
},
|
|
13727
15025
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
13728
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
15026
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 958, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
13729
15027
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0);
|
|
13730
15028
|
return ret;
|
|
13731
15029
|
},
|
|
13732
15030
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
13733
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
15031
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 976, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
13734
15032
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h49dc34f70620523b);
|
|
13735
15033
|
return ret;
|
|
13736
15034
|
},
|
|
13737
15035
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
13738
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
15036
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 873, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
13739
15037
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8);
|
|
13740
15038
|
return ret;
|
|
13741
15039
|
},
|
|
13742
15040
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
13743
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
13744
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
15041
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 906, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
15042
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6);
|
|
13745
15043
|
return ret;
|
|
13746
15044
|
},
|
|
13747
15045
|
__wbindgen_generic_0000000000000005: function(arg0) {
|
|
@@ -13791,8 +15089,8 @@ function wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8(arg0, arg
|
|
|
13791
15089
|
wasm.wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8(arg0, arg1);
|
|
13792
15090
|
}
|
|
13793
15091
|
|
|
13794
|
-
function
|
|
13795
|
-
wasm.
|
|
15092
|
+
function wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6(arg0, arg1) {
|
|
15093
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6(arg0, arg1);
|
|
13796
15094
|
}
|
|
13797
15095
|
|
|
13798
15096
|
function wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0(arg0, arg1, arg2) {
|