@workglow/huggingface-transformers 0.2.28

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.
Files changed (89) hide show
  1. package/dist/ai-provider/HuggingFaceTransformersProvider.d.ts +28 -0
  2. package/dist/ai-provider/HuggingFaceTransformersProvider.d.ts.map +1 -0
  3. package/dist/ai-provider/HuggingFaceTransformersQueuedProvider.d.ts +29 -0
  4. package/dist/ai-provider/HuggingFaceTransformersQueuedProvider.d.ts.map +1 -0
  5. package/dist/ai-provider/common/HFT_BackgroundRemoval.d.ts +12 -0
  6. package/dist/ai-provider/common/HFT_BackgroundRemoval.d.ts.map +1 -0
  7. package/dist/ai-provider/common/HFT_Chat.d.ts +10 -0
  8. package/dist/ai-provider/common/HFT_Chat.d.ts.map +1 -0
  9. package/dist/ai-provider/common/HFT_Constants.d.ts +95 -0
  10. package/dist/ai-provider/common/HFT_Constants.d.ts.map +1 -0
  11. package/dist/ai-provider/common/HFT_CountTokens.d.ts +10 -0
  12. package/dist/ai-provider/common/HFT_CountTokens.d.ts.map +1 -0
  13. package/dist/ai-provider/common/HFT_Download.d.ts +13 -0
  14. package/dist/ai-provider/common/HFT_Download.d.ts.map +1 -0
  15. package/dist/ai-provider/common/HFT_ImageClassification.d.ts +13 -0
  16. package/dist/ai-provider/common/HFT_ImageClassification.d.ts.map +1 -0
  17. package/dist/ai-provider/common/HFT_ImageEmbedding.d.ts +12 -0
  18. package/dist/ai-provider/common/HFT_ImageEmbedding.d.ts.map +1 -0
  19. package/dist/ai-provider/common/HFT_ImageSegmentation.d.ts +12 -0
  20. package/dist/ai-provider/common/HFT_ImageSegmentation.d.ts.map +1 -0
  21. package/dist/ai-provider/common/HFT_ImageToText.d.ts +12 -0
  22. package/dist/ai-provider/common/HFT_ImageToText.d.ts.map +1 -0
  23. package/dist/ai-provider/common/HFT_InlineLifecycle.d.ts +7 -0
  24. package/dist/ai-provider/common/HFT_InlineLifecycle.d.ts.map +1 -0
  25. package/dist/ai-provider/common/HFT_JobRunFns.d.ts +19 -0
  26. package/dist/ai-provider/common/HFT_JobRunFns.d.ts.map +1 -0
  27. package/dist/ai-provider/common/HFT_ModelInfo.d.ts +9 -0
  28. package/dist/ai-provider/common/HFT_ModelInfo.d.ts.map +1 -0
  29. package/dist/ai-provider/common/HFT_ModelSchema.d.ts +368 -0
  30. package/dist/ai-provider/common/HFT_ModelSchema.d.ts.map +1 -0
  31. package/dist/ai-provider/common/HFT_ModelSearch.d.ts +8 -0
  32. package/dist/ai-provider/common/HFT_ModelSearch.d.ts.map +1 -0
  33. package/dist/ai-provider/common/HFT_ObjectDetection.d.ts +13 -0
  34. package/dist/ai-provider/common/HFT_ObjectDetection.d.ts.map +1 -0
  35. package/dist/ai-provider/common/HFT_OnnxDtypes.d.ts +27 -0
  36. package/dist/ai-provider/common/HFT_OnnxDtypes.d.ts.map +1 -0
  37. package/dist/ai-provider/common/HFT_Pipeline.d.ts +62 -0
  38. package/dist/ai-provider/common/HFT_Pipeline.d.ts.map +1 -0
  39. package/dist/ai-provider/common/HFT_Streaming.d.ts +25 -0
  40. package/dist/ai-provider/common/HFT_Streaming.d.ts.map +1 -0
  41. package/dist/ai-provider/common/HFT_StructuredGeneration.d.ts +10 -0
  42. package/dist/ai-provider/common/HFT_StructuredGeneration.d.ts.map +1 -0
  43. package/dist/ai-provider/common/HFT_TextClassification.d.ts +9 -0
  44. package/dist/ai-provider/common/HFT_TextClassification.d.ts.map +1 -0
  45. package/dist/ai-provider/common/HFT_TextEmbedding.d.ts +13 -0
  46. package/dist/ai-provider/common/HFT_TextEmbedding.d.ts.map +1 -0
  47. package/dist/ai-provider/common/HFT_TextFillMask.d.ts +9 -0
  48. package/dist/ai-provider/common/HFT_TextFillMask.d.ts.map +1 -0
  49. package/dist/ai-provider/common/HFT_TextGeneration.d.ts +14 -0
  50. package/dist/ai-provider/common/HFT_TextGeneration.d.ts.map +1 -0
  51. package/dist/ai-provider/common/HFT_TextLanguageDetection.d.ts +9 -0
  52. package/dist/ai-provider/common/HFT_TextLanguageDetection.d.ts.map +1 -0
  53. package/dist/ai-provider/common/HFT_TextNamedEntityRecognition.d.ts +9 -0
  54. package/dist/ai-provider/common/HFT_TextNamedEntityRecognition.d.ts.map +1 -0
  55. package/dist/ai-provider/common/HFT_TextOutput.d.ts +8 -0
  56. package/dist/ai-provider/common/HFT_TextOutput.d.ts.map +1 -0
  57. package/dist/ai-provider/common/HFT_TextQuestionAnswer.d.ts +14 -0
  58. package/dist/ai-provider/common/HFT_TextQuestionAnswer.d.ts.map +1 -0
  59. package/dist/ai-provider/common/HFT_TextRewriter.d.ts +14 -0
  60. package/dist/ai-provider/common/HFT_TextRewriter.d.ts.map +1 -0
  61. package/dist/ai-provider/common/HFT_TextSummary.d.ts +14 -0
  62. package/dist/ai-provider/common/HFT_TextSummary.d.ts.map +1 -0
  63. package/dist/ai-provider/common/HFT_TextTranslation.d.ts +14 -0
  64. package/dist/ai-provider/common/HFT_TextTranslation.d.ts.map +1 -0
  65. package/dist/ai-provider/common/HFT_ToolCalling.d.ts +19 -0
  66. package/dist/ai-provider/common/HFT_ToolCalling.d.ts.map +1 -0
  67. package/dist/ai-provider/common/HFT_ToolMarkup.d.ts +20 -0
  68. package/dist/ai-provider/common/HFT_ToolMarkup.d.ts.map +1 -0
  69. package/dist/ai-provider/common/HFT_Unload.d.ts +13 -0
  70. package/dist/ai-provider/common/HFT_Unload.d.ts.map +1 -0
  71. package/dist/ai-provider/index.d.ts +13 -0
  72. package/dist/ai-provider/index.d.ts.map +1 -0
  73. package/dist/ai-provider/registerHuggingFaceTransformers.d.ts +14 -0
  74. package/dist/ai-provider/registerHuggingFaceTransformers.d.ts.map +1 -0
  75. package/dist/ai-provider/registerHuggingFaceTransformersInline.d.ts +15 -0
  76. package/dist/ai-provider/registerHuggingFaceTransformersInline.d.ts.map +1 -0
  77. package/dist/ai-provider/registerHuggingFaceTransformersWorker.d.ts +7 -0
  78. package/dist/ai-provider/registerHuggingFaceTransformersWorker.d.ts.map +1 -0
  79. package/dist/ai-provider/runtime.d.ts +21 -0
  80. package/dist/ai-provider/runtime.d.ts.map +1 -0
  81. package/dist/ai-provider-runtime.d.ts +7 -0
  82. package/dist/ai-provider-runtime.d.ts.map +1 -0
  83. package/dist/ai-provider-runtime.js +2367 -0
  84. package/dist/ai-provider-runtime.js.map +46 -0
  85. package/dist/ai-provider.d.ts +7 -0
  86. package/dist/ai-provider.d.ts.map +1 -0
  87. package/dist/ai-provider.js +879 -0
  88. package/dist/ai-provider.js.map +17 -0
  89. package/package.json +60 -0
@@ -0,0 +1,368 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { FromSchema } from "@workglow/util/worker";
7
+ export declare const HfTransformersOnnxModelSchema: {
8
+ readonly type: "object";
9
+ readonly properties: {
10
+ readonly provider: {
11
+ readonly const: "HF_TRANSFORMERS_ONNX";
12
+ readonly description: "Discriminator: ONNX runtime backend.";
13
+ };
14
+ readonly provider_config: {
15
+ readonly type: "object";
16
+ readonly description: "ONNX runtime-specific options.";
17
+ readonly properties: {
18
+ readonly pipeline: {
19
+ readonly type: "string";
20
+ readonly enum: ("audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "feature-extraction" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection")[];
21
+ readonly description: "Pipeline type for the ONNX model.";
22
+ readonly default: "text-generation";
23
+ };
24
+ readonly model_path: {
25
+ readonly type: "string";
26
+ readonly description: "Filesystem path or URI for the ONNX model.";
27
+ };
28
+ readonly revision: {
29
+ readonly type: "string";
30
+ readonly description: "Git revision (branch, tag, or commit hash) of the model repository.";
31
+ readonly default: "main";
32
+ };
33
+ readonly dtype: {
34
+ readonly type: "string";
35
+ readonly enum: ("auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q1" | "q1f16" | "q2" | "q2f16" | "q4" | "q4f16" | "q8" | "uint8")[];
36
+ readonly description: "Data type for the ONNX model.";
37
+ readonly default: "auto";
38
+ };
39
+ readonly device: {
40
+ readonly type: "string";
41
+ readonly enum: readonly ["cpu", "gpu", "webgpu", "wasm", "metal"];
42
+ readonly description: "High-level device selection.";
43
+ readonly default: "webgpu";
44
+ };
45
+ readonly execution_providers: {
46
+ readonly type: "array";
47
+ readonly items: {
48
+ readonly type: "string";
49
+ };
50
+ readonly description: "Raw ONNX Runtime execution provider identifiers.";
51
+ readonly "x-ui-hidden": true;
52
+ };
53
+ readonly intra_op_num_threads: {
54
+ readonly type: "integer";
55
+ readonly minimum: 1;
56
+ };
57
+ readonly inter_op_num_threads: {
58
+ readonly type: "integer";
59
+ readonly minimum: 1;
60
+ };
61
+ readonly use_external_data_format: {
62
+ readonly type: "boolean";
63
+ readonly description: "Whether the model uses external data format.";
64
+ };
65
+ readonly native_dimensions: {
66
+ readonly type: "integer";
67
+ readonly description: "The native dimensions of the model.";
68
+ };
69
+ readonly pooling: {
70
+ readonly type: "string";
71
+ readonly enum: readonly ["mean", "last_token", "cls"];
72
+ readonly description: "The pooling strategy to use for the model.";
73
+ readonly default: "mean";
74
+ };
75
+ readonly normalize: {
76
+ readonly type: "boolean";
77
+ readonly description: "Whether the model uses normalization.";
78
+ readonly default: true;
79
+ };
80
+ readonly language_style: {
81
+ readonly type: "string";
82
+ readonly description: "The language style of the model.";
83
+ };
84
+ readonly seed: {
85
+ readonly type: "integer";
86
+ readonly description: "RNG seed passed to transformers.js sampling. Omit for time-based seeding; set for reproducible generation.";
87
+ readonly minimum: 0;
88
+ };
89
+ readonly mrl: {
90
+ readonly type: "boolean";
91
+ readonly description: "Whether the model uses matryoshka.";
92
+ readonly default: false;
93
+ };
94
+ };
95
+ readonly required: readonly ["model_path", "pipeline"];
96
+ readonly additionalProperties: false;
97
+ readonly if: {
98
+ readonly properties: {
99
+ readonly pipeline: {
100
+ readonly const: "feature-extraction";
101
+ };
102
+ };
103
+ };
104
+ readonly then: {
105
+ readonly required: readonly ["native_dimensions"];
106
+ };
107
+ };
108
+ };
109
+ readonly required: readonly ["provider", "provider_config"];
110
+ readonly additionalProperties: true;
111
+ };
112
+ export declare const HfTransformersOnnxModelRecordSchema: {
113
+ readonly type: "object";
114
+ readonly properties: {
115
+ readonly model_id: {
116
+ readonly type: "string";
117
+ };
118
+ readonly tasks: {
119
+ readonly type: "array";
120
+ readonly items: {
121
+ readonly type: "string";
122
+ };
123
+ readonly "x-ui-editor": "multiselect";
124
+ };
125
+ readonly title: {
126
+ readonly type: "string";
127
+ };
128
+ readonly description: {
129
+ readonly type: "string";
130
+ readonly "x-ui-editor": "textarea";
131
+ };
132
+ readonly metadata: {
133
+ readonly type: "object";
134
+ readonly default: {};
135
+ readonly "x-ui-hidden": true;
136
+ };
137
+ readonly provider: {
138
+ readonly const: "HF_TRANSFORMERS_ONNX";
139
+ readonly description: "Discriminator: ONNX runtime backend.";
140
+ };
141
+ readonly provider_config: {
142
+ readonly type: "object";
143
+ readonly description: "ONNX runtime-specific options.";
144
+ readonly properties: {
145
+ readonly pipeline: {
146
+ readonly type: "string";
147
+ readonly enum: ("audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "feature-extraction" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection")[];
148
+ readonly description: "Pipeline type for the ONNX model.";
149
+ readonly default: "text-generation";
150
+ };
151
+ readonly model_path: {
152
+ readonly type: "string";
153
+ readonly description: "Filesystem path or URI for the ONNX model.";
154
+ };
155
+ readonly revision: {
156
+ readonly type: "string";
157
+ readonly description: "Git revision (branch, tag, or commit hash) of the model repository.";
158
+ readonly default: "main";
159
+ };
160
+ readonly dtype: {
161
+ readonly type: "string";
162
+ readonly enum: ("auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q1" | "q1f16" | "q2" | "q2f16" | "q4" | "q4f16" | "q8" | "uint8")[];
163
+ readonly description: "Data type for the ONNX model.";
164
+ readonly default: "auto";
165
+ };
166
+ readonly device: {
167
+ readonly type: "string";
168
+ readonly enum: readonly ["cpu", "gpu", "webgpu", "wasm", "metal"];
169
+ readonly description: "High-level device selection.";
170
+ readonly default: "webgpu";
171
+ };
172
+ readonly execution_providers: {
173
+ readonly type: "array";
174
+ readonly items: {
175
+ readonly type: "string";
176
+ };
177
+ readonly description: "Raw ONNX Runtime execution provider identifiers.";
178
+ readonly "x-ui-hidden": true;
179
+ };
180
+ readonly intra_op_num_threads: {
181
+ readonly type: "integer";
182
+ readonly minimum: 1;
183
+ };
184
+ readonly inter_op_num_threads: {
185
+ readonly type: "integer";
186
+ readonly minimum: 1;
187
+ };
188
+ readonly use_external_data_format: {
189
+ readonly type: "boolean";
190
+ readonly description: "Whether the model uses external data format.";
191
+ };
192
+ readonly native_dimensions: {
193
+ readonly type: "integer";
194
+ readonly description: "The native dimensions of the model.";
195
+ };
196
+ readonly pooling: {
197
+ readonly type: "string";
198
+ readonly enum: readonly ["mean", "last_token", "cls"];
199
+ readonly description: "The pooling strategy to use for the model.";
200
+ readonly default: "mean";
201
+ };
202
+ readonly normalize: {
203
+ readonly type: "boolean";
204
+ readonly description: "Whether the model uses normalization.";
205
+ readonly default: true;
206
+ };
207
+ readonly language_style: {
208
+ readonly type: "string";
209
+ readonly description: "The language style of the model.";
210
+ };
211
+ readonly seed: {
212
+ readonly type: "integer";
213
+ readonly description: "RNG seed passed to transformers.js sampling. Omit for time-based seeding; set for reproducible generation.";
214
+ readonly minimum: 0;
215
+ };
216
+ readonly mrl: {
217
+ readonly type: "boolean";
218
+ readonly description: "Whether the model uses matryoshka.";
219
+ readonly default: false;
220
+ };
221
+ };
222
+ readonly required: readonly ["model_path", "pipeline"];
223
+ readonly additionalProperties: false;
224
+ readonly if: {
225
+ readonly properties: {
226
+ readonly pipeline: {
227
+ readonly const: "feature-extraction";
228
+ };
229
+ };
230
+ };
231
+ readonly then: {
232
+ readonly required: readonly ["native_dimensions"];
233
+ };
234
+ };
235
+ };
236
+ readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "provider_config", "metadata", "provider", "provider_config"];
237
+ readonly additionalProperties: false;
238
+ };
239
+ export type HfTransformersOnnxModelRecord = FromSchema<typeof HfTransformersOnnxModelRecordSchema>;
240
+ export declare const HfTransformersOnnxModelConfigSchema: {
241
+ readonly type: "object";
242
+ readonly properties: {
243
+ readonly model_id: {
244
+ readonly type: "string";
245
+ };
246
+ readonly tasks: {
247
+ readonly type: "array";
248
+ readonly items: {
249
+ readonly type: "string";
250
+ };
251
+ readonly "x-ui-editor": "multiselect";
252
+ };
253
+ readonly title: {
254
+ readonly type: "string";
255
+ };
256
+ readonly description: {
257
+ readonly type: "string";
258
+ readonly "x-ui-editor": "textarea";
259
+ };
260
+ readonly metadata: {
261
+ readonly type: "object";
262
+ readonly default: {};
263
+ readonly "x-ui-hidden": true;
264
+ };
265
+ readonly provider: {
266
+ readonly const: "HF_TRANSFORMERS_ONNX";
267
+ readonly description: "Discriminator: ONNX runtime backend.";
268
+ };
269
+ readonly provider_config: {
270
+ readonly type: "object";
271
+ readonly description: "ONNX runtime-specific options.";
272
+ readonly properties: {
273
+ readonly pipeline: {
274
+ readonly type: "string";
275
+ readonly enum: ("audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "feature-extraction" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection")[];
276
+ readonly description: "Pipeline type for the ONNX model.";
277
+ readonly default: "text-generation";
278
+ };
279
+ readonly model_path: {
280
+ readonly type: "string";
281
+ readonly description: "Filesystem path or URI for the ONNX model.";
282
+ };
283
+ readonly revision: {
284
+ readonly type: "string";
285
+ readonly description: "Git revision (branch, tag, or commit hash) of the model repository.";
286
+ readonly default: "main";
287
+ };
288
+ readonly dtype: {
289
+ readonly type: "string";
290
+ readonly enum: ("auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q1" | "q1f16" | "q2" | "q2f16" | "q4" | "q4f16" | "q8" | "uint8")[];
291
+ readonly description: "Data type for the ONNX model.";
292
+ readonly default: "auto";
293
+ };
294
+ readonly device: {
295
+ readonly type: "string";
296
+ readonly enum: readonly ["cpu", "gpu", "webgpu", "wasm", "metal"];
297
+ readonly description: "High-level device selection.";
298
+ readonly default: "webgpu";
299
+ };
300
+ readonly execution_providers: {
301
+ readonly type: "array";
302
+ readonly items: {
303
+ readonly type: "string";
304
+ };
305
+ readonly description: "Raw ONNX Runtime execution provider identifiers.";
306
+ readonly "x-ui-hidden": true;
307
+ };
308
+ readonly intra_op_num_threads: {
309
+ readonly type: "integer";
310
+ readonly minimum: 1;
311
+ };
312
+ readonly inter_op_num_threads: {
313
+ readonly type: "integer";
314
+ readonly minimum: 1;
315
+ };
316
+ readonly use_external_data_format: {
317
+ readonly type: "boolean";
318
+ readonly description: "Whether the model uses external data format.";
319
+ };
320
+ readonly native_dimensions: {
321
+ readonly type: "integer";
322
+ readonly description: "The native dimensions of the model.";
323
+ };
324
+ readonly pooling: {
325
+ readonly type: "string";
326
+ readonly enum: readonly ["mean", "last_token", "cls"];
327
+ readonly description: "The pooling strategy to use for the model.";
328
+ readonly default: "mean";
329
+ };
330
+ readonly normalize: {
331
+ readonly type: "boolean";
332
+ readonly description: "Whether the model uses normalization.";
333
+ readonly default: true;
334
+ };
335
+ readonly language_style: {
336
+ readonly type: "string";
337
+ readonly description: "The language style of the model.";
338
+ };
339
+ readonly seed: {
340
+ readonly type: "integer";
341
+ readonly description: "RNG seed passed to transformers.js sampling. Omit for time-based seeding; set for reproducible generation.";
342
+ readonly minimum: 0;
343
+ };
344
+ readonly mrl: {
345
+ readonly type: "boolean";
346
+ readonly description: "Whether the model uses matryoshka.";
347
+ readonly default: false;
348
+ };
349
+ };
350
+ readonly required: readonly ["model_path", "pipeline"];
351
+ readonly additionalProperties: false;
352
+ readonly if: {
353
+ readonly properties: {
354
+ readonly pipeline: {
355
+ readonly const: "feature-extraction";
356
+ };
357
+ };
358
+ };
359
+ readonly then: {
360
+ readonly required: readonly ["native_dimensions"];
361
+ };
362
+ };
363
+ };
364
+ readonly required: readonly ["provider", "provider_config", "provider", "provider_config"];
365
+ readonly additionalProperties: false;
366
+ };
367
+ export type HfTransformersOnnxModelConfig = FromSchema<typeof HfTransformersOnnxModelConfigSchema>;
368
+ //# sourceMappingURL=HFT_ModelSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_ModelSchema.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_ModelSchema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGzE,eAAO,MAAM,6BAA6B;mBAClC,QAAQ;;iBAEZ,QAAQ;qBACN,KAAK;qBACL,WAAW,EAAE,sCAAsC;;iBAErD,eAAe;qBACb,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gCAAgC;qBAC7C,UAAU;yBACR,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,IAAI;6BACJ,WAAW,EAAE,mCAAmC;6BAChD,OAAO,EAAE,iBAAiB;;yBAE5B,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EAAE,4CAA4C;;yBAE3D,QAAQ;6BACN,IAAI,EAAE,QAAQ;6B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AW,EAAE,kDAAkD;6BAC/D,aAAa;;yBAEf,oBAAoB;6BAClB,IAAI,EAAE,SAAS;6BACf,OAAO,EAAE,CAAC;;yBAEZ,oBAAoB;6BAClB,IAAI,EAAE,SAAS;6BACf,OAAO,EAAE,CAAC;;yBAEZ,wBAAwB;6BACtB,IAAI,EAAE,SAAS;6BACf,WAAW,EAAE,8CAA8C;;yBAE7D,iBAAiB;6BACf,IAAI,EAAE,SAAS;6BACf,WAAW,EAAE,qCAAqC;;yBAEpD,OAAO;6BACL,IAAI,EAAE,QAAQ;6BACd,IAAI;6BACJ,WAAW,EAAE,4CAA4C;6BACzD,OAAO,EAAE,MAAM;;yBAEjB,SAAS;6BACP,IAAI,EAAE,SAAS;6BACf,WAAW,EAAE,uCAAuC;6BACpD,OAAO;;yBAET,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,WAAW,EAAE,kCAAkC;;yBAEjD,IAAI;6BACF,IAAI,EAAE,SAAS;6BACf,WAAW,EACT,4GAA4G;6BAC9G,OAAO,EAAE,CAAC;;yBAEZ,GAAG;6BACD,IAAI,EAAE,SAAS;6BACf,WAAW,EAAE,oCAAoC;6BACjD,OAAO;;;qBAGX,QAAQ;qBACR,oBAAoB;qBACpB,EAAE;yBACA,UAAU;6BACR,QAAQ;iCACN,KAAK,EAAE,oBAAoB;;;;qBAIjC,IAAI;yBACF,QAAQ;;;;;;CA4ByB,CAAC;AAE1C,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, ModelSearchTaskInput, ModelSearchTaskOutput } from "@workglow/ai";
7
+ export declare const HFT_ModelSearch: AiProviderRunFn<ModelSearchTaskInput, ModelSearchTaskOutput>;
8
+ //# sourceMappingURL=HFT_ModelSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_ModelSearch.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_ModelSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAKjG,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,oBAAoB,EAAE,qBAAqB,CAkCxF,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, ObjectDetectionTaskInput, ObjectDetectionTaskOutput } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ /**
9
+ * Core implementation for object detection using Hugging Face Transformers.
10
+ * Auto-selects between regular and zero-shot detection.
11
+ */
12
+ export declare const HFT_ObjectDetection: AiProviderRunFn<ObjectDetectionTaskInput, ObjectDetectionTaskOutput, HfTransformersOnnxModelConfig>;
13
+ //# sourceMappingURL=HFT_ObjectDetection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_ObjectDetection.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_ObjectDetection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAGvE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAC/C,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,CAuC9B,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare const ONNX_QUANTIZATION_SUFFIX_MAPPING: {
7
+ readonly fp32: "";
8
+ readonly fp16: "_fp16";
9
+ readonly int8: "_int8";
10
+ readonly uint8: "_uint8";
11
+ readonly q8: "_quantized";
12
+ readonly q4: "_q4";
13
+ readonly q4f16: "_q4f16";
14
+ readonly bnb4: "_bnb4";
15
+ readonly q2: "_q2";
16
+ readonly q2f16: "_q2f16";
17
+ readonly q1: "_q1";
18
+ readonly q1f16: "_q1f16";
19
+ };
20
+ export type OnnxQuantization = keyof typeof ONNX_QUANTIZATION_SUFFIX_MAPPING;
21
+ export declare function parseOnnxQuantizations(params: {
22
+ /** File paths, e.g. from listModels/modelInfo with additionalFields: ["filePaths"] */
23
+ filePaths: string[];
24
+ /** Subdirectory containing ONNX files. @default "onnx" */
25
+ subfolder?: string;
26
+ }): OnnxQuantization[];
27
+ //# sourceMappingURL=HFT_OnnxDtypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_OnnxDtypes.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_OnnxDtypes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,gCAAgC;aAC3C,IAAI,EAAE,EAAE;aACR,IAAI,EAAE,OAAO;aACb,IAAI,EAAE,OAAO;aACb,KAAK,EAAE,QAAQ;aACf,EAAE,EAAE,YAAY;aAChB,EAAE,EAAE,KAAK;aACT,KAAK,EAAE,QAAQ;aACf,IAAI,EAAE,OAAO;aACb,EAAE,EAAE,KAAK;aACT,KAAK,EAAE,QAAQ;aACf,EAAE,EAAE,KAAK;aACT,KAAK,EAAE,QAAQ;CACP,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,gCAAgC,CAAC;AAQ7E,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAC7C,sFAAsF;IACtF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,gBAAgB,EAAE,CA6CrB"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DynamicCache, PretrainedModelOptions } from "@huggingface/transformers";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ /**
9
+ * Set the filesystem cache directory for downloaded transformers.js models.
10
+ * Must be called before any model is loaded.
11
+ */
12
+ export declare function setHftCacheDir(dir: string): void;
13
+ export declare function loadTransformersSDK(): Promise<typeof import("@huggingface/transformers")>;
14
+ interface HftSessionBase {
15
+ readonly modelPath: string;
16
+ }
17
+ export interface HftPrefixRewindSession extends HftSessionBase {
18
+ readonly mode: "prefix-rewind";
19
+ /** Snapshot of prefix KV entries. On each call, a fresh DynamicCache is
20
+ * created from these entries so generation doesn't pollute the base prefix.
21
+ * Safe for WASM/CPU tensors; WebGPU would need cloning since update()
22
+ * disposes replaced GPU tensors. */
23
+ readonly baseEntries: Record<string, any>;
24
+ readonly baseSeqLength: number;
25
+ }
26
+ export interface HftProgressiveSession extends HftSessionBase {
27
+ readonly mode: "progressive";
28
+ /** Live DynamicCache that grows with the conversation. */
29
+ readonly cache: DynamicCache;
30
+ }
31
+ export type HftSessionState = HftPrefixRewindSession | HftProgressiveSession;
32
+ export declare function getHftSession(sessionId: string): HftSessionState | undefined;
33
+ export declare function setHftSession(sessionId: string, state: HftSessionState): void;
34
+ export declare function deleteHftSession(sessionId: string): boolean;
35
+ export declare function disposeHftSessionsForModel(modelPath: string): void;
36
+ /**
37
+ * Error message prefix used when an image pipeline's processor failed to
38
+ * initialize (null processor after load). The prefix is checked in
39
+ * `AiJob.classifyProviderError()` to produce a `RetryableJobError` so the
40
+ * queue re-downloads missing processor config files.
41
+ */
42
+ export declare const HFT_NULL_PROCESSOR_PREFIX = "HFT_NULL_PROCESSOR:";
43
+ /**
44
+ * Clear all cached pipelines
45
+ */
46
+ export declare function clearPipelineCache(): void;
47
+ export declare function hasCachedPipeline(cacheKey: string): boolean;
48
+ export declare function removeCachedPipeline(cacheKey: string): boolean;
49
+ /**
50
+ * Generate a cache key for a pipeline that includes all configuration options
51
+ * that affect pipeline creation (model_path, pipeline, dtype, device)
52
+ */
53
+ export declare function getPipelineCacheKey(model: HfTransformersOnnxModelConfig): string;
54
+ /**
55
+ * Helper function to get a pipeline for a model
56
+ * @param progressScaleMax - Maximum progress value for download phase (100 for download-only, 10 for download+run)
57
+ *
58
+ * Explicit `Promise<any>` return avoids TS2883 (inferred type not portable across package boundaries).
59
+ */
60
+ export declare function getPipeline(model: HfTransformersOnnxModelConfig, onProgress: (progress: number, message?: string, details?: any) => void, options?: PretrainedModelOptions, signal?: AbortSignal, progressScaleMax?: number): Promise<any>;
61
+ export {};
62
+ //# sourceMappingURL=HFT_Pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_Pipeline.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_Pipeline.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAgB,MAAM,2BAA2B,CAAC;AAEpG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAKvE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAKhD;AAED,wBAAsB,mBAAmB,wDAexC;AAkJD,UAAU,cAAc;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B;;;yCAGqC;IACrC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED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2.0
5
+ */
6
+ import type { TextStreamer } from "@huggingface/transformers";
7
+ import type { StreamEvent } from "@workglow/task-graph";
8
+ export type StreamEventQueue<T> = {
9
+ push: (event: T) => void;
10
+ done: () => void;
11
+ error: (err: Error) => void;
12
+ iterable: AsyncIterable<T>;
13
+ };
14
+ export declare function createStreamEventQueue<T>(): StreamEventQueue<T>;
15
+ /**
16
+ * Creates a TextStreamer that pushes StreamEvents into an async queue.
17
+ * The pipeline runs to completion and updates the queue; the caller
18
+ * consumes the queue as an AsyncIterable<StreamEvent>.
19
+ */
20
+ export declare function createStreamingTextStreamer(tokenizer: any, queue: StreamEventQueue<StreamEvent<any>>, textStreamer: typeof TextStreamer): TextStreamer;
21
+ /**
22
+ * Create a text streamer for a given tokenizer and update progress function
23
+ */
24
+ export declare function createTextStreamer(tokenizer: any, updateProgress: (progress: number, message?: string, details?: any) => void, textStreamer: typeof TextStreamer): TextStreamer;
25
+ //# sourceMappingURL=HFT_Streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_Streaming.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_Streaming.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CAC5B,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,CAAC,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAsD/D;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EACzC,YAAY,EAAE,OAAO,YAAY,gBASlC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,GAAG,EACd,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,EAC3E,YAAY,EAAE,OAAO,YAAY,gBAalC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, AiProviderStreamFn, StructuredGenerationTaskInput, StructuredGenerationTaskOutput } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ export declare const HFT_StructuredGeneration: AiProviderRunFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, HfTransformersOnnxModelConfig>;
9
+ export declare const HFT_StructuredGeneration_Stream: AiProviderStreamFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, HfTransformersOnnxModelConfig>;
10
+ //# sourceMappingURL=HFT_StructuredGeneration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_StructuredGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_StructuredGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAqDvE,eAAO,MAAM,wBAAwB,EAAE,eAAe,CACpD,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,CAsC9B,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,kBAAkB,CAC9D,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,CAmG9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextClassificationTaskInput, TextClassificationTaskOutput } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ export declare const HFT_TextClassification: AiProviderRunFn<TextClassificationTaskInput, TextClassificationTaskOutput, HfTransformersOnnxModelConfig>;
9
+ //# sourceMappingURL=HFT_TextClassification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_TextClassification.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_TextClassification.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EACV,eAAe,EACf,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAGvE,eAAO,MAAM,sBAAsB,EAAE,eAAe,CAClD,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,CA2C9B,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextEmbeddingTaskInput, TextEmbeddingTaskOutput } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ /**
9
+ * Core implementation for text embedding using Hugging Face Transformers.
10
+ * This is shared between inline and worker implementations.
11
+ */
12
+ export declare const HFT_TextEmbedding: AiProviderRunFn<TextEmbeddingTaskInput, TextEmbeddingTaskOutput, HfTransformersOnnxModelConfig>;
13
+ //# sourceMappingURL=HFT_TextEmbedding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_TextEmbedding.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_TextEmbedding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAGvE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAC7C,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,CA2E9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextFillMaskTaskInput, TextFillMaskTaskOutput } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ export declare const HFT_TextFillMask: AiProviderRunFn<TextFillMaskTaskInput, TextFillMaskTaskOutput, HfTransformersOnnxModelConfig>;
9
+ //# sourceMappingURL=HFT_TextFillMask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_TextFillMask.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_TextFillMask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAGvE,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAC5C,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,CAY9B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, AiProviderStreamFn, TextGenerationTaskInput, TextGenerationTaskOutput } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ /**
9
+ * Core implementation for text generation using Hugging Face Transformers.
10
+ * This is shared between inline and worker implementations.
11
+ */
12
+ export declare const HFT_TextGeneration: AiProviderRunFn<TextGenerationTaskInput, TextGenerationTaskOutput, HfTransformersOnnxModelConfig>;
13
+ export declare const HFT_TextGeneration_Stream: AiProviderStreamFn<TextGenerationTaskInput, TextGenerationTaskOutput, HfTransformersOnnxModelConfig>;
14
+ //# sourceMappingURL=HFT_TextGeneration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAUvE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAC9C,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,CA2D9B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,CACxD,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,CA2D9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextLanguageDetectionTaskInput, TextLanguageDetectionTaskOutput } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
8
+ export declare const HFT_TextLanguageDetection: AiProviderRunFn<TextLanguageDetectionTaskInput, TextLanguageDetectionTaskOutput, HfTransformersOnnxModelConfig>;
9
+ //# sourceMappingURL=HFT_TextLanguageDetection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFT_TextLanguageDetection.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFT_TextLanguageDetection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAGvE,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,8BAA8B,EAC9B,+BAA+B,EAC/B,6BAA6B,CAkB9B,CAAC"}