@xberg-io/liter-llm-wasm 1.18.0 → 1.18.3

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  <!-- This file is auto-generated by alef — DO NOT EDIT. -->
2
- <!-- alef:hash:0182111d1b9d1278377437dca84d2e7dbaaf39907db575f8151839f9c23df553 -->
2
+ <!-- alef:hash:d33bbb9810a8e66edae86190f35acbffb404c53c88256311f947887412f27dd8 -->
3
3
  <!-- To regenerate: alef readme -->
4
4
  <!-- To verify freshness: alef verify -->
5
5
 
@@ -8,7 +8,13 @@
8
8
 
9
9
  export type ReadableStreamType = "bytes";
10
10
 
11
- export type WasmUserContent = string | any[];
11
+ export type WasmEmbeddingInput = string | string[] | any[];
12
+
13
+ export type WasmModerationInput = string | string[];
14
+
15
+ export type WasmRerankDocument = string | { text: string; };
16
+
17
+ export type WasmStopSequence = string | string[];
12
18
 
13
19
  export type WasmToolChoiceModeWire = "auto" | "required" | "none";
14
20
 
@@ -25,13 +31,7 @@ export interface WasmSpecificToolChoice {
25
31
 
26
32
  export type WasmToolChoice = WasmToolChoiceModeWire | WasmSpecificToolChoice;
27
33
 
28
- export type WasmStopSequence = string | string[];
29
-
30
- export type WasmEmbeddingInput = string | string[] | any[];
31
-
32
- export type WasmModerationInput = string | string[];
33
-
34
- export type WasmRerankDocument = string | { text: string; };
34
+ export type WasmUserContent = string | any[];
35
35
 
36
36
 
37
37
 
@@ -3409,11 +3409,11 @@ export interface InitOutput {
3409
3409
  readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
3410
3410
  readonly intounderlyingbytesource_start: (a: number, b: any) => void;
3411
3411
  readonly intounderlyingbytesource_type: (a: number) => number;
3412
- readonly wasm_bindgen__convert__closures_____invoke__he68dc1d55691411a: (a: number, b: number, c: any) => [number, number];
3413
- readonly wasm_bindgen__convert__closures_____invoke__h5b6b7233e214dd55: (a: number, b: number, c: any, d: any) => void;
3414
- readonly wasm_bindgen__convert__closures_____invoke__h351c53978edbe772: (a: number, b: number, c: any) => void;
3415
- readonly wasm_bindgen__convert__closures_____invoke__h6b7304993d07ecd2: (a: number, b: number) => void;
3416
- readonly wasm_bindgen__convert__closures_____invoke__h7931059d2e71044d: (a: number, b: number) => void;
3412
+ readonly wasm_bindgen__convert__closures_____invoke__hb69aa43042a172e9: (a: number, b: number, c: any) => [number, number];
3413
+ readonly wasm_bindgen__convert__closures_____invoke__h6cb2115a6bd1ee0b: (a: number, b: number, c: any, d: any) => void;
3414
+ readonly wasm_bindgen__convert__closures_____invoke__h667483e89d9b83b0: (a: number, b: number, c: any) => void;
3415
+ readonly wasm_bindgen__convert__closures_____invoke__ha0196e5ce9bd92f7: (a: number, b: number) => void;
3416
+ readonly wasm_bindgen__convert__closures_____invoke__hc5a94ae7f9ac4e35: (a: number, b: number) => void;
3417
3417
  readonly __wbindgen_malloc: (a: number, b: number) => number;
3418
3418
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
3419
3419
  readonly __wbindgen_exn_store: (a: number) => void;
package/liter_llm_wasm.js CHANGED
@@ -13286,7 +13286,7 @@ function __wbg_get_imports() {
13286
13286
  const a = state0.a;
13287
13287
  state0.a = 0;
13288
13288
  try {
13289
- return wasm_bindgen__convert__closures_____invoke__h5b6b7233e214dd55(a, state0.b, arg0, arg1);
13289
+ return wasm_bindgen__convert__closures_____invoke__h6cb2115a6bd1ee0b(a, state0.b, arg0, arg1);
13290
13290
  } finally {
13291
13291
  state0.a = a;
13292
13292
  }
@@ -13682,23 +13682,23 @@ function __wbg_get_imports() {
13682
13682
  return ret;
13683
13683
  },
13684
13684
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
13685
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 839, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13686
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h351c53978edbe772);
13685
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 840, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13686
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h667483e89d9b83b0);
13687
13687
  return ret;
13688
13688
  },
