@xberg-io/liter-llm-wasm 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/liter_llm_wasm.d.ts +21 -8
- package/liter_llm_wasm.js +87 -28
- package/liter_llm_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
</a>
|
|
80
80
|
</div>
|
|
81
81
|
|
|
82
|
-
Universal LLM API client for browsers and WebAssembly runtimes. Access
|
|
82
|
+
Universal LLM API client for browsers and WebAssembly runtimes. Access 165 LLM providers with portable deployment across browsers, Deno, and Cloudflare Workers.
|
|
83
83
|
|
|
84
84
|
## What This Package Provides
|
|
85
85
|
|
|
@@ -175,7 +175,7 @@ console.log();
|
|
|
175
175
|
|
|
176
176
|
## Features
|
|
177
177
|
|
|
178
|
-
### Supported Providers (
|
|
178
|
+
### Supported Providers (165)
|
|
179
179
|
|
|
180
180
|
Route to any provider using the `provider/model` prefix convention:
|
|
181
181
|
|
|
@@ -195,7 +195,7 @@ Route to any provider using the `provider/model` prefix convention:
|
|
|
195
195
|
|
|
196
196
|
### Key Capabilities
|
|
197
197
|
|
|
198
|
-
- **Provider Routing** -- Single client for
|
|
198
|
+
- **Provider Routing** -- Single client for 165 LLM providers via `provider/model` prefix
|
|
199
199
|
- **Local LLMs** — Connect to locally-hosted models via Ollama, LM Studio, vLLM, llama.cpp, and other local inference servers
|
|
200
200
|
- **Unified API** -- Consistent `chat`, `chat_stream`, `embeddings`, `list_models` interface
|
|
201
201
|
- **Streaming** -- Real-time token streaming via `chat_stream`
|
|
@@ -216,7 +216,7 @@ Built on a compiled Rust core for speed and safety:
|
|
|
216
216
|
|
|
217
217
|
## Provider Routing
|
|
218
218
|
|
|
219
|
-
Route to
|
|
219
|
+
Route to 165 providers using the `provider/model` prefix convention:
|
|
220
220
|
|
|
221
221
|
```text
|
|
222
222
|
openai/gpt-4o
|
|
@@ -251,7 +251,7 @@ To use the MCP server inside a coding agent, install the **liter-llm plugin** fr
|
|
|
251
251
|
|
|
252
252
|
- **[Documentation](https://docs.liter-llm.xberg.io)** -- Full docs and API reference
|
|
253
253
|
- **[GitHub Repository](https://github.com/xberg-io/liter-llm)** -- Source, issues, and discussions
|
|
254
|
-
- **[Provider Registry](https://github.com/xberg-io/liter-llm/blob/main/schemas/providers.json)** --
|
|
254
|
+
- **[Provider Registry](https://github.com/xberg-io/liter-llm/blob/main/schemas/providers.json)** -- 165 supported providers
|
|
255
255
|
|
|
256
256
|
## Part of Xberg.io
|
|
257
257
|
|
|
@@ -259,7 +259,7 @@ To use the MCP server inside a coding agent, install the **liter-llm plugin** fr
|
|
|
259
259
|
- [Xberg Enterprise](https://github.com/xberg-io/xberg-enterprise) — managed extraction API with SDKs, dashboards, and observability.
|
|
260
260
|
- [crawlberg](https://github.com/xberg-io/crawlberg) — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
|
|
261
261
|
- [html-to-markdown](https://github.com/xberg-io/html-to-markdown) — fast, lossless HTML→Markdown engine.
|
|
262
|
-
- [liter-llm](https://github.com/xberg-io/liter-llm) — universal LLM API client with native bindings for 14 languages and
|
|
262
|
+
- [liter-llm](https://github.com/xberg-io/liter-llm) — universal LLM API client with native bindings for 14 languages and 165 providers.
|
|
263
263
|
- [tree-sitter-language-pack](https://github.com/xberg-io/tree-sitter-language-pack) — tree-sitter grammars and code-intelligence primitives.
|
|
264
264
|
- [alef](https://github.com/xberg-io/alef) — the polyglot binding generator that produces every per-language binding across the 5 polyglot repos.
|
|
265
265
|
- [Discord](https://discord.gg/xt9WY3GnKR) — community, roadmap, announcements.
|
package/liter_llm_wasm.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export class WasmAssistantMessage {
|
|
|
63
63
|
free(): void;
|
|
64
64
|
[Symbol.dispose](): void;
|
|
65
65
|
static default(): WasmAssistantMessage;
|
|
66
|
-
constructor(content?: string | null, name?: string | null, toolCalls?: WasmToolCall[] | null, refusal?: string | null, functionCall?: WasmFunctionCall | null);
|
|
66
|
+
constructor(content?: string | null, name?: string | null, toolCalls?: WasmToolCall[] | null, refusal?: string | null, functionCall?: WasmFunctionCall | null, reasoningContent?: string | null);
|
|
67
67
|
/**
|
|
68
68
|
* Return all `AssistantPart.OutputAudio` parts in the response.
|
|
69
69
|
*/
|
|
@@ -72,6 +72,10 @@ export class WasmAssistantMessage {
|
|
|
72
72
|
* Return all `AssistantPart.OutputImage` parts in the response.
|
|
73
73
|
*/
|
|
74
74
|
outputImages(): WasmImageUrl[];
|
|
75
|
+
/**
|
|
76
|
+
* Return the model's reasoning/thinking tokens, if the provider returned any.
|
|
77
|
+
*/
|
|
78
|
+
reasoningText(): string | undefined;
|
|
75
79
|
/**
|
|
76
80
|
* Return the refusal message, if the model declined to respond.
|
|
77
81
|
*
|
|
@@ -92,6 +96,8 @@ export class WasmAssistantMessage {
|
|
|
92
96
|
set functionCall(value: WasmFunctionCall | null | undefined);
|
|
93
97
|
get name(): string | undefined;
|
|
94
98
|
set name(value: string | null | undefined);
|
|
99
|
+
get reasoningContent(): string | undefined;
|
|
100
|
+
set reasoningContent(value: string | null | undefined);
|
|
95
101
|
get refusal(): string | undefined;
|
|
96
102
|
set refusal(value: string | null | undefined);
|
|
97
103
|
get toolCalls(): Array<any> | undefined;
|
|
@@ -559,7 +565,7 @@ export class WasmDecodedDataUrl {
|
|
|
559
565
|
/**
|
|
560
566
|
* Default client implementation backed by `reqwest`.
|
|
561
567
|
*
|
|
562
|
-
* Sends requests to
|
|
568
|
+
* Sends requests to 165 LLM providers with automatic provider detection
|
|
563
569
|
* and per-request routing. The provider is resolved at construction time
|
|
564
570
|
* from `model_hint` (or defaults to OpenAI), but individual requests can
|
|
565
571
|
* override the provider via model name prefix (e.g. `"anthropic/claude-3-5-sonnet"`
|
|
@@ -679,8 +685,8 @@ export class WasmEmbeddingObject {
|
|
|
679
685
|
free(): void;
|
|
680
686
|
[Symbol.dispose](): void;
|
|
681
687
|
static default(): WasmEmbeddingObject;
|
|
682
|
-
constructor(object: string, embedding:
|
|
683
|
-
embedding:
|
|
688
|
+
constructor(object: string, embedding: Float32Array, index: number);
|
|
689
|
+
embedding: Float32Array;
|
|
684
690
|
index: number;
|
|
685
691
|
object: string;
|
|
686
692
|
}
|
|
@@ -1560,11 +1566,13 @@ export class WasmStreamDelta {
|
|
|
1560
1566
|
free(): void;
|
|
1561
1567
|
[Symbol.dispose](): void;
|
|
1562
1568
|
static default(): WasmStreamDelta;
|
|
1563
|
-
constructor(role?: string | null, content?: string | null, toolCalls?: WasmStreamToolCall[] | null, functionCall?: WasmStreamFunctionCall | null, refusal?: string | null);
|
|
1569
|
+
constructor(role?: string | null, content?: string | null, toolCalls?: WasmStreamToolCall[] | null, functionCall?: WasmStreamFunctionCall | null, refusal?: string | null, reasoningContent?: string | null);
|
|
1564
1570
|
get content(): string | undefined;
|
|
1565
1571
|
set content(value: string | null | undefined);
|
|
1566
1572
|
get functionCall(): WasmStreamFunctionCall | undefined;
|
|
1567
1573
|
set functionCall(value: WasmStreamFunctionCall | null | undefined);
|
|
1574
|
+
get reasoningContent(): string | undefined;
|
|
1575
|
+
set reasoningContent(value: string | null | undefined);
|
|
1568
1576
|
get refusal(): string | undefined;
|
|
1569
1577
|
set refusal(value: string | null | undefined);
|
|
1570
1578
|
get role(): string | undefined;
|
|
@@ -1797,7 +1805,7 @@ export function allProviders(): WasmProviderConfig[];
|
|
|
1797
1805
|
/**
|
|
1798
1806
|
* Return the capability flags for a named provider.
|
|
1799
1807
|
*
|
|
1800
|
-
* Performs an O(n) linear scan over the embedded registry (
|
|
1808
|
+
* Performs an O(n) linear scan over the embedded registry (165 entries).
|
|
1801
1809
|
* Returns an owned value so bindings can pass capability data without
|
|
1802
1810
|
* borrowing registry internals.
|
|
1803
1811
|
*
|
|
@@ -2130,14 +2138,17 @@ export interface InitOutput {
|
|
|
2130
2138
|
readonly wasmassistantmessage_default: () => number;
|
|
2131
2139
|
readonly wasmassistantmessage_functionCall: (a: number) => number;
|
|
2132
2140
|
readonly wasmassistantmessage_name: (a: number) => [number, number];
|
|
2133
|
-
readonly wasmassistantmessage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
2141
|
+
readonly wasmassistantmessage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
2134
2142
|
readonly wasmassistantmessage_outputAudio: (a: number) => [number, number];
|
|
2135
2143
|
readonly wasmassistantmessage_outputImages: (a: number) => [number, number];
|
|
2144
|
+
readonly wasmassistantmessage_reasoningContent: (a: number) => [number, number];
|
|
2145
|
+
readonly wasmassistantmessage_reasoningText: (a: number) => [number, number];
|
|
2136
2146
|
readonly wasmassistantmessage_refusal: (a: number) => [number, number];
|
|
2137
2147
|
readonly wasmassistantmessage_refusalText: (a: number) => [number, number];
|
|
2138
2148
|
readonly wasmassistantmessage_set_content: (a: number, b: number, c: number) => void;
|
|
2139
2149
|
readonly wasmassistantmessage_set_functionCall: (a: number, b: number) => void;
|
|
2140
2150
|
readonly wasmassistantmessage_set_name: (a: number, b: number, c: number) => void;
|
|
2151
|
+
readonly wasmassistantmessage_set_reasoningContent: (a: number, b: number, c: number) => void;
|
|
2141
2152
|
readonly wasmassistantmessage_set_refusal: (a: number, b: number, c: number) => void;
|
|
2142
2153
|
readonly wasmassistantmessage_set_toolCalls: (a: number, b: number, c: number) => void;
|
|
2143
2154
|
readonly wasmassistantmessage_text: (a: number) => [number, number];
|
|
@@ -2848,11 +2859,13 @@ export interface InitOutput {
|
|
|
2848
2859
|
readonly wasmstreamdelta_content: (a: number) => [number, number];
|
|
2849
2860
|
readonly wasmstreamdelta_default: () => number;
|
|
2850
2861
|
readonly wasmstreamdelta_functionCall: (a: number) => number;
|
|
2851
|
-
readonly wasmstreamdelta_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
2862
|
+
readonly wasmstreamdelta_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
2863
|
+
readonly wasmstreamdelta_reasoningContent: (a: number) => [number, number];
|
|
2852
2864
|
readonly wasmstreamdelta_refusal: (a: number) => [number, number];
|
|
2853
2865
|
readonly wasmstreamdelta_role: (a: number) => [number, number];
|
|
2854
2866
|
readonly wasmstreamdelta_set_content: (a: number, b: number, c: number) => void;
|
|
2855
2867
|
readonly wasmstreamdelta_set_functionCall: (a: number, b: number) => void;
|
|
2868
|
+
readonly wasmstreamdelta_set_reasoningContent: (a: number, b: number, c: number) => void;
|
|
2856
2869
|
readonly wasmstreamdelta_set_refusal: (a: number, b: number, c: number) => void;
|
|
2857
2870
|
readonly wasmstreamdelta_set_role: (a: number, b: number, c: number) => void;
|
|
2858
2871
|
readonly wasmstreamdelta_set_toolCalls: (a: number, b: number, c: number) => void;
|
package/liter_llm_wasm.js
CHANGED
|
@@ -216,8 +216,9 @@ export class WasmAssistantMessage {
|
|
|
216
216
|
* @param {WasmToolCall[] | null} [toolCalls]
|
|
217
217
|
* @param {string | null} [refusal]
|
|
218
218
|
* @param {WasmFunctionCall | null} [functionCall]
|
|
219
|
+
* @param {string | null} [reasoningContent]
|
|
219
220
|
*/
|
|
220
|
-
constructor(content, name, toolCalls, refusal, functionCall) {
|
|
221
|
+
constructor(content, name, toolCalls, refusal, functionCall, reasoningContent) {
|
|
221
222
|
var ptr0 = isLikeNone(content) ? 0 : passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
222
223
|
var len0 = WASM_VECTOR_LEN;
|
|
223
224
|
var ptr1 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -231,7 +232,9 @@ export class WasmAssistantMessage {
|
|
|
231
232
|
_assertClass(functionCall, WasmFunctionCall);
|
|
232
233
|
ptr4 = functionCall.__destroy_into_raw();
|
|
233
234
|
}
|
|
234
|
-
|
|
235
|
+
var ptr5 = isLikeNone(reasoningContent) ? 0 : passStringToWasm0(reasoningContent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
+
var len5 = WASM_VECTOR_LEN;
|
|
237
|
+
const ret = wasm.wasmassistantmessage_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, ptr5, len5);
|
|
235
238
|
this.__wbg_ptr = ret;
|
|
236
239
|
WasmAssistantMessageFinalization.register(this, this.__wbg_ptr, this);
|
|
237
240
|
return this;
|
|
@@ -256,6 +259,31 @@ export class WasmAssistantMessage {
|
|
|
256
259
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
257
260
|
return v1;
|
|
258
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* @returns {string | undefined}
|
|
264
|
+
*/
|
|
265
|
+
get reasoningContent() {
|
|
266
|
+
const ret = wasm.wasmassistantmessage_reasoningContent(this.__wbg_ptr);
|
|
267
|
+
let v1;
|
|
268
|
+
if (ret[0] !== 0) {
|
|
269
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
270
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
271
|
+
}
|
|
272
|
+
return v1;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Return the model's reasoning/thinking tokens, if the provider returned any.
|
|
276
|
+
* @returns {string | undefined}
|
|
277
|
+
*/
|
|
278
|
+
reasoningText() {
|
|
279
|
+
const ret = wasm.wasmassistantmessage_reasoningText(this.__wbg_ptr);
|
|
280
|
+
let v1;
|
|
281
|
+
if (ret[0] !== 0) {
|
|
282
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
283
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
284
|
+
}
|
|
285
|
+
return v1;
|
|
286
|
+
}
|
|
259
287
|
/**
|
|
260
288
|
* @returns {string | undefined}
|
|
261
289
|
*/
|
|
@@ -311,6 +339,14 @@ export class WasmAssistantMessage {
|
|
|
311
339
|
var len0 = WASM_VECTOR_LEN;
|
|
312
340
|
wasm.wasmassistantmessage_set_name(this.__wbg_ptr, ptr0, len0);
|
|
313
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* @param {string | null} [value]
|
|
344
|
+
*/
|
|
345
|
+
set reasoningContent(value) {
|
|
346
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
347
|
+
var len0 = WASM_VECTOR_LEN;
|
|
348
|
+
wasm.wasmassistantmessage_set_reasoningContent(this.__wbg_ptr, ptr0, len0);
|
|
349
|
+
}
|
|
314
350
|
/**
|
|
315
351
|
* @param {string | null} [value]
|
|
316
352
|
*/
|
|
@@ -3763,7 +3799,7 @@ if (Symbol.dispose) WasmDecodedDataUrl.prototype[Symbol.dispose] = WasmDecodedDa
|
|
|
3763
3799
|
/**
|
|
3764
3800
|
* Default client implementation backed by `reqwest`.
|
|
3765
3801
|
*
|
|
3766
|
-
* Sends requests to
|
|
3802
|
+
* Sends requests to 165 LLM providers with automatic provider detection
|
|
3767
3803
|
* and per-request routing. The provider is resolved at construction time
|
|
3768
3804
|
* from `model_hint` (or defaults to OpenAI), but individual requests can
|
|
3769
3805
|
* override the provider via model name prefix (e.g. `"anthropic/claude-3-5-sonnet"`
|
|
@@ -4398,12 +4434,12 @@ export class WasmEmbeddingObject {
|
|
|
4398
4434
|
return WasmEmbeddingObject.__wrap(ret);
|
|
4399
4435
|
}
|
|
4400
4436
|
/**
|
|
4401
|
-
* @returns {
|
|
4437
|
+
* @returns {Float32Array}
|
|
4402
4438
|
*/
|
|
4403
4439
|
get embedding() {
|
|
4404
4440
|
const ret = wasm.wasmembeddingobject_embedding(this.__wbg_ptr);
|
|
4405
|
-
var v1 =
|
|
4406
|
-
wasm.__wbindgen_free(ret[0], ret[1] *
|
|
4441
|
+
var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
4442
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4407
4443
|
return v1;
|
|
4408
4444
|
}
|
|
4409
4445
|
/**
|
|
@@ -4415,13 +4451,13 @@ export class WasmEmbeddingObject {
|
|
|
4415
4451
|
}
|
|
4416
4452
|
/**
|
|
4417
4453
|
* @param {string} object
|
|
4418
|
-
* @param {
|
|
4454
|
+
* @param {Float32Array} embedding
|
|
4419
4455
|
* @param {number} index
|
|
4420
4456
|
*/
|
|
4421
4457
|
constructor(object, embedding, index) {
|
|
4422
4458
|
const ptr0 = passStringToWasm0(object, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4423
4459
|
const len0 = WASM_VECTOR_LEN;
|
|
4424
|
-
const ptr1 =
|
|
4460
|
+
const ptr1 = passArrayF32ToWasm0(embedding, wasm.__wbindgen_malloc);
|
|
4425
4461
|
const len1 = WASM_VECTOR_LEN;
|
|
4426
4462
|
const ret = wasm.wasmembeddingobject_new(ptr0, len0, ptr1, len1, index);
|
|
4427
4463
|
this.__wbg_ptr = ret;
|
|
@@ -4444,10 +4480,10 @@ export class WasmEmbeddingObject {
|
|
|
4444
4480
|
}
|
|
4445
4481
|
}
|
|
4446
4482
|
/**
|
|
4447
|
-
* @param {
|
|
4483
|
+
* @param {Float32Array} value
|
|
4448
4484
|
*/
|
|
4449
4485
|
set embedding(value) {
|
|
4450
|
-
const ptr0 =
|
|
4486
|
+
const ptr0 = passArrayF32ToWasm0(value, wasm.__wbindgen_malloc);
|
|
4451
4487
|
const len0 = WASM_VECTOR_LEN;
|
|
4452
4488
|
wasm.wasmembeddingobject_set_embedding(this.__wbg_ptr, ptr0, len0);
|
|
4453
4489
|
}
|
|
@@ -10070,8 +10106,9 @@ export class WasmStreamDelta {
|
|
|
10070
10106
|
* @param {WasmStreamToolCall[] | null} [toolCalls]
|
|
10071
10107
|
* @param {WasmStreamFunctionCall | null} [functionCall]
|
|
10072
10108
|
* @param {string | null} [refusal]
|
|
10109
|
+
* @param {string | null} [reasoningContent]
|
|
10073
10110
|
*/
|
|
10074
|
-
constructor(role, content, toolCalls, functionCall, refusal) {
|
|
10111
|
+
constructor(role, content, toolCalls, functionCall, refusal, reasoningContent) {
|
|
10075
10112
|
var ptr0 = isLikeNone(role) ? 0 : passStringToWasm0(role, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
10076
10113
|
var len0 = WASM_VECTOR_LEN;
|
|
10077
10114
|
var ptr1 = isLikeNone(content) ? 0 : passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -10085,11 +10122,25 @@ export class WasmStreamDelta {
|
|
|
10085
10122
|
}
|
|
10086
10123
|
var ptr4 = isLikeNone(refusal) ? 0 : passStringToWasm0(refusal, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
10087
10124
|
var len4 = WASM_VECTOR_LEN;
|
|
10088
|
-
|
|
10125
|
+
var ptr5 = isLikeNone(reasoningContent) ? 0 : passStringToWasm0(reasoningContent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
10126
|
+
var len5 = WASM_VECTOR_LEN;
|
|
10127
|
+
const ret = wasm.wasmstreamdelta_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, ptr5, len5);
|
|
10089
10128
|
this.__wbg_ptr = ret;
|
|
10090
10129
|
WasmStreamDeltaFinalization.register(this, this.__wbg_ptr, this);
|
|
10091
10130
|
return this;
|
|
10092
10131
|
}
|
|
10132
|
+
/**
|
|
10133
|
+
* @returns {string | undefined}
|
|
10134
|
+
*/
|
|
10135
|
+
get reasoningContent() {
|
|
10136
|
+
const ret = wasm.wasmstreamdelta_reasoningContent(this.__wbg_ptr);
|
|
10137
|
+
let v1;
|
|
10138
|
+
if (ret[0] !== 0) {
|
|
10139
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
10140
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
10141
|
+
}
|
|
10142
|
+
return v1;
|
|
10143
|
+
}
|
|
10093
10144
|
/**
|
|
10094
10145
|
* @returns {string | undefined}
|
|
10095
10146
|
*/
|
|
@@ -10133,6 +10184,14 @@ export class WasmStreamDelta {
|
|
|
10133
10184
|
}
|
|
10134
10185
|
wasm.wasmstreamdelta_set_functionCall(this.__wbg_ptr, ptr0);
|
|
10135
10186
|
}
|
|
10187
|
+
/**
|
|
10188
|
+
* @param {string | null} [value]
|
|
10189
|
+
*/
|
|
10190
|
+
set reasoningContent(value) {
|
|
10191
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
10192
|
+
var len0 = WASM_VECTOR_LEN;
|
|
10193
|
+
wasm.wasmstreamdelta_set_reasoningContent(this.__wbg_ptr, ptr0, len0);
|
|
10194
|
+
}
|
|
10136
10195
|
/**
|
|
10137
10196
|
* @param {string | null} [value]
|
|
10138
10197
|
*/
|
|
@@ -11323,7 +11382,7 @@ export function allProviders() {
|
|
|
11323
11382
|
/**
|
|
11324
11383
|
* Return the capability flags for a named provider.
|
|
11325
11384
|
*
|
|
11326
|
-
* Performs an O(n) linear scan over the embedded registry (
|
|
11385
|
+
* Performs an O(n) linear scan over the embedded registry (165 entries).
|
|
11327
11386
|
* Returns an owned value so bindings can pass capability data without
|
|
11328
11387
|
* borrowing registry internals.
|
|
11329
11388
|
*
|
|
@@ -12397,22 +12456,22 @@ function __wbg_get_imports() {
|
|
|
12397
12456
|
return ret;
|
|
12398
12457
|
},
|
|
12399
12458
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
12400
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
12459
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 776, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
12401
12460
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h838b8ae4822e18a5);
|
|
12402
12461
|
return ret;
|
|
12403
12462
|
},
|
|
12404
12463
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
12405
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
12464
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 796, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
12406
12465
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb42333e27c827052);
|
|
12407
12466
|
return ret;
|
|
12408
12467
|
},
|
|
12409
12468
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
12410
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
12469
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 701, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
12411
12470
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h238043eefd9b3f4d);
|
|
12412
12471
|
return ret;
|
|
12413
12472
|
},
|
|
12414
12473
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
12415
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
12474
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 717, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
12416
12475
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha49c00e409183b38);
|
|
12417
12476
|
return ret;
|
|
12418
12477
|
},
|
|
@@ -12848,9 +12907,9 @@ function debugString(val) {
|
|
|
12848
12907
|
return className;
|
|
12849
12908
|
}
|
|
12850
12909
|
|
|
12851
|
-
function
|
|
12910
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
12852
12911
|
ptr = ptr >>> 0;
|
|
12853
|
-
return
|
|
12912
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
12854
12913
|
}
|
|
12855
12914
|
|
|
12856
12915
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
@@ -12882,12 +12941,12 @@ function getDataViewMemory0() {
|
|
|
12882
12941
|
return cachedDataViewMemory0;
|
|
12883
12942
|
}
|
|
12884
12943
|
|
|
12885
|
-
let
|
|
12886
|
-
function
|
|
12887
|
-
if (
|
|
12888
|
-
|
|
12944
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
12945
|
+
function getFloat32ArrayMemory0() {
|
|
12946
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
12947
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
12889
12948
|
}
|
|
12890
|
-
return
|
|
12949
|
+
return cachedFloat32ArrayMemory0;
|
|
12891
12950
|
}
|
|
12892
12951
|
|
|
12893
12952
|
function getStringFromWasm0(ptr, len) {
|
|
@@ -12965,9 +13024,9 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
12965
13024
|
return ptr;
|
|
12966
13025
|
}
|
|
12967
13026
|
|
|
12968
|
-
function
|
|
12969
|
-
const ptr = malloc(arg.length *
|
|
12970
|
-
|
|
13027
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
13028
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
13029
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
12971
13030
|
WASM_VECTOR_LEN = arg.length;
|
|
12972
13031
|
return ptr;
|
|
12973
13032
|
}
|
|
@@ -13060,7 +13119,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
13060
13119
|
wasm = instance.exports;
|
|
13061
13120
|
wasmModule = module;
|
|
13062
13121
|
cachedDataViewMemory0 = null;
|
|
13063
|
-
|
|
13122
|
+
cachedFloat32ArrayMemory0 = null;
|
|
13064
13123
|
cachedUint32ArrayMemory0 = null;
|
|
13065
13124
|
cachedUint8ArrayMemory0 = null;
|
|
13066
13125
|
wasm.__wbindgen_start();
|
package/liter_llm_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED