@xberg-io/liter-llm-wasm 1.14.0 → 1.16.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/liter_llm_wasm.d.ts +243 -5
- package/liter_llm_wasm.js +1121 -156
- package/liter_llm_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/liter_llm_wasm.d.ts
CHANGED
|
@@ -262,6 +262,31 @@ export enum WasmBatchStatus {
|
|
|
262
262
|
Cancelled = 7,
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
/**
|
|
266
|
+
* AWS Bedrock configuration.
|
|
267
|
+
*
|
|
268
|
+
* All fields are optional; anything left unset falls back to the standard
|
|
269
|
+
* AWS environment variables (`AWS_DEFAULT_REGION` / `AWS_REGION`,
|
|
270
|
+
* `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`,
|
|
271
|
+
* `BEDROCK_CROSS_REGION`).
|
|
272
|
+
*/
|
|
273
|
+
export class WasmBedrockConfig {
|
|
274
|
+
free(): void;
|
|
275
|
+
[Symbol.dispose](): void;
|
|
276
|
+
static default(): WasmBedrockConfig;
|
|
277
|
+
constructor(region?: string | null, crossRegionPrefix?: string | null, accessKeyId?: string | null, secretAccessKey?: string | null, sessionToken?: string | null);
|
|
278
|
+
get accessKeyId(): string | undefined;
|
|
279
|
+
set accessKeyId(value: string | null | undefined);
|
|
280
|
+
get crossRegionPrefix(): string | undefined;
|
|
281
|
+
set crossRegionPrefix(value: string | null | undefined);
|
|
282
|
+
get region(): string | undefined;
|
|
283
|
+
set region(value: string | null | undefined);
|
|
284
|
+
get secretAccessKey(): string | undefined;
|
|
285
|
+
set secretAccessKey(value: string | null | undefined);
|
|
286
|
+
get sessionToken(): string | undefined;
|
|
287
|
+
set sessionToken(value: string | null | undefined);
|
|
288
|
+
}
|
|
289
|
+
|
|
265
290
|
/**
|
|
266
291
|
* Plain-data configuration for `refresh_catalog`.
|
|
267
292
|
*
|
|
@@ -925,6 +950,126 @@ export class WasmLiterLlmError {
|
|
|
925
950
|
statusCode(): number;
|
|
926
951
|
}
|
|
927
952
|
|
|
953
|
+
/**
|
|
954
|
+
* Budget enforcement configuration.
|
|
955
|
+
*/
|
|
956
|
+
export class WasmLlmBudgetConfig {
|
|
957
|
+
free(): void;
|
|
958
|
+
[Symbol.dispose](): void;
|
|
959
|
+
static default(): WasmLlmBudgetConfig;
|
|
960
|
+
constructor(globalLimit?: number | null, modelLimits?: any | null, enforcement?: string | null);
|
|
961
|
+
get enforcement(): string | undefined;
|
|
962
|
+
set enforcement(value: string | null | undefined);
|
|
963
|
+
get globalLimit(): number | undefined;
|
|
964
|
+
set globalLimit(value: number | null | undefined);
|
|
965
|
+
get modelLimits(): any | undefined;
|
|
966
|
+
set modelLimits(value: any | null | undefined);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Response cache configuration.
|
|
971
|
+
*/
|
|
972
|
+
export class WasmLlmCacheConfig {
|
|
973
|
+
free(): void;
|
|
974
|
+
[Symbol.dispose](): void;
|
|
975
|
+
static default(): WasmLlmCacheConfig;
|
|
976
|
+
constructor(maxEntries?: number | null, ttlSeconds?: bigint | null, backend?: string | null, backendConfig?: any | null);
|
|
977
|
+
get backend(): string | undefined;
|
|
978
|
+
set backend(value: string | null | undefined);
|
|
979
|
+
get backendConfig(): any | undefined;
|
|
980
|
+
set backendConfig(value: any | null | undefined);
|
|
981
|
+
get maxEntries(): number | undefined;
|
|
982
|
+
set maxEntries(value: number | null | undefined);
|
|
983
|
+
get ttlSeconds(): bigint | undefined;
|
|
984
|
+
set ttlSeconds(value: bigint | null | undefined);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Canonical configuration for an LLM client.
|
|
989
|
+
*
|
|
990
|
+
* All fields except `model` are optional so that partially-specified
|
|
991
|
+
* configs (e.g. from environment-driven defaults) round-trip cleanly.
|
|
992
|
+
* Convert to a runtime client configuration via
|
|
993
|
+
* `LlmConfig.into_client_builder`.
|
|
994
|
+
*
|
|
995
|
+
* `temperature` and `max_tokens` are request-time parameters rather than
|
|
996
|
+
* client-level settings; they are carried on this struct for callers to
|
|
997
|
+
* read when building individual requests, and are intentionally **not**
|
|
998
|
+
* mapped by `LlmConfig.into_client_builder`.
|
|
999
|
+
*/
|
|
1000
|
+
export class WasmLlmConfig {
|
|
1001
|
+
free(): void;
|
|
1002
|
+
[Symbol.dispose](): void;
|
|
1003
|
+
static default(): WasmLlmConfig;
|
|
1004
|
+
constructor(model?: string | null, apiKey?: string | null, baseUrl?: string | null, timeoutSecs?: bigint | null, maxRetries?: number | null, temperature?: number | null, maxTokens?: bigint | null, loadEnv?: boolean | null, headers?: any | null, providers?: WasmLlmProviderConfig[] | null, cache?: WasmLlmCacheConfig | null, budget?: WasmLlmBudgetConfig | null, rateLimit?: WasmLlmRateLimitConfig | null, costTracking?: boolean | null, tracing?: boolean | null, cooldownSecs?: bigint | null, healthCheckSecs?: bigint | null, bedrock?: WasmBedrockConfig | null);
|
|
1005
|
+
get apiKey(): string | undefined;
|
|
1006
|
+
set apiKey(value: string | null | undefined);
|
|
1007
|
+
get baseUrl(): string | undefined;
|
|
1008
|
+
set baseUrl(value: string | null | undefined);
|
|
1009
|
+
get bedrock(): WasmBedrockConfig | undefined;
|
|
1010
|
+
set bedrock(value: WasmBedrockConfig | null | undefined);
|
|
1011
|
+
get budget(): WasmLlmBudgetConfig | undefined;
|
|
1012
|
+
set budget(value: WasmLlmBudgetConfig | null | undefined);
|
|
1013
|
+
get cache(): WasmLlmCacheConfig | undefined;
|
|
1014
|
+
set cache(value: WasmLlmCacheConfig | null | undefined);
|
|
1015
|
+
get cooldownSecs(): bigint | undefined;
|
|
1016
|
+
set cooldownSecs(value: bigint | null | undefined);
|
|
1017
|
+
get costTracking(): boolean | undefined;
|
|
1018
|
+
set costTracking(value: boolean | null | undefined);
|
|
1019
|
+
get headers(): any | undefined;
|
|
1020
|
+
set headers(value: any | null | undefined);
|
|
1021
|
+
get healthCheckSecs(): bigint | undefined;
|
|
1022
|
+
set healthCheckSecs(value: bigint | null | undefined);
|
|
1023
|
+
get loadEnv(): boolean | undefined;
|
|
1024
|
+
set loadEnv(value: boolean | null | undefined);
|
|
1025
|
+
get maxRetries(): number | undefined;
|
|
1026
|
+
set maxRetries(value: number | null | undefined);
|
|
1027
|
+
get maxTokens(): bigint | undefined;
|
|
1028
|
+
set maxTokens(value: bigint | null | undefined);
|
|
1029
|
+
model: string;
|
|
1030
|
+
get providers(): Array<any> | undefined;
|
|
1031
|
+
set providers(value: WasmLlmProviderConfig[] | null | undefined);
|
|
1032
|
+
get rateLimit(): WasmLlmRateLimitConfig | undefined;
|
|
1033
|
+
set rateLimit(value: WasmLlmRateLimitConfig | null | undefined);
|
|
1034
|
+
get temperature(): number | undefined;
|
|
1035
|
+
set temperature(value: number | null | undefined);
|
|
1036
|
+
get timeoutSecs(): bigint | undefined;
|
|
1037
|
+
set timeoutSecs(value: bigint | null | undefined);
|
|
1038
|
+
get tracing(): boolean | undefined;
|
|
1039
|
+
set tracing(value: boolean | null | undefined);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* A custom provider configuration entry.
|
|
1044
|
+
*/
|
|
1045
|
+
export class WasmLlmProviderConfig {
|
|
1046
|
+
free(): void;
|
|
1047
|
+
[Symbol.dispose](): void;
|
|
1048
|
+
static default(): WasmLlmProviderConfig;
|
|
1049
|
+
constructor(name?: string | null, baseUrl?: string | null, modelPrefixes?: string[] | null, authHeader?: string | null);
|
|
1050
|
+
get authHeader(): string | undefined;
|
|
1051
|
+
set authHeader(value: string | null | undefined);
|
|
1052
|
+
baseUrl: string;
|
|
1053
|
+
modelPrefixes: string[];
|
|
1054
|
+
name: string;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Per-model rate limiting configuration.
|
|
1059
|
+
*/
|
|
1060
|
+
export class WasmLlmRateLimitConfig {
|
|
1061
|
+
free(): void;
|
|
1062
|
+
[Symbol.dispose](): void;
|
|
1063
|
+
static default(): WasmLlmRateLimitConfig;
|
|
1064
|
+
constructor(rpm?: number | null, tpm?: bigint | null, windowSeconds?: bigint | null);
|
|
1065
|
+
get rpm(): number | undefined;
|
|
1066
|
+
set rpm(value: number | null | undefined);
|
|
1067
|
+
get tpm(): bigint | undefined;
|
|
1068
|
+
set tpm(value: bigint | null | undefined);
|
|
1069
|
+
get windowSeconds(): bigint | undefined;
|
|
1070
|
+
set windowSeconds(value: bigint | null | undefined);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
928
1073
|
/**
|
|
929
1074
|
* A chat message in a conversation.
|
|
930
1075
|
*/
|
|
@@ -1693,8 +1838,9 @@ export class WasmToolMessage {
|
|
|
1693
1838
|
free(): void;
|
|
1694
1839
|
[Symbol.dispose](): void;
|
|
1695
1840
|
static default(): WasmToolMessage;
|
|
1696
|
-
constructor(content?:
|
|
1697
|
-
content: string;
|
|
1841
|
+
constructor(content?: WasmUserContent | null, toolCallId?: string | null, name?: string | null);
|
|
1842
|
+
get content(): string;
|
|
1843
|
+
set content(value: WasmUserContent);
|
|
1698
1844
|
get name(): string | undefined;
|
|
1699
1845
|
set name(value: string | null | undefined);
|
|
1700
1846
|
toolCallId: string;
|
|
@@ -2041,6 +2187,7 @@ export interface InitOutput {
|
|
|
2041
2187
|
readonly __wbg_wasmbatchlistresponse_free: (a: number, b: number) => void;
|
|
2042
2188
|
readonly __wbg_wasmbatchobject_free: (a: number, b: number) => void;
|
|
2043
2189
|
readonly __wbg_wasmbatchrequestcounts_free: (a: number, b: number) => void;
|
|
2190
|
+
readonly __wbg_wasmbedrockconfig_free: (a: number, b: number) => void;
|
|
2044
2191
|
readonly __wbg_wasmcatalogrefreshconfig_free: (a: number, b: number) => void;
|
|
2045
2192
|
readonly __wbg_wasmchatcompletionchunk_free: (a: number, b: number) => void;
|
|
2046
2193
|
readonly __wbg_wasmchatcompletionrequest_free: (a: number, b: number) => void;
|
|
@@ -2074,6 +2221,11 @@ export interface InitOutput {
|
|
|
2074
2221
|
readonly __wbg_wasmimageurl_free: (a: number, b: number) => void;
|
|
2075
2222
|
readonly __wbg_wasmjsonschemaformat_free: (a: number, b: number) => void;
|
|
2076
2223
|
readonly __wbg_wasmliterllmerror_free: (a: number, b: number) => void;
|
|
2224
|
+
readonly __wbg_wasmllmbudgetconfig_free: (a: number, b: number) => void;
|
|
2225
|
+
readonly __wbg_wasmllmcacheconfig_free: (a: number, b: number) => void;
|
|
2226
|
+
readonly __wbg_wasmllmconfig_free: (a: number, b: number) => void;
|
|
2227
|
+
readonly __wbg_wasmllmproviderconfig_free: (a: number, b: number) => void;
|
|
2228
|
+
readonly __wbg_wasmllmratelimitconfig_free: (a: number, b: number) => void;
|
|
2077
2229
|
readonly __wbg_wasmmessage_free: (a: number, b: number) => void;
|
|
2078
2230
|
readonly __wbg_wasmmodelinfo_free: (a: number, b: number) => void;
|
|
2079
2231
|
readonly __wbg_wasmmodelobject_free: (a: number, b: number) => void;
|
|
@@ -2236,6 +2388,18 @@ export interface InitOutput {
|
|
|
2236
2388
|
readonly wasmbatchrequestcounts_set_failed: (a: number, b: bigint) => void;
|
|
2237
2389
|
readonly wasmbatchrequestcounts_set_total: (a: number, b: bigint) => void;
|
|
2238
2390
|
readonly wasmbatchrequestcounts_total: (a: number) => bigint;
|
|
2391
|
+
readonly wasmbedrockconfig_accessKeyId: (a: number) => [number, number];
|
|
2392
|
+
readonly wasmbedrockconfig_crossRegionPrefix: (a: number) => [number, number];
|
|
2393
|
+
readonly wasmbedrockconfig_default: () => number;
|
|
2394
|
+
readonly wasmbedrockconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
2395
|
+
readonly wasmbedrockconfig_region: (a: number) => [number, number];
|
|
2396
|
+
readonly wasmbedrockconfig_secretAccessKey: (a: number) => [number, number];
|
|
2397
|
+
readonly wasmbedrockconfig_sessionToken: (a: number) => [number, number];
|
|
2398
|
+
readonly wasmbedrockconfig_set_accessKeyId: (a: number, b: number, c: number) => void;
|
|
2399
|
+
readonly wasmbedrockconfig_set_crossRegionPrefix: (a: number, b: number, c: number) => void;
|
|
2400
|
+
readonly wasmbedrockconfig_set_region: (a: number, b: number, c: number) => void;
|
|
2401
|
+
readonly wasmbedrockconfig_set_secretAccessKey: (a: number, b: number, c: number) => void;
|
|
2402
|
+
readonly wasmbedrockconfig_set_sessionToken: (a: number, b: number, c: number) => void;
|
|
2239
2403
|
readonly wasmcatalogrefreshconfig_cachePath: (a: number) => [number, number];
|
|
2240
2404
|
readonly wasmcatalogrefreshconfig_default: () => number;
|
|
2241
2405
|
readonly wasmcatalogrefreshconfig_enabled: (a: number) => number;
|
|
@@ -2575,6 +2739,66 @@ export interface InitOutput {
|
|
|
2575
2739
|
readonly wasmliterllmerror_errorType: (a: number) => [number, number];
|
|
2576
2740
|
readonly wasmliterllmerror_isTransient: (a: number) => number;
|
|
2577
2741
|
readonly wasmliterllmerror_statusCode: (a: number) => number;
|
|
2742
|
+
readonly wasmllmbudgetconfig_default: () => number;
|
|
2743
|
+
readonly wasmllmbudgetconfig_enforcement: (a: number) => [number, number];
|
|
2744
|
+
readonly wasmllmbudgetconfig_modelLimits: (a: number) => any;
|
|
2745
|
+
readonly wasmllmbudgetconfig_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2746
|
+
readonly wasmllmbudgetconfig_set_enforcement: (a: number, b: number, c: number) => void;
|
|
2747
|
+
readonly wasmllmbudgetconfig_set_modelLimits: (a: number, b: number) => void;
|
|
2748
|
+
readonly wasmllmcacheconfig_backend: (a: number) => [number, number];
|
|
2749
|
+
readonly wasmllmcacheconfig_backendConfig: (a: number) => any;
|
|
2750
|
+
readonly wasmllmcacheconfig_default: () => number;
|
|
2751
|
+
readonly wasmllmcacheconfig_maxEntries: (a: number) => number;
|
|
2752
|
+
readonly wasmllmcacheconfig_new: (a: number, b: number, c: bigint, d: number, e: number, f: number) => number;
|
|
2753
|
+
readonly wasmllmcacheconfig_set_backend: (a: number, b: number, c: number) => void;
|
|
2754
|
+
readonly wasmllmcacheconfig_set_backendConfig: (a: number, b: number) => void;
|
|
2755
|
+
readonly wasmllmcacheconfig_set_maxEntries: (a: number, b: number) => void;
|
|
2756
|
+
readonly wasmllmconfig_apiKey: (a: number) => [number, number];
|
|
2757
|
+
readonly wasmllmconfig_baseUrl: (a: number) => [number, number];
|
|
2758
|
+
readonly wasmllmconfig_bedrock: (a: number) => number;
|
|
2759
|
+
readonly wasmllmconfig_budget: (a: number) => number;
|
|
2760
|
+
readonly wasmllmconfig_cache: (a: number) => number;
|
|
2761
|
+
readonly wasmllmconfig_cooldownSecs: (a: number) => [number, bigint];
|
|
2762
|
+
readonly wasmllmconfig_costTracking: (a: number) => number;
|
|
2763
|
+
readonly wasmllmconfig_default: () => number;
|
|
2764
|
+
readonly wasmllmconfig_headers: (a: number) => any;
|
|
2765
|
+
readonly wasmllmconfig_healthCheckSecs: (a: number) => [number, bigint];
|
|
2766
|
+
readonly wasmllmconfig_loadEnv: (a: number) => number;
|
|
2767
|
+
readonly wasmllmconfig_maxRetries: (a: number) => number;
|
|
2768
|
+
readonly wasmllmconfig_model: (a: number) => [number, number];
|
|
2769
|
+
readonly wasmllmconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number, l: number, m: bigint, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: bigint, y: number, z: bigint, a1: number) => number;
|
|
2770
|
+
readonly wasmllmconfig_providers: (a: number) => any;
|
|
2771
|
+
readonly wasmllmconfig_rateLimit: (a: number) => number;
|
|
2772
|
+
readonly wasmllmconfig_set_apiKey: (a: number, b: number, c: number) => void;
|
|
2773
|
+
readonly wasmllmconfig_set_baseUrl: (a: number, b: number, c: number) => void;
|
|
2774
|
+
readonly wasmllmconfig_set_bedrock: (a: number, b: number) => void;
|
|
2775
|
+
readonly wasmllmconfig_set_budget: (a: number, b: number) => void;
|
|
2776
|
+
readonly wasmllmconfig_set_cache: (a: number, b: number) => void;
|
|
2777
|
+
readonly wasmllmconfig_set_cooldownSecs: (a: number, b: number, c: bigint) => void;
|
|
2778
|
+
readonly wasmllmconfig_set_costTracking: (a: number, b: number) => void;
|
|
2779
|
+
readonly wasmllmconfig_set_headers: (a: number, b: number) => void;
|
|
2780
|
+
readonly wasmllmconfig_set_healthCheckSecs: (a: number, b: number, c: bigint) => void;
|
|
2781
|
+
readonly wasmllmconfig_set_loadEnv: (a: number, b: number) => void;
|
|
2782
|
+
readonly wasmllmconfig_set_maxRetries: (a: number, b: number) => void;
|
|
2783
|
+
readonly wasmllmconfig_set_model: (a: number, b: number, c: number) => void;
|
|
2784
|
+
readonly wasmllmconfig_set_providers: (a: number, b: number, c: number) => void;
|
|
2785
|
+
readonly wasmllmconfig_set_rateLimit: (a: number, b: number) => void;
|
|
2786
|
+
readonly wasmllmconfig_set_tracing: (a: number, b: number) => void;
|
|
2787
|
+
readonly wasmllmconfig_tracing: (a: number) => number;
|
|
2788
|
+
readonly wasmllmproviderconfig_authHeader: (a: number) => [number, number];
|
|
2789
|
+
readonly wasmllmproviderconfig_baseUrl: (a: number) => [number, number];
|
|
2790
|
+
readonly wasmllmproviderconfig_default: () => number;
|
|
2791
|
+
readonly wasmllmproviderconfig_modelPrefixes: (a: number) => [number, number];
|
|
2792
|
+
readonly wasmllmproviderconfig_name: (a: number) => [number, number];
|
|
2793
|
+
readonly wasmllmproviderconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2794
|
+
readonly wasmllmproviderconfig_set_authHeader: (a: number, b: number, c: number) => void;
|
|
2795
|
+
readonly wasmllmproviderconfig_set_baseUrl: (a: number, b: number, c: number) => void;
|
|
2796
|
+
readonly wasmllmproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
|
|
2797
|
+
readonly wasmllmproviderconfig_set_name: (a: number, b: number, c: number) => void;
|
|
2798
|
+
readonly wasmllmratelimitconfig_default: () => number;
|
|
2799
|
+
readonly wasmllmratelimitconfig_new: (a: number, b: number, c: bigint, d: number, e: bigint) => number;
|
|
2800
|
+
readonly wasmllmratelimitconfig_rpm: (a: number) => number;
|
|
2801
|
+
readonly wasmllmratelimitconfig_set_rpm: (a: number, b: number) => void;
|
|
2578
2802
|
readonly wasmmessage_0: (a: number) => any;
|
|
2579
2803
|
readonly wasmmessage_default: () => number;
|
|
2580
2804
|
readonly wasmmessage_role: (a: number) => [number, number];
|
|
@@ -2905,10 +3129,9 @@ export interface InitOutput {
|
|
|
2905
3129
|
readonly wasmtoolcall_set_function: (a: number, b: number) => void;
|
|
2906
3130
|
readonly wasmtoolcall_set_id: (a: number, b: number, c: number) => void;
|
|
2907
3131
|
readonly wasmtoolmessage_content: (a: number) => [number, number];
|
|
2908
|
-
readonly wasmtoolmessage_default: () => number;
|
|
2909
3132
|
readonly wasmtoolmessage_name: (a: number) => [number, number];
|
|
2910
|
-
readonly wasmtoolmessage_new: (a: number, b: number, c: number, d: number, e: number
|
|
2911
|
-
readonly wasmtoolmessage_set_content: (a: number, b: number
|
|
3133
|
+
readonly wasmtoolmessage_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
3134
|
+
readonly wasmtoolmessage_set_content: (a: number, b: number) => void;
|
|
2912
3135
|
readonly wasmtoolmessage_set_name: (a: number, b: number, c: number) => void;
|
|
2913
3136
|
readonly wasmtoolmessage_set_toolCallId: (a: number, b: number, c: number) => void;
|
|
2914
3137
|
readonly wasmtoolmessage_toolCallId: (a: number) => [number, number];
|
|
@@ -2947,6 +3170,9 @@ export interface InitOutput {
|
|
|
2947
3170
|
readonly wasmocrrequest_includeImageBase64: (a: number) => number;
|
|
2948
3171
|
readonly wasmchatcompletionrequest_set_maxTokens: (a: number, b: number, c: bigint) => void;
|
|
2949
3172
|
readonly wasmcreateresponserequest_set_maxOutputTokens: (a: number, b: number, c: bigint) => void;
|
|
3173
|
+
readonly wasmllmconfig_set_maxTokens: (a: number, b: number, c: bigint) => void;
|
|
3174
|
+
readonly wasmllmconfig_set_temperature: (a: number, b: number, c: number) => void;
|
|
3175
|
+
readonly wasmllmratelimitconfig_set_windowSeconds: (a: number, b: number, c: bigint) => void;
|
|
2950
3176
|
readonly wasmmodelinfo_set_cacheCreationInputTokenCost: (a: number, b: number, c: number) => void;
|
|
2951
3177
|
readonly wasmmodelinfo_set_maxTokens: (a: number, b: number, c: bigint) => void;
|
|
2952
3178
|
readonly wasmmodelinfo_set_outputCostPerAudioToken: (a: number, b: number, c: number) => void;
|
|
@@ -2955,11 +3181,19 @@ export interface InitOutput {
|
|
|
2955
3181
|
readonly wasmmodeltier_set_inputCostPerAudioToken: (a: number, b: number, c: number) => void;
|
|
2956
3182
|
readonly wasmmodeltier_set_outputCostPerAudioToken: (a: number, b: number, c: number) => void;
|
|
2957
3183
|
readonly wasmmodeltier_set_outputCostPerReasoningToken: (a: number, b: number, c: number) => void;
|
|
3184
|
+
readonly wasmtoolmessage_default: () => number;
|
|
2958
3185
|
readonly wasmchatcompletionrequest_maxTokens: (a: number) => [number, bigint];
|
|
2959
3186
|
readonly wasmcreateresponserequest_maxOutputTokens: (a: number) => [number, bigint];
|
|
2960
3187
|
readonly wasmcreateresponserequest_temperature: (a: number) => [number, number];
|
|
2961
3188
|
readonly wasmcreatespeechrequest_speed: (a: number) => [number, number];
|
|
2962
3189
|
readonly wasmcreatetranscriptionrequest_temperature: (a: number) => [number, number];
|
|
3190
|
+
readonly wasmllmbudgetconfig_globalLimit: (a: number) => [number, number];
|
|
3191
|
+
readonly wasmllmcacheconfig_ttlSeconds: (a: number) => [number, bigint];
|
|
3192
|
+
readonly wasmllmconfig_maxTokens: (a: number) => [number, bigint];
|
|
3193
|
+
readonly wasmllmconfig_temperature: (a: number) => [number, number];
|
|
3194
|
+
readonly wasmllmconfig_timeoutSecs: (a: number) => [number, bigint];
|
|
3195
|
+
readonly wasmllmratelimitconfig_tpm: (a: number) => [number, bigint];
|
|
3196
|
+
readonly wasmllmratelimitconfig_windowSeconds: (a: number) => [number, bigint];
|
|
2963
3197
|
readonly wasmmodelinfo_cacheCreationInputTokenCost: (a: number) => [number, number];
|
|
2964
3198
|
readonly wasmmodelinfo_cacheReadInputTokenCost: (a: number) => [number, number];
|
|
2965
3199
|
readonly wasmmodelinfo_maxTokens: (a: number) => [number, bigint];
|
|
@@ -3069,6 +3303,10 @@ export interface InitOutput {
|
|
|
3069
3303
|
readonly wasmcreateresponserequest_set_temperature: (a: number, b: number, c: number) => void;
|
|
3070
3304
|
readonly wasmcreatespeechrequest_set_speed: (a: number, b: number, c: number) => void;
|
|
3071
3305
|
readonly wasmcreatetranscriptionrequest_set_temperature: (a: number, b: number, c: number) => void;
|
|
3306
|
+
readonly wasmllmbudgetconfig_set_globalLimit: (a: number, b: number, c: number) => void;
|
|
3307
|
+
readonly wasmllmcacheconfig_set_ttlSeconds: (a: number, b: number, c: bigint) => void;
|
|
3308
|
+
readonly wasmllmconfig_set_timeoutSecs: (a: number, b: number, c: bigint) => void;
|
|
3309
|
+
readonly wasmllmratelimitconfig_set_tpm: (a: number, b: number, c: bigint) => void;
|
|
3072
3310
|
readonly wasmmodelinfo_set_cacheReadInputTokenCost: (a: number, b: number, c: number) => void;
|
|
3073
3311
|
readonly wasmmodeltier_set_cacheReadInputTokenCost: (a: number, b: number, c: number) => void;
|
|
3074
3312
|
readonly wasmtranscriptionresponse_set_duration: (a: number, b: number, c: number) => void;
|