13689
13689
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
13690
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 859, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
13691
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__he68dc1d55691411a);
13690
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 860, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
13691
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb69aa43042a172e9);
13692
13692
  return ret;
13693
13693
  },
13694
13694
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
13695
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 764, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13696
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h6b7304993d07ecd2);
13695
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 765, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13696
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha0196e5ce9bd92f7);
13697
13697
  return ret;
13698
13698
  },
13699
13699
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
13700
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 780, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13701
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7931059d2e71044d);
13700
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 781, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13701
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc5a94ae7f9ac4e35);
13702
13702
  return ret;
13703
13703
  },
13704
13704
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -13744,27 +13744,27 @@ function __wbg_get_imports() {
13744
13744
  };
13745
13745
  }
13746
13746
 
13747
- function wasm_bindgen__convert__closures_____invoke__h6b7304993d07ecd2(arg0, arg1) {
13748
- wasm.wasm_bindgen__convert__closures_____invoke__h6b7304993d07ecd2(arg0, arg1);
13747
+ function wasm_bindgen__convert__closures_____invoke__ha0196e5ce9bd92f7(arg0, arg1) {
13748
+ wasm.wasm_bindgen__convert__closures_____invoke__ha0196e5ce9bd92f7(arg0, arg1);
13749
13749
  }
13750
13750
 
13751
- function wasm_bindgen__convert__closures_____invoke__h7931059d2e71044d(arg0, arg1) {
13752
- wasm.wasm_bindgen__convert__closures_____invoke__h7931059d2e71044d(arg0, arg1);
13751
+ function wasm_bindgen__convert__closures_____invoke__hc5a94ae7f9ac4e35(arg0, arg1) {
13752
+ wasm.wasm_bindgen__convert__closures_____invoke__hc5a94ae7f9ac4e35(arg0, arg1);
13753
13753
  }
13754
13754
 
13755
- function wasm_bindgen__convert__closures_____invoke__h351c53978edbe772(arg0, arg1, arg2) {
13756
- wasm.wasm_bindgen__convert__closures_____invoke__h351c53978edbe772(arg0, arg1, arg2);
13755
+ function wasm_bindgen__convert__closures_____invoke__h667483e89d9b83b0(arg0, arg1, arg2) {
13756
+ wasm.wasm_bindgen__convert__closures_____invoke__h667483e89d9b83b0(arg0, arg1, arg2);
13757
13757
  }
13758
13758
 
13759
- function wasm_bindgen__convert__closures_____invoke__he68dc1d55691411a(arg0, arg1, arg2) {
13760
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__he68dc1d55691411a(arg0, arg1, arg2);
13759
+ function wasm_bindgen__convert__closures_____invoke__hb69aa43042a172e9(arg0, arg1, arg2) {
13760
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__hb69aa43042a172e9(arg0, arg1, arg2);
13761
13761
  if (ret[1]) {
13762
13762
  throw takeFromExternrefTable0(ret[0]);
13763
13763
  }
13764
13764
  }
13765
13765
 
13766
- function wasm_bindgen__convert__closures_____invoke__h5b6b7233e214dd55(arg0, arg1, arg2, arg3) {
13767
- wasm.wasm_bindgen__convert__closures_____invoke__h5b6b7233e214dd55(arg0, arg1, arg2, arg3);
13766
+ function wasm_bindgen__convert__closures_____invoke__h6cb2115a6bd1ee0b(arg0, arg1, arg2, arg3) {
13767
+ wasm.wasm_bindgen__convert__closures_____invoke__h6cb2115a6bd1ee0b(arg0, arg1, arg2, arg3);
13768
13768
  }
13769
13769
 
13770
13770
 
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@xberg-io/liter-llm-wasm",
3
3
  "type": "module",
4
4
  "description": "Universal LLM API client with Rust-powered polyglot bindings.",
5
- "version": "1.18.0",
5
+ "version": "1.18.3",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",