@xberg-io/liter-llm-wasm 1.19.1 → 1.19.2
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/liter_llm_wasm.d.ts +3 -3
- package/liter_llm_wasm.js +11 -21
- package/liter_llm_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/liter_llm_wasm.d.ts
CHANGED
|
@@ -2195,7 +2195,7 @@ export function modelInfo(model: string): WasmModelInfo | undefined;
|
|
|
2195
2195
|
* degrades `completion_cost` / `model_info` below embedded-catalog
|
|
2196
2196
|
* availability.
|
|
2197
2197
|
*/
|
|
2198
|
-
export function refreshCatalog(config
|
|
2198
|
+
export function refreshCatalog(config?: WasmCatalogRefreshConfig | null): Promise<WasmRefreshOutcome>;
|
|
2199
2199
|
|
|
2200
2200
|
/**
|
|
2201
2201
|
* Register a custom provider in the global runtime registry.
|
|
@@ -2338,7 +2338,7 @@ export interface InitOutput {
|
|
|
2338
2338
|
readonly encodeDataUrl: (a: number, b: number, c: number, d: number) => [number, number];
|
|
2339
2339
|
readonly installCatalogOverlayFromStr: (a: number, b: number) => [number, number];
|
|
2340
2340
|
readonly modelInfo: (a: number, b: number) => number;
|
|
2341
|
-
readonly refreshCatalog: (a:
|
|
2341
|
+
readonly refreshCatalog: (a: number) => any;
|
|
2342
2342
|
readonly registerCustomProvider: (a: number) => [number, number];
|
|
2343
2343
|
readonly unregisterCustomProvider: (a: number, b: number) => [number, number, number];
|
|
2344
2344
|
readonly wasmassistantmessage_content: (a: number) => [number, number];
|
|
@@ -3374,7 +3374,6 @@ export interface InitOutput {
|
|
|
3374
3374
|
readonly wasmchatcompletionresponse_usage: (a: number) => number;
|
|
3375
3375
|
readonly wasmembeddingresponse_usage: (a: number) => number;
|
|
3376
3376
|
readonly wasmocrresponse_usage: (a: number) => number;
|
|
3377
|
-
readonly wasmresponsetool_default: () => number;
|
|
3378
3377
|
readonly wasmocrrequest_set_includeImageBase64: (a: number, b: number) => void;
|
|
3379
3378
|
readonly wasmassistantpart_new: () => number;
|
|
3380
3379
|
readonly wasmcontentpart_new: () => number;
|
|
@@ -3406,6 +3405,7 @@ export interface InitOutput {
|
|
|
3406
3405
|
readonly wasmmodeltier_set_cacheReadInputTokenCost: (a: number, b: number, c: number) => void;
|
|
3407
3406
|
readonly wasmtranscriptionresponse_set_duration: (a: number, b: number, c: number) => void;
|
|
3408
3407
|
readonly wasmwaitforbatchconfig_set_timeoutSecs: (a: number, b: number, c: number) => void;
|
|
3408
|
+
readonly wasmresponsetool_default: () => number;
|
|
3409
3409
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
3410
3410
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
3411
3411
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
package/liter_llm_wasm.js
CHANGED
|
@@ -12970,11 +12970,16 @@ export function modelInfo(model) {
|
|
|
12970
12970
|
* feature air-gap-safe — an unreachable or invalid `source_url` never
|
|
12971
12971
|
* degrades `completion_cost` / `model_info` below embedded-catalog
|
|
12972
12972
|
* availability.
|
|
12973
|
-
* @param {
|
|
12973
|
+
* @param {WasmCatalogRefreshConfig | null} [config]
|
|
12974
12974
|
* @returns {Promise<WasmRefreshOutcome>}
|
|
12975
12975
|
*/
|
|
12976
12976
|
export function refreshCatalog(config) {
|
|
12977
|
-
|
|
12977
|
+
let ptr0 = 0;
|
|
12978
|
+
if (!isLikeNone(config)) {
|
|
12979
|
+
_assertClass(config, WasmCatalogRefreshConfig);
|
|
12980
|
+
ptr0 = config.__destroy_into_raw();
|
|
12981
|
+
}
|
|
12982
|
+
const ret = wasm.refreshCatalog(ptr0);
|
|
12978
12983
|
return ret;
|
|
12979
12984
|
}
|
|
12980
12985
|
|
|
@@ -13027,17 +13032,6 @@ function __wbg_get_imports() {
|
|
|
13027
13032
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
13028
13033
|
return ret;
|
|
13029
13034
|
},
|
|
13030
|
-
__wbg_Number_3890faa6d3ff057d: function(arg0) {
|
|
13031
|
-
const ret = Number(arg0);
|
|
13032
|
-
return ret;
|
|
13033
|
-
},
|
|
13034
|
-
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
13035
|
-
const ret = String(arg1);
|
|
13036
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
13037
|
-
const len1 = WASM_VECTOR_LEN;
|
|
13038
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
13039
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
13040
|
-
},
|
|
13041
13035
|
__wbg___wbindgen_bigint_get_as_i64_c4ecf48528083721: function(arg0, arg1) {
|
|
13042
13036
|
const v = arg1;
|
|
13043
13037
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -13232,10 +13226,6 @@ function __wbg_get_imports() {
|
|
|
13232
13226
|
const ret = arg0.value;
|
|
13233
13227
|
return ret;
|
|
13234
13228
|
},
|
|
13235
|
-
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
13236
|
-
const ret = arg0[arg1];
|
|
13237
|
-
return ret;
|
|
13238
|
-
},
|
|
13239
13229
|
__wbg_has_b3a6e6d0d28295fa: function() { return handleError(function (arg0, arg1) {
|
|
13240
13230
|
const ret = Reflect.has(arg0, arg1);
|
|
13241
13231
|
return ret;
|
|
@@ -13743,22 +13733,22 @@ function __wbg_get_imports() {
|
|
|
13743
13733
|
return ret;
|
|
13744
13734
|
},
|
|
13745
13735
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
13746
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
13736
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 841, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
13747
13737
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h667483e89d9b83b0);
|
|
13748
13738
|
return ret;
|
|
13749
13739
|
},
|
|
13750
13740
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
13751
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
13741
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 861, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
13752
13742
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb69aa43042a172e9);
|
|
13753
13743
|
return ret;
|
|
13754
13744
|
},
|
|
13755
13745
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
13756
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
13746
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 766, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
13757
13747
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha0196e5ce9bd92f7);
|
|
13758
13748
|
return ret;
|
|
13759
13749
|
},
|
|
13760
13750
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
13761
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
13751
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 782, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
13762
13752
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc5a94ae7f9ac4e35);
|
|
13763
13753
|
return ret;
|
|
13764
13754
|
},
|
package/liter_llm_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED