@roomle/embedding-lib 9.0.0-alpha.9 → 9.1.0-alpha.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/THIRD-PARTY-NOTICES.txt +764 -0
- package/{browser-BxG7yIaK.mjs → browser-D6As4Zxr.mjs} +1 -0
- package/{browser-CW9o-dtT.mjs → browser-zrjtYpL8.mjs} +1 -0
- package/coerce-CqJod_GZ.mjs +8 -0
- package/coerce-CsI42_k0.mjs +6 -0
- package/{comlink-B5lV2OWp.mjs → comlink-Cmiqa2s0.mjs} +1 -0
- package/{comlink-B2Kj_5Ge.mjs → comlink-Dc3LZUoi.mjs} +1 -0
- package/configurator.d.ts +2 -0
- package/configurator.js +29 -0
- package/configurator.min.js +27 -0
- package/dist-5jYYtT4q.mjs +8216 -0
- package/dist-B9yy8ym8.mjs +5512 -0
- package/dist-BV-32IEX.mjs +8128 -0
- package/dist-Bb2L1Zel.mjs +6045 -0
- package/dist-Bo3WzRdf.mjs +6223 -0
- package/dist-Bt1FopV4.mjs +7594 -0
- package/dist-C5fKJXpB.mjs +5598 -0
- package/dist-COgAdYY1.mjs +7554 -0
- package/dist-CXemOs84.mjs +849 -0
- package/dist-CqP0aX0A.mjs +866 -0
- package/dist-CqpDM10w.mjs +1179 -0
- package/dist-D0kh4WfT.mjs +7721 -0
- package/dist-D5HdKuwj.mjs +1221 -0
- package/dist-DJtonrDM.mjs +16906 -0
- package/dist-GTk8ppiK.mjs +8380 -0
- package/dist-XEy6Tk_Y.mjs +17341 -0
- package/docs/md/web/embedding/CHANGELOG.md +285 -4
- package/{drag-ghost-CDFtC1pd.mjs → drag-ghost-D7FnWbO4.mjs} +2 -1
- package/{drag-ghost-BxqPJdhq.mjs → drag-ghost-yXe7c8jA.mjs} +2 -1
- package/{drag-in-ClPpCYyi.mjs → drag-in-BiEe2Lgv.mjs} +15 -20
- package/{drag-in-CV1E-DO6.mjs → drag-in-t7T6Pqwc.mjs} +10 -15
- package/embedding-plugins.js +2 -1
- package/embedding-plugins.min.js +2 -1
- package/experimental-evaluation-BgWFolud.mjs +1074 -0
- package/experimental-evaluation-D56MbtjO.mjs +970 -0
- package/{from-custom-view-Sx6P6iDI.mjs → from-custom-view-CTBapIc6.mjs} +31 -30
- package/{from-custom-view-Q9A-J7qV.mjs → from-custom-view-xbjgsLll.mjs} +32 -31
- package/{from-website-DZJy_l42.mjs → from-website-DUPMQPl6.mjs} +24 -23
- package/{from-website-BmCO2xli.mjs → from-website-JwG7Ic_U.mjs} +24 -23
- package/hi.js +249 -150
- package/hi.min.js +211 -134
- package/mcp-tools-CJ7j_FI2.mjs +151 -0
- package/mcp-tools-D__M74CZ.mjs +153 -0
- package/package.json +12 -1
- package/packages/embedding-lib/src/configurator-agent/configurator-mcp-tools.d.ts +4 -0
- package/packages/embedding-lib/src/configurator-agent/configurator-planning-assistant.d.ts +13 -0
- package/packages/embedding-lib/src/configurator.d.ts +3 -0
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp-tools.d.ts +4 -61
- package/packages/embedding-lib/src/homag-intelligence/hi-planning-assistant.d.ts +9 -32
- package/packages/embedding-lib/src/homag-intelligence/hi-planning-usage.d.ts +54 -0
- package/packages/embedding-lib/src/planning-assistant/chat-model.d.ts +1 -0
- package/packages/embedding-lib/src/planning-assistant/mcp-tools.d.ts +2 -0
- package/packages/web-sdk/packages/assistant.d.ts +3 -0
- package/packages/web-sdk/packages/common-core/src/agent-tools/mcp-tool-types.d.ts +30 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant/chat-model.d.ts +8 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant/mcp-tools.d.ts +52 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant/types.d.ts +35 -0
- package/roomle-embedding-lib.js +43 -45
- package/roomle-embedding-lib.min.js +39 -41
- package/sbom.cdx.json +405 -0
- package/{utils-wJ80awOA.mjs → utils-CAAGdgk8.mjs} +1 -0
- package/{utils-DxJ3PcKe.mjs → utils-WeolMfC5.mjs} +1 -0
|
@@ -0,0 +1,866 @@
|
|
|
1
|
+
|
|
2
|
+
import { $t as e, Bt as t, D as n, Dn as r, E as i, H as a, Ht as o, Jt as s, K as c, O as l, Rt as u, S as d, St as f, Tt as p, Vt as m, Wt as h, X as g, Yt as _, Zt as v, _ as y, _t as b, an as x, bn as S, bt as C, dn as w, dt as T, f as E, ft as ee, h as D, in as O, jn as k, jt as A, kn as j, ln as M, o as N, ot as P, q as F, qt as te, sn as ne, st as re, tn as I, w as ie, yt as ae, zt as L } from "./dist-BV-32IEX.mjs";
|
|
3
|
+
//#region node_modules/@ai-sdk/mistral/dist/index.js
|
|
4
|
+
var R = x({
|
|
5
|
+
messages: s(e()).nullish(),
|
|
6
|
+
cached_tokens: O().nullish(),
|
|
7
|
+
audio_tokens: O().nullish()
|
|
8
|
+
}).catchall(e()), z = x({ reasoning_tokens: O().nullish() }).catchall(e()), B = x({
|
|
9
|
+
prompt_tokens: O(),
|
|
10
|
+
completion_tokens: O(),
|
|
11
|
+
total_tokens: O(),
|
|
12
|
+
prompt_audio_seconds: O().nullish(),
|
|
13
|
+
request_count: O().nullish(),
|
|
14
|
+
service_tier: M().nullish(),
|
|
15
|
+
num_cached_tokens: O().nullish(),
|
|
16
|
+
prompt_tokens_details: R.nullish(),
|
|
17
|
+
prompt_token_details: R.nullish(),
|
|
18
|
+
completion_tokens_details: z.nullish()
|
|
19
|
+
}).catchall(e());
|
|
20
|
+
function V(e) {
|
|
21
|
+
if (e == null) return l();
|
|
22
|
+
let t = e.prompt_tokens, n = e.completion_tokens, r = e.num_cached_tokens ?? e.prompt_tokens_details?.cached_tokens ?? e.prompt_token_details?.cached_tokens ?? 0;
|
|
23
|
+
return {
|
|
24
|
+
inputTokens: {
|
|
25
|
+
total: t,
|
|
26
|
+
noCache: t - r,
|
|
27
|
+
cacheRead: r || void 0,
|
|
28
|
+
cacheWrite: void 0
|
|
29
|
+
},
|
|
30
|
+
outputTokens: {
|
|
31
|
+
total: n,
|
|
32
|
+
text: n,
|
|
33
|
+
reasoning: void 0
|
|
34
|
+
},
|
|
35
|
+
raw: e
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function H({ part: e }) {
|
|
39
|
+
if (e.data.type === "url") return e.data.url.toString();
|
|
40
|
+
if (e.data.type === "data") return `data:${p({ part: e })};base64,${y(e.data.data)}`;
|
|
41
|
+
throw new k({ functionality: `file part data type ${e.data.type}` });
|
|
42
|
+
}
|
|
43
|
+
function U(e) {
|
|
44
|
+
let t = [];
|
|
45
|
+
for (let n = 0; n < e.length; n++) {
|
|
46
|
+
let { role: r, content: i } = e[n], a = n === e.length - 1;
|
|
47
|
+
switch (r) {
|
|
48
|
+
case "system":
|
|
49
|
+
t.push({
|
|
50
|
+
role: "system",
|
|
51
|
+
content: i
|
|
52
|
+
});
|
|
53
|
+
break;
|
|
54
|
+
case "user":
|
|
55
|
+
t.push({
|
|
56
|
+
role: "user",
|
|
57
|
+
content: i.map((e) => {
|
|
58
|
+
switch (e.type) {
|
|
59
|
+
case "text": return {
|
|
60
|
+
type: "text",
|
|
61
|
+
text: e.text
|
|
62
|
+
};
|
|
63
|
+
case "file": switch (e.data.type) {
|
|
64
|
+
case "reference": throw new k({ functionality: "file parts with provider references" });
|
|
65
|
+
case "text": throw new k({ functionality: "text file parts" });
|
|
66
|
+
case "url":
|
|
67
|
+
case "data":
|
|
68
|
+
if (c(e.mediaType) === "image") return {
|
|
69
|
+
type: "image_url",
|
|
70
|
+
image_url: H({ part: e })
|
|
71
|
+
};
|
|
72
|
+
if (e.data.type === "data") {
|
|
73
|
+
if (p({ part: e }) !== "application/pdf") throw new k({ functionality: "Only images and PDF file parts are supported" });
|
|
74
|
+
} else if (e.mediaType !== "application/pdf") throw new k({ functionality: "Only images and PDF file parts are supported" });
|
|
75
|
+
return {
|
|
76
|
+
type: "document_url",
|
|
77
|
+
document_url: H({ part: e })
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
break;
|
|
84
|
+
case "assistant": {
|
|
85
|
+
let e = "", n = !1, r = [], o = [];
|
|
86
|
+
for (let t of i) switch (t.type) {
|
|
87
|
+
case "text":
|
|
88
|
+
e += t.text, r.push({
|
|
89
|
+
type: "text",
|
|
90
|
+
text: t.text
|
|
91
|
+
});
|
|
92
|
+
break;
|
|
93
|
+
case "tool-call":
|
|
94
|
+
o.push({
|
|
95
|
+
id: t.toolCallId,
|
|
96
|
+
type: "function",
|
|
97
|
+
function: {
|
|
98
|
+
name: t.toolName,
|
|
99
|
+
arguments: JSON.stringify(t.input)
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
break;
|
|
103
|
+
case "reasoning":
|
|
104
|
+
n = !0, r.push({
|
|
105
|
+
type: "thinking",
|
|
106
|
+
thinking: [{
|
|
107
|
+
type: "text",
|
|
108
|
+
text: t.text
|
|
109
|
+
}],
|
|
110
|
+
closed: !0
|
|
111
|
+
});
|
|
112
|
+
break;
|
|
113
|
+
default: throw Error(`Unsupported content type in assistant message: ${t.type}`);
|
|
114
|
+
}
|
|
115
|
+
t.push({
|
|
116
|
+
role: "assistant",
|
|
117
|
+
content: n ? r : e,
|
|
118
|
+
prefix: a ? !0 : void 0,
|
|
119
|
+
tool_calls: o.length > 0 ? o : void 0
|
|
120
|
+
});
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
case "tool":
|
|
124
|
+
for (let e of i) {
|
|
125
|
+
if (e.type === "tool-approval-response") continue;
|
|
126
|
+
let n = e.output, r;
|
|
127
|
+
switch (n.type) {
|
|
128
|
+
case "text":
|
|
129
|
+
case "error-text":
|
|
130
|
+
r = n.value;
|
|
131
|
+
break;
|
|
132
|
+
case "execution-denied":
|
|
133
|
+
r = n.reason ?? "Tool call execution denied.";
|
|
134
|
+
break;
|
|
135
|
+
case "content":
|
|
136
|
+
case "json":
|
|
137
|
+
case "error-json":
|
|
138
|
+
r = JSON.stringify(n.value);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
t.push({
|
|
142
|
+
role: "tool",
|
|
143
|
+
name: e.toolName,
|
|
144
|
+
tool_call_id: e.toolCallId,
|
|
145
|
+
content: r
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
default: throw Error(`Unsupported role: ${r}`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return t;
|
|
153
|
+
}
|
|
154
|
+
function W(e) {
|
|
155
|
+
switch (e) {
|
|
156
|
+
case "stop": return "stop";
|
|
157
|
+
case "length":
|
|
158
|
+
case "model_length": return "length";
|
|
159
|
+
case "tool_calls": return "tool-calls";
|
|
160
|
+
default: return "other";
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
var G = x({
|
|
164
|
+
safePrompt: _().optional(),
|
|
165
|
+
documentImageLimit: O().optional(),
|
|
166
|
+
documentPageLimit: O().optional(),
|
|
167
|
+
structuredOutputs: _().optional(),
|
|
168
|
+
strictJsonSchema: _().optional(),
|
|
169
|
+
parallelToolCalls: _().optional(),
|
|
170
|
+
promptCacheKey: M().optional(),
|
|
171
|
+
reasoningEffort: h(["high", "none"]).optional()
|
|
172
|
+
}), K = ie({
|
|
173
|
+
errorSchema: x({
|
|
174
|
+
object: I("error"),
|
|
175
|
+
message: M(),
|
|
176
|
+
type: M(),
|
|
177
|
+
param: M().nullable(),
|
|
178
|
+
code: M().nullable()
|
|
179
|
+
}),
|
|
180
|
+
errorToMessage: (e) => e.message
|
|
181
|
+
});
|
|
182
|
+
function q({ tools: e, toolChoice: t }) {
|
|
183
|
+
e = e?.length ? e : void 0;
|
|
184
|
+
let n = [];
|
|
185
|
+
if (e == null) return {
|
|
186
|
+
tools: void 0,
|
|
187
|
+
toolChoice: void 0,
|
|
188
|
+
toolWarnings: n
|
|
189
|
+
};
|
|
190
|
+
let r = [];
|
|
191
|
+
for (let t of e) t.type === "provider" ? n.push({
|
|
192
|
+
type: "unsupported",
|
|
193
|
+
feature: `provider-defined tool ${t.id}`
|
|
194
|
+
}) : r.push({
|
|
195
|
+
type: "function",
|
|
196
|
+
function: {
|
|
197
|
+
name: t.name,
|
|
198
|
+
description: t.description,
|
|
199
|
+
parameters: t.inputSchema,
|
|
200
|
+
...t.strict == null ? {} : { strict: t.strict }
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
if (t == null) return {
|
|
204
|
+
tools: r,
|
|
205
|
+
toolChoice: void 0,
|
|
206
|
+
toolWarnings: n
|
|
207
|
+
};
|
|
208
|
+
let i = t.type;
|
|
209
|
+
switch (i) {
|
|
210
|
+
case "auto":
|
|
211
|
+
case "none": return {
|
|
212
|
+
tools: r,
|
|
213
|
+
toolChoice: i,
|
|
214
|
+
toolWarnings: n
|
|
215
|
+
};
|
|
216
|
+
case "required": return {
|
|
217
|
+
tools: r,
|
|
218
|
+
toolChoice: "any",
|
|
219
|
+
toolWarnings: n
|
|
220
|
+
};
|
|
221
|
+
case "tool": return {
|
|
222
|
+
tools: r.filter((e) => e.function.name === t.toolName),
|
|
223
|
+
toolChoice: "any",
|
|
224
|
+
toolWarnings: n
|
|
225
|
+
};
|
|
226
|
+
default: throw new k({ functionality: `tool choice type: ${i}` });
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
var oe = /* @__PURE__ */ new Set([
|
|
230
|
+
"glm-5-2",
|
|
231
|
+
"labs-leanstral-1-5",
|
|
232
|
+
"labs-leanstral-1-5-1",
|
|
233
|
+
"magistral-medium-latest",
|
|
234
|
+
"magistral-small-latest",
|
|
235
|
+
"mistral-medium",
|
|
236
|
+
"mistral-medium-2604",
|
|
237
|
+
"mistral-medium-3",
|
|
238
|
+
"mistral-medium-3-5",
|
|
239
|
+
"mistral-medium-3.5",
|
|
240
|
+
"mistral-medium-latest",
|
|
241
|
+
"mistral-small-2603",
|
|
242
|
+
"mistral-small-latest",
|
|
243
|
+
"mistral-vibe-cli-fast",
|
|
244
|
+
"mistral-vibe-cli-latest",
|
|
245
|
+
"mistral-vibe-cli-with-tools",
|
|
246
|
+
"zai-glm-5-2"
|
|
247
|
+
]), se = class e {
|
|
248
|
+
constructor(e, t) {
|
|
249
|
+
this.specificationVersion = "v4", this.supportedUrls = { "application/pdf": [/^https:\/\/.*$/] }, this.modelId = e, this.config = t, this.generateId = t.generateId ?? a;
|
|
250
|
+
}
|
|
251
|
+
static [o](e) {
|
|
252
|
+
return A({
|
|
253
|
+
modelId: e.modelId,
|
|
254
|
+
config: e.config
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
static [m](t) {
|
|
258
|
+
return new e(t.modelId, t.config);
|
|
259
|
+
}
|
|
260
|
+
get provider() {
|
|
261
|
+
return this.config.provider;
|
|
262
|
+
}
|
|
263
|
+
async getArgs({ prompt: e, maxOutputTokens: t, temperature: n, topP: r, topK: i, frequencyPenalty: a, presencePenalty: o, reasoning: s, stopSequences: c, responseFormat: l, seed: u, providerOptions: d, tools: f, toolChoice: p }) {
|
|
264
|
+
let m = [], h = await b({
|
|
265
|
+
provider: "mistral",
|
|
266
|
+
providerOptions: d,
|
|
267
|
+
schema: G
|
|
268
|
+
}) ?? {};
|
|
269
|
+
i != null && m.push({
|
|
270
|
+
type: "unsupported",
|
|
271
|
+
feature: "topK"
|
|
272
|
+
});
|
|
273
|
+
let _ = oe.has(this.modelId), v;
|
|
274
|
+
_ ? v = h.reasoningEffort ?? (g(s) ? s === "none" ? "none" : T({
|
|
275
|
+
reasoning: s,
|
|
276
|
+
effortMap: {
|
|
277
|
+
minimal: "high",
|
|
278
|
+
low: "high",
|
|
279
|
+
medium: "high",
|
|
280
|
+
high: "high",
|
|
281
|
+
xhigh: "high"
|
|
282
|
+
},
|
|
283
|
+
warnings: m
|
|
284
|
+
}) : void 0) : g(s) && m.push({
|
|
285
|
+
type: "unsupported",
|
|
286
|
+
feature: "reasoning",
|
|
287
|
+
details: "This model does not support reasoning configuration."
|
|
288
|
+
});
|
|
289
|
+
let y = h.structuredOutputs ?? !0, x = h.strictJsonSchema ?? !1;
|
|
290
|
+
l?.type === "json" && !l?.schema && (e = F({
|
|
291
|
+
messages: e,
|
|
292
|
+
schema: l.schema
|
|
293
|
+
}));
|
|
294
|
+
let S = {
|
|
295
|
+
model: this.modelId,
|
|
296
|
+
safe_prompt: h.safePrompt,
|
|
297
|
+
max_tokens: t,
|
|
298
|
+
temperature: n,
|
|
299
|
+
top_p: r,
|
|
300
|
+
...a == null ? {} : { frequency_penalty: a },
|
|
301
|
+
...o == null ? {} : { presence_penalty: o },
|
|
302
|
+
stop: c,
|
|
303
|
+
random_seed: u,
|
|
304
|
+
reasoning_effort: v,
|
|
305
|
+
response_format: l?.type === "json" ? y && l?.schema != null ? {
|
|
306
|
+
type: "json_schema",
|
|
307
|
+
json_schema: {
|
|
308
|
+
schema: l.schema,
|
|
309
|
+
strict: x,
|
|
310
|
+
name: l.name ?? "response",
|
|
311
|
+
description: l.description
|
|
312
|
+
}
|
|
313
|
+
} : { type: "json_object" } : void 0,
|
|
314
|
+
document_image_limit: h.documentImageLimit,
|
|
315
|
+
document_page_limit: h.documentPageLimit,
|
|
316
|
+
...h.promptCacheKey === void 0 ? {} : { prompt_cache_key: h.promptCacheKey },
|
|
317
|
+
messages: U(e)
|
|
318
|
+
}, { tools: C, toolChoice: w, toolWarnings: E } = q({
|
|
319
|
+
tools: f,
|
|
320
|
+
toolChoice: p
|
|
321
|
+
});
|
|
322
|
+
return {
|
|
323
|
+
args: {
|
|
324
|
+
...S,
|
|
325
|
+
tools: C,
|
|
326
|
+
tool_choice: w,
|
|
327
|
+
...C != null && h.parallelToolCalls !== void 0 ? { parallel_tool_calls: h.parallelToolCalls } : {}
|
|
328
|
+
},
|
|
329
|
+
warnings: [...m, ...E]
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
async doGenerate(e) {
|
|
333
|
+
let { args: t, warnings: r } = await this.getArgs(e), { responseHeaders: a, value: o, rawValue: s } = await C({
|
|
334
|
+
url: `${this.config.baseURL}/chat/completions`,
|
|
335
|
+
headers: E(this.config.headers?.(), e.headers),
|
|
336
|
+
body: t,
|
|
337
|
+
failedResponseHandler: K,
|
|
338
|
+
successfulResponseHandler: i(ce),
|
|
339
|
+
abortSignal: e.abortSignal,
|
|
340
|
+
fetch: this.config.fetch
|
|
341
|
+
}), c = o.choices[0], l = [];
|
|
342
|
+
if (c.message.content != null && Array.isArray(c.message.content)) for (let e of c.message.content) if (e.type === "thinking") {
|
|
343
|
+
let t = J(e.thinking);
|
|
344
|
+
t.length > 0 && l.push({
|
|
345
|
+
type: "reasoning",
|
|
346
|
+
text: t
|
|
347
|
+
});
|
|
348
|
+
} else e.type === "text" && e.text.length > 0 && l.push({
|
|
349
|
+
type: "text",
|
|
350
|
+
text: e.text
|
|
351
|
+
});
|
|
352
|
+
else {
|
|
353
|
+
let e = Y(c.message.content);
|
|
354
|
+
e != null && e.length > 0 && l.push({
|
|
355
|
+
type: "text",
|
|
356
|
+
text: e
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
if (c.message.tool_calls != null) for (let e of c.message.tool_calls) l.push({
|
|
360
|
+
type: "tool-call",
|
|
361
|
+
toolCallId: e.id,
|
|
362
|
+
toolName: e.function.name,
|
|
363
|
+
input: e.function.arguments
|
|
364
|
+
});
|
|
365
|
+
return {
|
|
366
|
+
content: l,
|
|
367
|
+
finishReason: {
|
|
368
|
+
unified: W(c.finish_reason),
|
|
369
|
+
raw: c.finish_reason ?? void 0
|
|
370
|
+
},
|
|
371
|
+
usage: V(o.usage),
|
|
372
|
+
request: { body: t },
|
|
373
|
+
response: {
|
|
374
|
+
...n(o),
|
|
375
|
+
headers: a,
|
|
376
|
+
body: s
|
|
377
|
+
},
|
|
378
|
+
warnings: r
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
async doStream(e) {
|
|
382
|
+
let { args: t, warnings: r } = await this.getArgs(e), i = {
|
|
383
|
+
...t,
|
|
384
|
+
stream: !0
|
|
385
|
+
}, { responseHeaders: a, value: o } = await C({
|
|
386
|
+
url: `${this.config.baseURL}/chat/completions`,
|
|
387
|
+
headers: E(this.config.headers?.(), e.headers),
|
|
388
|
+
body: i,
|
|
389
|
+
failedResponseHandler: K,
|
|
390
|
+
successfulResponseHandler: d(le),
|
|
391
|
+
abortSignal: e.abortSignal,
|
|
392
|
+
fetch: this.config.fetch
|
|
393
|
+
}), s = {
|
|
394
|
+
unified: "other",
|
|
395
|
+
raw: void 0
|
|
396
|
+
}, c, l = !0, u = !1, f = null, p, m = this.generateId;
|
|
397
|
+
return {
|
|
398
|
+
stream: o.pipeThrough(new TransformStream({
|
|
399
|
+
start(e) {
|
|
400
|
+
p = new N(e, { generateId: m }), e.enqueue({
|
|
401
|
+
type: "stream-start",
|
|
402
|
+
warnings: r
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
transform(t, r) {
|
|
406
|
+
if (e.includeRawChunks && r.enqueue({
|
|
407
|
+
type: "raw",
|
|
408
|
+
rawValue: t.rawValue
|
|
409
|
+
}), !t.success) {
|
|
410
|
+
r.enqueue({
|
|
411
|
+
type: "error",
|
|
412
|
+
error: t.error
|
|
413
|
+
});
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
let i = t.value;
|
|
417
|
+
l && (l = !1, r.enqueue({
|
|
418
|
+
type: "response-metadata",
|
|
419
|
+
...n(i)
|
|
420
|
+
})), i.usage != null && (c = i.usage);
|
|
421
|
+
let a = i.choices[0], o = a.delta, d = Y(o.content);
|
|
422
|
+
if (o.content != null && Array.isArray(o.content)) {
|
|
423
|
+
for (let e of o.content) if (e.type === "thinking") {
|
|
424
|
+
let t = J(e.thinking);
|
|
425
|
+
t.length > 0 && (f ?? (u &&= (r.enqueue({
|
|
426
|
+
type: "text-end",
|
|
427
|
+
id: "0"
|
|
428
|
+
}), !1), f = m(), r.enqueue({
|
|
429
|
+
type: "reasoning-start",
|
|
430
|
+
id: f
|
|
431
|
+
})), r.enqueue({
|
|
432
|
+
type: "reasoning-delta",
|
|
433
|
+
id: f,
|
|
434
|
+
delta: t
|
|
435
|
+
}));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (d != null && d.length > 0 && (u ||= (f != null && (r.enqueue({
|
|
439
|
+
type: "reasoning-end",
|
|
440
|
+
id: f
|
|
441
|
+
}), f = null), r.enqueue({
|
|
442
|
+
type: "text-start",
|
|
443
|
+
id: "0"
|
|
444
|
+
}), !0), r.enqueue({
|
|
445
|
+
type: "text-delta",
|
|
446
|
+
id: "0",
|
|
447
|
+
delta: d
|
|
448
|
+
})), o?.tool_calls != null) for (let e of o.tool_calls) p.processDelta(e);
|
|
449
|
+
a.finish_reason != null && (s = {
|
|
450
|
+
unified: W(a.finish_reason),
|
|
451
|
+
raw: a.finish_reason
|
|
452
|
+
});
|
|
453
|
+
},
|
|
454
|
+
flush(e) {
|
|
455
|
+
f != null && e.enqueue({
|
|
456
|
+
type: "reasoning-end",
|
|
457
|
+
id: f
|
|
458
|
+
}), u && e.enqueue({
|
|
459
|
+
type: "text-end",
|
|
460
|
+
id: "0"
|
|
461
|
+
}), p.flush(), e.enqueue({
|
|
462
|
+
type: "finish",
|
|
463
|
+
finishReason: s,
|
|
464
|
+
usage: V(c)
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
})),
|
|
468
|
+
request: { body: i },
|
|
469
|
+
response: { headers: a }
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
function J(e) {
|
|
474
|
+
return e.filter((e) => e.type === "text").map((e) => e.text).join("");
|
|
475
|
+
}
|
|
476
|
+
function Y(e) {
|
|
477
|
+
if (typeof e == "string") return e;
|
|
478
|
+
if (e == null) return;
|
|
479
|
+
let t = [];
|
|
480
|
+
for (let n of e) {
|
|
481
|
+
let { type: e } = n;
|
|
482
|
+
switch (e) {
|
|
483
|
+
case "text":
|
|
484
|
+
t.push(n.text);
|
|
485
|
+
break;
|
|
486
|
+
case "thinking":
|
|
487
|
+
case "image_url":
|
|
488
|
+
case "reference": break;
|
|
489
|
+
default: throw Error(`Unsupported type: ${e}`);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return t.length ? t.join("") : void 0;
|
|
493
|
+
}
|
|
494
|
+
var X = w([M(), s(v("type", [
|
|
495
|
+
x({
|
|
496
|
+
type: I("text"),
|
|
497
|
+
text: M()
|
|
498
|
+
}),
|
|
499
|
+
x({
|
|
500
|
+
type: I("image_url"),
|
|
501
|
+
image_url: w([M(), x({
|
|
502
|
+
url: M(),
|
|
503
|
+
detail: M().nullable()
|
|
504
|
+
})])
|
|
505
|
+
}),
|
|
506
|
+
x({
|
|
507
|
+
type: I("reference"),
|
|
508
|
+
reference_ids: s(w([M(), O()]))
|
|
509
|
+
}),
|
|
510
|
+
x({
|
|
511
|
+
type: I("thinking"),
|
|
512
|
+
thinking: s(x({
|
|
513
|
+
type: I("text"),
|
|
514
|
+
text: M()
|
|
515
|
+
}))
|
|
516
|
+
})
|
|
517
|
+
]))]).nullish(), ce = x({
|
|
518
|
+
id: M().nullish(),
|
|
519
|
+
created: O().nullish(),
|
|
520
|
+
model: M().nullish(),
|
|
521
|
+
choices: s(x({
|
|
522
|
+
message: x({
|
|
523
|
+
role: I("assistant"),
|
|
524
|
+
content: X,
|
|
525
|
+
tool_calls: s(x({
|
|
526
|
+
id: M(),
|
|
527
|
+
function: x({
|
|
528
|
+
name: M(),
|
|
529
|
+
arguments: M()
|
|
530
|
+
})
|
|
531
|
+
})).nullish()
|
|
532
|
+
}),
|
|
533
|
+
index: O(),
|
|
534
|
+
finish_reason: M().nullish()
|
|
535
|
+
})),
|
|
536
|
+
object: I("chat.completion"),
|
|
537
|
+
usage: B
|
|
538
|
+
}), le = x({
|
|
539
|
+
id: M().nullish(),
|
|
540
|
+
created: O().nullish(),
|
|
541
|
+
model: M().nullish(),
|
|
542
|
+
choices: s(x({
|
|
543
|
+
delta: x({
|
|
544
|
+
role: h(["assistant"]).optional(),
|
|
545
|
+
content: X,
|
|
546
|
+
tool_calls: s(x({
|
|
547
|
+
index: O().nullish(),
|
|
548
|
+
id: M().nullish(),
|
|
549
|
+
function: x({
|
|
550
|
+
name: M().nullish(),
|
|
551
|
+
arguments: M().nullish()
|
|
552
|
+
})
|
|
553
|
+
})).nullish()
|
|
554
|
+
}),
|
|
555
|
+
finish_reason: M().nullish(),
|
|
556
|
+
index: O()
|
|
557
|
+
})),
|
|
558
|
+
usage: B.nullish()
|
|
559
|
+
}), ue = x({
|
|
560
|
+
metadata: ne(M(), te()).optional(),
|
|
561
|
+
outputDimension: O().int().positive().optional(),
|
|
562
|
+
outputDtype: h([
|
|
563
|
+
"float",
|
|
564
|
+
"int8",
|
|
565
|
+
"uint8",
|
|
566
|
+
"binary",
|
|
567
|
+
"ubinary"
|
|
568
|
+
]).optional()
|
|
569
|
+
}), de = class e {
|
|
570
|
+
constructor(e, t) {
|
|
571
|
+
this.specificationVersion = "v4", this.maxEmbeddingsPerCall = 32, this.supportsParallelCalls = !1, this.modelId = e, this.config = t;
|
|
572
|
+
}
|
|
573
|
+
get provider() {
|
|
574
|
+
return this.config.provider;
|
|
575
|
+
}
|
|
576
|
+
static [o](e) {
|
|
577
|
+
return A({
|
|
578
|
+
modelId: e.modelId,
|
|
579
|
+
config: e.config
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
static [m](t) {
|
|
583
|
+
return new e(t.modelId, t.config);
|
|
584
|
+
}
|
|
585
|
+
async doEmbed({ values: e, abortSignal: t, headers: n, providerOptions: r }) {
|
|
586
|
+
if (e.length > this.maxEmbeddingsPerCall) throw new j({
|
|
587
|
+
provider: this.provider,
|
|
588
|
+
modelId: this.modelId,
|
|
589
|
+
maxEmbeddingsPerCall: this.maxEmbeddingsPerCall,
|
|
590
|
+
values: e
|
|
591
|
+
});
|
|
592
|
+
let a = await b({
|
|
593
|
+
provider: "mistral",
|
|
594
|
+
providerOptions: r,
|
|
595
|
+
schema: ue
|
|
596
|
+
}) ?? {}, { responseHeaders: o, value: s, rawValue: c } = await C({
|
|
597
|
+
url: `${this.config.baseURL}/embeddings`,
|
|
598
|
+
headers: E(this.config.headers?.(), n),
|
|
599
|
+
body: {
|
|
600
|
+
model: this.modelId,
|
|
601
|
+
input: e,
|
|
602
|
+
metadata: a.metadata,
|
|
603
|
+
output_dimension: a.outputDimension,
|
|
604
|
+
output_dtype: a.outputDtype,
|
|
605
|
+
encoding_format: "float"
|
|
606
|
+
},
|
|
607
|
+
failedResponseHandler: K,
|
|
608
|
+
successfulResponseHandler: i(fe),
|
|
609
|
+
abortSignal: t,
|
|
610
|
+
fetch: this.config.fetch
|
|
611
|
+
});
|
|
612
|
+
return {
|
|
613
|
+
warnings: [],
|
|
614
|
+
embeddings: s.data.map((e) => e.embedding),
|
|
615
|
+
usage: s.usage ? { tokens: s.usage.prompt_tokens } : void 0,
|
|
616
|
+
response: {
|
|
617
|
+
headers: o,
|
|
618
|
+
body: c
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
}, fe = x({
|
|
623
|
+
data: s(x({ embedding: s(O()) })),
|
|
624
|
+
usage: x({ prompt_tokens: O() }).nullish()
|
|
625
|
+
}), pe = x({ refAudio: M().min(1).optional() }), me = class e {
|
|
626
|
+
constructor(e, t) {
|
|
627
|
+
this.modelId = e, this.config = t, this.specificationVersion = "v4";
|
|
628
|
+
}
|
|
629
|
+
static [o](e) {
|
|
630
|
+
return A({
|
|
631
|
+
modelId: e.modelId,
|
|
632
|
+
config: e.config
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
static [m](t) {
|
|
636
|
+
return new e(t.modelId, t.config);
|
|
637
|
+
}
|
|
638
|
+
get provider() {
|
|
639
|
+
return this.config.provider;
|
|
640
|
+
}
|
|
641
|
+
async getArgs({ text: e, voice: t, outputFormat: n = "mp3", instructions: r, speed: i, language: a, providerOptions: o }) {
|
|
642
|
+
let s = [], c = await b({
|
|
643
|
+
provider: "mistral",
|
|
644
|
+
providerOptions: o,
|
|
645
|
+
schema: pe
|
|
646
|
+
}), l = "mp3";
|
|
647
|
+
[
|
|
648
|
+
"pcm",
|
|
649
|
+
"wav",
|
|
650
|
+
"mp3",
|
|
651
|
+
"flac",
|
|
652
|
+
"opus"
|
|
653
|
+
].includes(n) ? l = n : s.push({
|
|
654
|
+
type: "unsupported",
|
|
655
|
+
feature: "outputFormat",
|
|
656
|
+
details: `Unsupported output format: ${n}. Using mp3 instead.`
|
|
657
|
+
}), r != null && s.push({
|
|
658
|
+
type: "unsupported",
|
|
659
|
+
feature: "instructions",
|
|
660
|
+
details: "Mistral speech models do not support the `instructions` option. Use a reference audio clip to guide delivery."
|
|
661
|
+
}), i != null && s.push({
|
|
662
|
+
type: "unsupported",
|
|
663
|
+
feature: "speed",
|
|
664
|
+
details: "Mistral speech models do not support the `speed` option. It was ignored."
|
|
665
|
+
}), a != null && s.push({
|
|
666
|
+
type: "unsupported",
|
|
667
|
+
feature: "language",
|
|
668
|
+
details: "Mistral speech models do not support the `language` option. Language is inferred from the input text and voice."
|
|
669
|
+
});
|
|
670
|
+
let u = c?.refAudio, d = {
|
|
671
|
+
model: this.modelId,
|
|
672
|
+
input: e,
|
|
673
|
+
voice_id: u == null ? t : void 0,
|
|
674
|
+
ref_audio: u,
|
|
675
|
+
response_format: l,
|
|
676
|
+
stream: !1
|
|
677
|
+
};
|
|
678
|
+
return {
|
|
679
|
+
requestBody: d,
|
|
680
|
+
requestBodyValues: {
|
|
681
|
+
...d,
|
|
682
|
+
ref_audio: u == null ? void 0 : "[redacted]"
|
|
683
|
+
},
|
|
684
|
+
warnings: s
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
async doGenerate(e) {
|
|
688
|
+
let t = this.config._internal?.currentDate?.() ?? /* @__PURE__ */ new Date(), { requestBody: n, requestBodyValues: r, warnings: a } = await this.getArgs(e), { value: o, responseHeaders: s, rawValue: c } = await f({
|
|
689
|
+
url: `${this.config.baseURL}/audio/speech`,
|
|
690
|
+
headers: E({ "Content-Type": "application/json" }, this.config.headers?.(), e.headers),
|
|
691
|
+
body: {
|
|
692
|
+
content: JSON.stringify(n),
|
|
693
|
+
values: r
|
|
694
|
+
},
|
|
695
|
+
failedResponseHandler: K,
|
|
696
|
+
successfulResponseHandler: i(he),
|
|
697
|
+
abortSignal: e.abortSignal,
|
|
698
|
+
fetch: this.config.fetch
|
|
699
|
+
});
|
|
700
|
+
return {
|
|
701
|
+
audio: o.audio_data,
|
|
702
|
+
warnings: a,
|
|
703
|
+
request: { body: JSON.stringify(r) },
|
|
704
|
+
response: {
|
|
705
|
+
timestamp: t,
|
|
706
|
+
modelId: this.modelId,
|
|
707
|
+
headers: s,
|
|
708
|
+
body: c
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
}, he = x({ audio_data: M() }), Z = P(() => t(x({
|
|
713
|
+
language: M().min(1).optional(),
|
|
714
|
+
temperature: O().optional(),
|
|
715
|
+
timestampGranularities: s(h(["segment", "word"])).min(1).optional(),
|
|
716
|
+
diarize: _().optional(),
|
|
717
|
+
contextBias: s(M().min(1).regex(/^[^\s,]+$/, "Context bias items must not contain commas or whitespace.")).max(100).optional()
|
|
718
|
+
}))), ge = class e {
|
|
719
|
+
constructor(e, t) {
|
|
720
|
+
this.modelId = e, this.config = t, this.specificationVersion = "v4";
|
|
721
|
+
}
|
|
722
|
+
static [o](e) {
|
|
723
|
+
return A({
|
|
724
|
+
modelId: e.modelId,
|
|
725
|
+
config: e.config
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
static [m](t) {
|
|
729
|
+
return new e(t.modelId, t.config);
|
|
730
|
+
}
|
|
731
|
+
get provider() {
|
|
732
|
+
return this.config.provider;
|
|
733
|
+
}
|
|
734
|
+
async getArgs({ audio: e, mediaType: t, providerOptions: n }) {
|
|
735
|
+
let r = [], i = await b({
|
|
736
|
+
provider: "mistral",
|
|
737
|
+
providerOptions: n,
|
|
738
|
+
schema: Z
|
|
739
|
+
});
|
|
740
|
+
if (i?.language != null && i.timestampGranularities != null) throw new S({
|
|
741
|
+
argument: "providerOptions",
|
|
742
|
+
message: "providerOptions.mistral.language cannot be combined with providerOptions.mistral.timestampGranularities"
|
|
743
|
+
});
|
|
744
|
+
let a = new FormData(), o = e instanceof Uint8Array ? new Blob([e]) : new Blob([D(e)]);
|
|
745
|
+
return a.append("model", this.modelId), a.append("file", new File([o], "audio", { type: t }), `audio.${ee(t)}`), i != null && (Q(a, "language", i.language), Q(a, "temperature", i.temperature), Q(a, "timestamp_granularities", i.timestampGranularities), Q(a, "diarize", i.diarize), Q(a, "context_bias", i.contextBias)), {
|
|
746
|
+
formData: a,
|
|
747
|
+
warnings: r
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
async doGenerate(e) {
|
|
751
|
+
let t = this.config._internal?.currentDate?.() ?? /* @__PURE__ */ new Date(), { formData: n, warnings: r } = await this.getArgs(e), { value: a, responseHeaders: o, rawValue: s } = await ae({
|
|
752
|
+
url: `${this.config.baseURL}/audio/transcriptions`,
|
|
753
|
+
headers: E(this.config.headers?.(), e.headers),
|
|
754
|
+
formData: n,
|
|
755
|
+
failedResponseHandler: K,
|
|
756
|
+
successfulResponseHandler: i(_e),
|
|
757
|
+
abortSignal: e.abortSignal,
|
|
758
|
+
fetch: this.config.fetch
|
|
759
|
+
}), c = a.segments?.map((e) => ({
|
|
760
|
+
text: e.text,
|
|
761
|
+
startSecond: e.start,
|
|
762
|
+
endSecond: e.end
|
|
763
|
+
})) ?? [], l = {};
|
|
764
|
+
a.usage != null && (l.usage = {
|
|
765
|
+
...a.usage.prompt_tokens != null && { promptTokens: a.usage.prompt_tokens },
|
|
766
|
+
...a.usage.completion_tokens != null && { completionTokens: a.usage.completion_tokens },
|
|
767
|
+
...a.usage.total_tokens != null && { totalTokens: a.usage.total_tokens },
|
|
768
|
+
...a.usage.prompt_audio_seconds != null && { promptAudioSeconds: a.usage.prompt_audio_seconds },
|
|
769
|
+
...a.usage.request_count != null && { requestCount: a.usage.request_count }
|
|
770
|
+
});
|
|
771
|
+
let u = a.segments?.filter((e) => e.type != null || e.score != null || e.speaker_id != null).map((e) => ({
|
|
772
|
+
text: e.text,
|
|
773
|
+
startSecond: e.start,
|
|
774
|
+
endSecond: e.end,
|
|
775
|
+
...e.type != null && { type: e.type },
|
|
776
|
+
...e.score != null && { score: e.score },
|
|
777
|
+
...e.speaker_id != null && { speakerId: e.speaker_id }
|
|
778
|
+
}));
|
|
779
|
+
return u != null && u.length > 0 && (l.segments = u), {
|
|
780
|
+
text: a.text,
|
|
781
|
+
segments: c,
|
|
782
|
+
language: a.language ?? void 0,
|
|
783
|
+
durationInSeconds: a.usage?.prompt_audio_seconds ?? c.at(-1)?.endSecond ?? void 0,
|
|
784
|
+
warnings: r,
|
|
785
|
+
response: {
|
|
786
|
+
timestamp: t,
|
|
787
|
+
modelId: a.model,
|
|
788
|
+
headers: o,
|
|
789
|
+
body: s
|
|
790
|
+
},
|
|
791
|
+
...Object.keys(l).length > 0 && { providerMetadata: { mistral: l } }
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
function Q(e, t, n) {
|
|
796
|
+
if (n != null) {
|
|
797
|
+
if (Array.isArray(n)) {
|
|
798
|
+
for (let r of n) e.append(t, r);
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
e.append(t, String(n));
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
var _e = x({
|
|
805
|
+
model: M(),
|
|
806
|
+
text: M(),
|
|
807
|
+
language: M().nullish(),
|
|
808
|
+
segments: s(x({
|
|
809
|
+
type: I("transcription_segment").nullish(),
|
|
810
|
+
text: M(),
|
|
811
|
+
start: O(),
|
|
812
|
+
end: O(),
|
|
813
|
+
score: O().nullish(),
|
|
814
|
+
speaker_id: M().nullish()
|
|
815
|
+
})).nullish(),
|
|
816
|
+
usage: x({
|
|
817
|
+
prompt_tokens: O().nullish(),
|
|
818
|
+
completion_tokens: O().nullish(),
|
|
819
|
+
total_tokens: O().nullish(),
|
|
820
|
+
prompt_audio_seconds: O().nullish(),
|
|
821
|
+
request_count: O().nullish()
|
|
822
|
+
}).nullish()
|
|
823
|
+
}), ve = "4.0.54";
|
|
824
|
+
function $(e = {}) {
|
|
825
|
+
let t = L(e.baseURL) ?? "https://api.mistral.ai/v1", n = () => u({
|
|
826
|
+
Authorization: `Bearer ${re({
|
|
827
|
+
apiKey: e.apiKey,
|
|
828
|
+
environmentVariableName: "MISTRAL_API_KEY",
|
|
829
|
+
description: "Mistral"
|
|
830
|
+
})}`,
|
|
831
|
+
...e.headers
|
|
832
|
+
}, `ai-sdk-mistral/${ve}`), i = (r) => new se(r, {
|
|
833
|
+
provider: "mistral.chat",
|
|
834
|
+
baseURL: t,
|
|
835
|
+
headers: n,
|
|
836
|
+
fetch: e.fetch,
|
|
837
|
+
generateId: e.generateId
|
|
838
|
+
}), a = (r) => new de(r, {
|
|
839
|
+
provider: "mistral.embedding",
|
|
840
|
+
baseURL: t,
|
|
841
|
+
headers: n,
|
|
842
|
+
fetch: e.fetch
|
|
843
|
+
}), o = (r) => new me(r, {
|
|
844
|
+
provider: "mistral.speech",
|
|
845
|
+
baseURL: t,
|
|
846
|
+
headers: n,
|
|
847
|
+
fetch: e.fetch
|
|
848
|
+
}), s = (r) => new ge(r, {
|
|
849
|
+
provider: "mistral.transcription",
|
|
850
|
+
baseURL: t,
|
|
851
|
+
headers: n,
|
|
852
|
+
fetch: e.fetch
|
|
853
|
+
}), c = function(e) {
|
|
854
|
+
if (new.target) throw Error("The Mistral model function cannot be called with the new keyword.");
|
|
855
|
+
return i(e);
|
|
856
|
+
};
|
|
857
|
+
return c.specificationVersion = "v4", c.languageModel = i, c.chat = i, c.embedding = a, c.embeddingModel = a, c.textEmbedding = a, c.textEmbeddingModel = a, c.speech = o, c.speechModel = o, c.transcription = s, c.transcriptionModel = s, c.imageModel = (e) => {
|
|
858
|
+
throw new r({
|
|
859
|
+
modelId: e,
|
|
860
|
+
modelType: "imageModel"
|
|
861
|
+
});
|
|
862
|
+
}, c;
|
|
863
|
+
}
|
|
864
|
+
$();
|
|
865
|
+
//#endregion
|
|
866
|
+
export { $ as createMistral };
|