@xberg-io/liter-llm-wasm 1.9.0 → 1.9.1
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 +65 -65
- package/liter_llm_wasm.d.ts +5 -5
- package/liter_llm_wasm.js +4 -4
- package/liter_llm_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,75 +8,75 @@
|
|
|
8
8
|
# WebAssembly
|
|
9
9
|
|
|
10
10
|
<div align="center" style="display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0">
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
11
|
+
<!-- Built with -->
|
|
12
|
+
<a href="https://github.com/xberg-io/alef">
|
|
13
|
+
<img src="https://img.shields.io/badge/Bindings-alef%20%D7%90-007ec6" alt="Bindings" />
|
|
14
|
+
</a>
|
|
15
|
+
<!-- Language Bindings -->
|
|
16
|
+
<a href="https://crates.io/crates/liter-llm">
|
|
17
|
+
<img src="https://img.shields.io/crates/v/liter-llm?label=Rust&color=007ec6" alt="Rust" />
|
|
18
|
+
</a>
|
|
19
|
+
<a href="https://pypi.org/project/liter-llm/">
|
|
20
|
+
<img src="https://img.shields.io/pypi/v/liter-llm?label=Python&color=007ec6" alt="Python" />
|
|
21
|
+
</a>
|
|
22
|
+
<a href="https://www.npmjs.com/package/@xberg-io/liter-llm">
|
|
23
|
+
<img src="https://img.shields.io/npm/v/@xberg-io/liter-llm?label=Node.js&color=007ec6" alt="Node.js" />
|
|
24
|
+
</a>
|
|
25
|
+
<a href="https://www.npmjs.com/package/@xberg-io/liter-llm-wasm">
|
|
26
|
+
<img src="https://img.shields.io/npm/v/@xberg-io/liter-llm-wasm?label=WASM&color=007ec6" alt="WASM" />
|
|
27
|
+
</a>
|
|
28
|
+
<a href="https://central.sonatype.com/artifact/io.xberg.literllm/liter-llm">
|
|
29
|
+
<img src="https://img.shields.io/maven-central/v/io.xberg.literllm/liter-llm?label=Java&color=007ec6" alt="Java" />
|
|
30
|
+
</a>
|
|
31
|
+
<a href="https://github.com/xberg-io/liter-llm/tree/main/packages/go">
|
|
32
|
+
<img src="https://img.shields.io/github/v/tag/xberg-io/liter-llm?label=Go&color=007ec6" alt="Go" />
|
|
33
|
+
</a>
|
|
34
|
+
<a href="https://www.nuget.org/packages/LiterLlm">
|
|
35
|
+
<img src="https://img.shields.io/nuget/v/LiterLlm?label=C%23&color=007ec6" alt="C#" />
|
|
36
|
+
</a>
|
|
37
|
+
<a href="https://packagist.org/packages/xberg-io/liter-llm">
|
|
38
|
+
<img src="https://img.shields.io/packagist/v/xberg-io/liter-llm?label=PHP&color=007ec6" alt="PHP" />
|
|
39
|
+
</a>
|
|
40
|
+
<a href="https://rubygems.org/gems/liter_llm">
|
|
41
|
+
<img src="https://img.shields.io/gem/v/liter_llm?label=Ruby&color=007ec6" alt="Ruby" />
|
|
42
|
+
</a>
|
|
43
|
+
<a href="https://hex.pm/packages/liter_llm">
|
|
44
|
+
<img src="https://img.shields.io/hexpm/v/liter_llm?label=Elixir&color=007ec6" alt="Elixir" />
|
|
45
|
+
</a>
|
|
46
|
+
<a href="https://github.com/xberg-io/liter-llm/pkgs/container/liter-llm">
|
|
47
|
+
<img src="https://img.shields.io/badge/Docker-007ec6?logo=docker&logoColor=white" alt="Docker" />
|
|
48
|
+
</a>
|
|
49
|
+
<a href="https://github.com/xberg-io/homebrew-tap/blob/main/Formula/liter-llm.rb">
|
|
50
|
+
<img src="https://img.shields.io/badge/Homebrew-007ec6?logo=homebrew&logoColor=white" alt="Homebrew" />
|
|
51
|
+
</a>
|
|
52
|
+
<a href="https://github.com/xberg-io/liter-llm/tree/main/crates/liter-llm-ffi">
|
|
53
|
+
<img src="https://img.shields.io/badge/C-FFI-007ec6" alt="C FFI" />
|
|
54
|
+
</a>
|
|
55
|
+
|
|
56
|
+
<!-- Project Info -->
|
|
57
|
+
<a href="https://github.com/xberg-io/liter-llm/blob/main/LICENSE">
|
|
58
|
+
<img src="https://img.shields.io/badge/License-MIT-007ec6" alt="License" />
|
|
59
|
+
</a>
|
|
60
|
+
<a href="https://docs.liter-llm.xberg.io">
|
|
61
|
+
<img src="https://img.shields.io/badge/Docs-liter--llm-007ec6" alt="Docs" />
|
|
62
|
+
</a>
|
|
63
63
|
</div>
|
|
64
64
|
<div align="center" style="margin: 24px 0 0">
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<a href="https://xberg.io">
|
|
66
|
+
<img
|
|
67
|
+
alt="xberg.io"
|
|
68
|
+
src="https://github.com/user-attachments/assets/1b6c6ad7-3b6d-4171-b1c9-f2026cc9deb8"
|
|
69
|
+
/>
|
|
70
|
+
</a>
|
|
71
71
|
</div>
|
|
72
72
|
<div align="center" style="display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 24px">
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
<a href="https://discord.gg/xt9WY3GnKR">
|
|
74
|
+
<img
|
|
75
|
+
height="22"
|
|
76
|
+
src="https://img.shields.io/badge/Discord-Chat-007ec6?logo=discord&logoColor=white"
|
|
77
|
+
alt="Join Discord"
|
|
78
|
+
/>
|
|
79
|
+
</a>
|
|
80
80
|
</div>
|
|
81
81
|
|
|
82
82
|
Universal LLM API client for browsers and WebAssembly runtimes. Access 143 LLM providers with portable deployment across browsers, Deno, and Cloudflare Workers.
|
package/liter_llm_wasm.d.ts
CHANGED
|
@@ -2102,6 +2102,7 @@ export interface InitOutput {
|
|
|
2102
2102
|
readonly wasmchatcompletionrequest_topP: (a: number) => [number, number];
|
|
2103
2103
|
readonly wasmchatcompletionrequest_user: (a: number) => [number, number];
|
|
2104
2104
|
readonly wasmchatcompletionresponse_choices: (a: number) => [number, number];
|
|
2105
|
+
readonly wasmchatcompletionresponse_default: () => number;
|
|
2105
2106
|
readonly wasmchatcompletionresponse_id: (a: number) => [number, number];
|
|
2106
2107
|
readonly wasmchatcompletionresponse_model: (a: number) => [number, number];
|
|
2107
2108
|
readonly wasmchatcompletionresponse_new: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => number;
|
|
@@ -2219,6 +2220,7 @@ export interface InitOutput {
|
|
|
2219
2220
|
readonly wasmcustomproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
|
|
2220
2221
|
readonly wasmcustomproviderconfig_set_name: (a: number, b: number, c: number) => void;
|
|
2221
2222
|
readonly wasmdecodeddataurl_data: (a: number) => [number, number];
|
|
2223
|
+
readonly wasmdecodeddataurl_default: () => number;
|
|
2222
2224
|
readonly wasmdecodeddataurl_mime: (a: number) => [number, number];
|
|
2223
2225
|
readonly wasmdecodeddataurl_new: (a: number, b: number, c: number, d: number) => number;
|
|
2224
2226
|
readonly wasmdecodeddataurl_set_data: (a: number, b: number, c: number) => void;
|
|
@@ -2263,6 +2265,7 @@ export interface InitOutput {
|
|
|
2263
2265
|
readonly wasmdevelopermessage_set_content: (a: number, b: number, c: number) => void;
|
|
2264
2266
|
readonly wasmdevelopermessage_set_name: (a: number, b: number, c: number) => void;
|
|
2265
2267
|
readonly wasmdocumentcontent_data: (a: number) => [number, number];
|
|
2268
|
+
readonly wasmdocumentcontent_default: () => number;
|
|
2266
2269
|
readonly wasmdocumentcontent_mediaType: (a: number) => [number, number];
|
|
2267
2270
|
readonly wasmdocumentcontent_set_data: (a: number, b: number, c: number) => void;
|
|
2268
2271
|
readonly wasmdocumentcontent_set_mediaType: (a: number, b: number, c: number) => void;
|
|
@@ -2479,6 +2482,7 @@ export interface InitOutput {
|
|
|
2479
2482
|
readonly wasmocrpage_set_images: (a: number, b: number, c: number) => void;
|
|
2480
2483
|
readonly wasmocrpage_set_index: (a: number, b: number) => void;
|
|
2481
2484
|
readonly wasmocrpage_set_markdown: (a: number, b: number, c: number) => void;
|
|
2485
|
+
readonly wasmocrrequest_default: () => number;
|
|
2482
2486
|
readonly wasmocrrequest_document: (a: number) => any;
|
|
2483
2487
|
readonly wasmocrrequest_model: (a: number) => [number, number];
|
|
2484
2488
|
readonly wasmocrrequest_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
@@ -2695,7 +2699,6 @@ export interface InitOutput {
|
|
|
2695
2699
|
readonly wasmmessage_new: () => number;
|
|
2696
2700
|
readonly wasmocrimage_default: () => number;
|
|
2697
2701
|
readonly wasmresponseformat_new: () => number;
|
|
2698
|
-
readonly wasmresponsetool_default: () => number;
|
|
2699
2702
|
readonly wasmocrrequest_includeImageBase64: (a: number) => number;
|
|
2700
2703
|
readonly wasmchatcompletionrequest_set_maxTokens: (a: number, b: number, c: bigint) => void;
|
|
2701
2704
|
readonly wasmcreateresponserequest_set_maxOutputTokens: (a: number, b: number, c: bigint) => void;
|
|
@@ -2751,13 +2754,10 @@ export interface InitOutput {
|
|
|
2751
2754
|
readonly wasmusage_totalTokens: (a: number) => bigint;
|
|
2752
2755
|
readonly wasmwaitforbatchconfig_initialIntervalSecs: (a: number) => number;
|
|
2753
2756
|
readonly wasmwaitforbatchconfig_maxIntervalSecs: (a: number) => number;
|
|
2754
|
-
readonly wasmdecodeddataurl_default: () => number;
|
|
2755
|
-
readonly wasmdocumentcontent_default: () => number;
|
|
2756
2757
|
readonly wasmfunctioncall_default: () => number;
|
|
2757
2758
|
readonly wasmfunctiondefinition_default: () => number;
|
|
2758
2759
|
readonly wasmfunctionmessage_default: () => number;
|
|
2759
2760
|
readonly wasmocrdocument_new: () => number;
|
|
2760
|
-
readonly wasmocrrequest_default: () => number;
|
|
2761
2761
|
readonly wasmspecifictoolchoice_set_choiceType: (a: number, b: number) => void;
|
|
2762
2762
|
readonly wasmtoolcall_set_callType: (a: number, b: number) => void;
|
|
2763
2763
|
readonly wasmimageurl_set_detail: (a: number, b: number) => void;
|
|
@@ -2781,10 +2781,10 @@ export interface InitOutput {
|
|
|
2781
2781
|
readonly wasmusermessage_default: () => number;
|
|
2782
2782
|
readonly wasmsystemmessage_set_content: (a: number, b: number) => void;
|
|
2783
2783
|
readonly wasmusermessage_set_content: (a: number, b: number) => void;
|
|
2784
|
+
readonly wasmresponsetool_default: () => number;
|
|
2784
2785
|
readonly wasmocrrequest_set_includeImageBase64: (a: number, b: number) => void;
|
|
2785
2786
|
readonly wasmassistantpart_new: () => number;
|
|
2786
2787
|
readonly wasmcontentpart_new: () => number;
|
|
2787
|
-
readonly wasmchatcompletionresponse_default: () => number;
|
|
2788
2788
|
readonly wasmpagedimensions_new: (a: number, b: number) => number;
|
|
2789
2789
|
readonly wasmspecificfunction_default: () => number;
|
|
2790
2790
|
readonly wasmspecifictoolchoice_default: () => number;
|
package/liter_llm_wasm.js
CHANGED
|
@@ -11671,22 +11671,22 @@ function __wbg_get_imports() {
|
|
|
11671
11671
|
return ret;
|
|
11672
11672
|
},
|
|
11673
11673
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
11674
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
11674
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 759, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
11675
11675
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h8f2745896ae252fa);
|
|
11676
11676
|
return ret;
|
|
11677
11677
|
},
|
|
11678
11678
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
11679
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
11679
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 779, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
11680
11680
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2129d5531ed495dc);
|
|
11681
11681
|
return ret;
|
|
11682
11682
|
},
|
|
11683
11683
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
11684
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
11684
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 684, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
11685
11685
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__he71dd13cdcbe7d8a);
|
|
11686
11686
|
return ret;
|
|
11687
11687
|
},
|
|
11688
11688
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
11689
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
11689
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 700, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
11690
11690
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5f51c26252c9be11);
|
|
11691
11691
|
return ret;
|
|
11692
11692
|
},
|
package/liter_llm_wasm_bg.wasm
CHANGED
|
Binary file
|