@workglow/huggingface-inference 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.
- package/dist/ai-provider/HfInferenceProvider.d.ts +27 -0
- package/dist/ai-provider/HfInferenceProvider.d.ts.map +1 -0
- package/dist/ai-provider/HfInferenceQueuedProvider.d.ts +18 -0
- package/dist/ai-provider/HfInferenceQueuedProvider.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_AspectRatio.d.ts +15 -0
- package/dist/ai-provider/common/HFI_AspectRatio.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_Client.d.ts +12 -0
- package/dist/ai-provider/common/HFI_Client.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_Constants.d.ts +7 -0
- package/dist/ai-provider/common/HFI_Constants.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_ImageEdit.d.ts +14 -0
- package/dist/ai-provider/common/HFI_ImageEdit.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_ImageGenerate.d.ts +14 -0
- package/dist/ai-provider/common/HFI_ImageGenerate.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_ImageValidation.d.ts +7 -0
- package/dist/ai-provider/common/HFI_ImageValidation.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_JobRunFns.d.ts +11 -0
- package/dist/ai-provider/common/HFI_JobRunFns.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_ModelInfo.d.ts +9 -0
- package/dist/ai-provider/common/HFI_ModelInfo.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_ModelSchema.d.ts +152 -0
- package/dist/ai-provider/common/HFI_ModelSchema.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_ModelSearch.d.ts +8 -0
- package/dist/ai-provider/common/HFI_ModelSearch.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_TextEmbedding.d.ts +9 -0
- package/dist/ai-provider/common/HFI_TextEmbedding.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_TextGeneration.d.ts +10 -0
- package/dist/ai-provider/common/HFI_TextGeneration.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_TextRewriter.d.ts +10 -0
- package/dist/ai-provider/common/HFI_TextRewriter.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_TextSummary.d.ts +10 -0
- package/dist/ai-provider/common/HFI_TextSummary.d.ts.map +1 -0
- package/dist/ai-provider/common/HFI_ToolCalling.d.ts +10 -0
- package/dist/ai-provider/common/HFI_ToolCalling.d.ts.map +1 -0
- package/dist/ai-provider/index.d.ts +12 -0
- package/dist/ai-provider/index.d.ts.map +1 -0
- package/dist/ai-provider/registerHfInference.d.ts +10 -0
- package/dist/ai-provider/registerHfInference.d.ts.map +1 -0
- package/dist/ai-provider/registerHfInferenceInline.d.ts +8 -0
- package/dist/ai-provider/registerHfInferenceInline.d.ts.map +1 -0
- package/dist/ai-provider/registerHfInferenceWorker.d.ts +7 -0
- package/dist/ai-provider/registerHfInferenceWorker.d.ts.map +1 -0
- package/dist/ai-provider/runtime.d.ts +16 -0
- package/dist/ai-provider/runtime.d.ts.map +1 -0
- package/dist/ai-provider-runtime.d.ts +7 -0
- package/dist/ai-provider-runtime.d.ts.map +1 -0
- package/dist/ai-provider-runtime.js +670 -0
- package/dist/ai-provider-runtime.js.map +27 -0
- package/dist/ai-provider.d.ts +7 -0
- package/dist/ai-provider.d.ts.map +1 -0
- package/dist/ai-provider.js +199 -0
- package/dist/ai-provider.js.map +16 -0
- package/package.json +60 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { AiProvider } from "@workglow/ai/worker";
|
|
7
|
+
import type { AiProviderPreviewRunFn, AiProviderRunFn, AiProviderStreamFn } from "@workglow/ai/worker";
|
|
8
|
+
import type { HfInferenceModelConfig } from "./common/HFI_ModelSchema";
|
|
9
|
+
/**
|
|
10
|
+
* AI provider for Hugging Face Inference API.
|
|
11
|
+
*
|
|
12
|
+
* Supports text generation, text embedding, text rewriting, and text summarization
|
|
13
|
+
* via the Hugging Face Inference API using the `@huggingface/inference` SDK.
|
|
14
|
+
*
|
|
15
|
+
* Task run functions are injected via the constructor so that the `@huggingface/inference` SDK
|
|
16
|
+
* is only imported where actually needed (inline mode, worker server), not on
|
|
17
|
+
* the main thread in worker mode.
|
|
18
|
+
*/
|
|
19
|
+
export declare class HfInferenceProvider extends AiProvider<HfInferenceModelConfig> {
|
|
20
|
+
readonly name = "HF_INFERENCE";
|
|
21
|
+
readonly displayName = "Hugging Face Inference";
|
|
22
|
+
readonly isLocal = false;
|
|
23
|
+
readonly supportsBrowser = true;
|
|
24
|
+
readonly taskTypes: readonly ["ModelInfoTask", "TextGenerationTask", "TextEmbeddingTask", "TextRewriterTask", "TextSummaryTask", "ToolCallingTask", "ModelSearchTask"];
|
|
25
|
+
constructor(tasks?: Record<string, AiProviderRunFn<any, any, HfInferenceModelConfig>>, streamTasks?: Record<string, AiProviderStreamFn<any, any, HfInferenceModelConfig>>, previewTasks?: Record<string, AiProviderPreviewRunFn<any, any, HfInferenceModelConfig>>);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=HfInferenceProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HfInferenceProvider.d.ts","sourceRoot":"","sources":["../../src/ai-provider/HfInferenceProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE;;;;;;;;;GASG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,sBAAsB,CAAC;IACzE,QAAQ,CAAC,IAAI,kBAAgB;IAC7B,QAAQ,CAAC,WAAW,4BAA4B;IAChD,QAAQ,CAAC,OAAO,SAAS;IACzB,QAAQ,CAAC,eAAe,QAAQ;IAEhC,QAAQ,CAAC,SAAS,YAChB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACR;IAEX,YACE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAAC,EACzE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAAC,EAClF,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAAC,EAGxF;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { AiProvider } from "@workglow/ai";
|
|
7
|
+
import type { AiProviderPreviewRunFn, AiProviderRunFn, AiProviderStreamFn } from "@workglow/ai";
|
|
8
|
+
import type { HfInferenceModelConfig } from "./common/HFI_ModelSchema";
|
|
9
|
+
/** Main-thread registration (inline or worker-backed). No queue — uses direct execution. */
|
|
10
|
+
export declare class HfInferenceQueuedProvider extends AiProvider<HfInferenceModelConfig> {
|
|
11
|
+
readonly name = "HF_INFERENCE";
|
|
12
|
+
readonly displayName = "Hugging Face Inference";
|
|
13
|
+
readonly isLocal = false;
|
|
14
|
+
readonly supportsBrowser = true;
|
|
15
|
+
readonly taskTypes: readonly ["ModelInfoTask", "TextGenerationTask", "TextEmbeddingTask", "TextRewriterTask", "TextSummaryTask", "ToolCallingTask", "ModelSearchTask", "ImageGenerateTask", "ImageEditTask"];
|
|
16
|
+
constructor(tasks?: Record<string, AiProviderRunFn<any, any, HfInferenceModelConfig>>, streamTasks?: Record<string, AiProviderStreamFn<any, any, HfInferenceModelConfig>>, previewTasks?: Record<string, AiProviderPreviewRunFn<any, any, HfInferenceModelConfig>>);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=HfInferenceQueuedProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HfInferenceQueuedProvider.d.ts","sourceRoot":"","sources":["../../src/ai-provider/HfInferenceQueuedProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEhG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,4FAA4F;AAC5F,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,sBAAsB,CAAC;IAC/E,QAAQ,CAAC,IAAI,kBAAgB;IAC7B,QAAQ,CAAC,WAAW,4BAA4B;IAChD,QAAQ,CAAC,OAAO,SAAS;IACzB,QAAQ,CAAC,eAAe,QAAQ;IAEhC,QAAQ,CAAC,SAAS,YAChB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACN;IAEX,YACE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAAC,EACzE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAAC,EAClF,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAAC,EAGxF;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export type AspectRatio = "1:1" | "16:9" | "9:16" | "4:3" | "3:4";
|
|
7
|
+
export interface ImageDims {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
11
|
+
/** Resolves output dims for a model id and aspect ratio. Falls back to SDXL dims. */
|
|
12
|
+
export declare function resolveHfImageDims(modelId: string, aspectRatio: AspectRatio): ImageDims;
|
|
13
|
+
/** Returns true if the model id matches a known inpainting variant (mask supported). */
|
|
14
|
+
export declare function isHfInpaintingModel(modelId: string): boolean;
|
|
15
|
+
//# sourceMappingURL=HFI_AspectRatio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_AspectRatio.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_AspectRatio.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAyBD,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,SAAS,CAGvF;AAED,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { InferenceProviderOrPolicy } from "@huggingface/inference";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare function loadHfInferenceSDK(): Promise<typeof import("@huggingface/inference")>;
|
|
9
|
+
export declare function getClient(model: HfInferenceModelConfig | undefined): Promise<import("@huggingface/inference").InferenceClient>;
|
|
10
|
+
export declare function getModelName(model: HfInferenceModelConfig | undefined): string;
|
|
11
|
+
export declare function getProvider(model: HfInferenceModelConfig | undefined): InferenceProviderOrPolicy | undefined;
|
|
12
|
+
//# sourceMappingURL=HFI_Client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_Client.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_Client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAIhE,wBAAsB,kBAAkB,qDAWvC;AASD,wBAAsB,SAAS,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,6DAmBxE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,GAAG,MAAM,CAM9E;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,sBAAsB,GAAG,SAAS,GACxC,yBAAyB,GAAG,SAAS,CAEvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_Constants.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_Constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,YAAY,iBAAiB,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, ImageEditTaskInput, ImageEditTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_ImageEdit: AiProviderRunFn<ImageEditTaskInput, ImageEditTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
/**
|
|
10
|
+
* One-shot stream wrapper. HF Inference does not support partial image streaming,
|
|
11
|
+
* so we call the non-streaming run function, yield one snapshot, then finish.
|
|
12
|
+
*/
|
|
13
|
+
export declare const HFI_ImageEdit_Stream: AiProviderStreamFn<ImageEditTaskInput, ImageEditTaskOutput, HfInferenceModelConfig>;
|
|
14
|
+
//# sourceMappingURL=HFI_ImageEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_ImageEdit.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_ImageEdit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AA0BhE,eAAO,MAAM,aAAa,EAAE,eAAe,CACzC,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,CAoDvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,kBAAkB,CACnD,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,CAMvB,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, ImageGenerateTaskInput, ImageGenerateTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_ImageGenerate: AiProviderRunFn<ImageGenerateTaskInput, ImageGenerateTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
/**
|
|
10
|
+
* One-shot stream wrapper. HF Inference does not support partial image streaming,
|
|
11
|
+
* so we call the non-streaming run function, yield one snapshot, then finish.
|
|
12
|
+
*/
|
|
13
|
+
export declare const HFI_ImageGenerate_Stream: AiProviderStreamFn<ImageGenerateTaskInput, ImageGenerateTaskOutput, HfInferenceModelConfig>;
|
|
14
|
+
//# sourceMappingURL=HFI_ImageGenerate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_ImageGenerate.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_ImageGenerate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EAExB,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAYhE,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAC7C,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,CAyCvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CACvD,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,CAMvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_ImageValidation.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_ImageValidation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,wBAAgB,wBAAwB,IAAI,IAAI,CA8B/C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { AiProviderRunFn, AiProviderStreamFn } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export { loadHfInferenceSDK, getClient, getModelName, getProvider } from "./HFI_Client";
|
|
9
|
+
export declare const HFI_TASKS: Record<string, AiProviderRunFn<any, any, HfInferenceModelConfig>>;
|
|
10
|
+
export declare const HFI_STREAM_TASKS: Record<string, AiProviderStreamFn<any, any, HfInferenceModelConfig>>;
|
|
11
|
+
//# sourceMappingURL=HFI_JobRunFns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_JobRunFns.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_JobRunFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAWxF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAUvF,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,CAQrD,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, ModelInfoTaskInput, ModelInfoTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_ModelInfo: AiProviderRunFn<ModelInfoTaskInput, ModelInfoTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
//# sourceMappingURL=HFI_ModelInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,eAAe,CACzC,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,CA8BvB,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
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 HfInferenceModelSchema: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly provider: {
|
|
11
|
+
readonly const: "HF_INFERENCE";
|
|
12
|
+
readonly description: "Discriminator: Hugging Face Inference API provider.";
|
|
13
|
+
};
|
|
14
|
+
readonly provider_config: {
|
|
15
|
+
readonly type: "object";
|
|
16
|
+
readonly description: "Hugging Face Inference-specific configuration.";
|
|
17
|
+
readonly properties: {
|
|
18
|
+
readonly model_name: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly description: "The Hugging Face model identifier (e.g., 'meta-llama/Llama-3.3-70B-Instruct').";
|
|
21
|
+
};
|
|
22
|
+
readonly credential_key: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly format: "credential";
|
|
25
|
+
readonly description: "Key to look up in the credential store for the API key.";
|
|
26
|
+
readonly "x-ui-hidden": true;
|
|
27
|
+
};
|
|
28
|
+
readonly provider: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly description: "Optional provider to route to specific HF inference providers (e.g., 'fal-ai', 'fireworks-ai').";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly required: readonly ["model_name"];
|
|
34
|
+
readonly additionalProperties: false;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly required: readonly ["provider", "provider_config"];
|
|
38
|
+
readonly additionalProperties: true;
|
|
39
|
+
};
|
|
40
|
+
export declare const HfInferenceModelRecordSchema: {
|
|
41
|
+
readonly type: "object";
|
|
42
|
+
readonly properties: {
|
|
43
|
+
readonly model_id: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
};
|
|
46
|
+
readonly tasks: {
|
|
47
|
+
readonly type: "array";
|
|
48
|
+
readonly items: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
};
|
|
51
|
+
readonly "x-ui-editor": "multiselect";
|
|
52
|
+
};
|
|
53
|
+
readonly title: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
};
|
|
56
|
+
readonly description: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
readonly "x-ui-editor": "textarea";
|
|
59
|
+
};
|
|
60
|
+
readonly metadata: {
|
|
61
|
+
readonly type: "object";
|
|
62
|
+
readonly default: {};
|
|
63
|
+
readonly "x-ui-hidden": true;
|
|
64
|
+
};
|
|
65
|
+
readonly provider: {
|
|
66
|
+
readonly const: "HF_INFERENCE";
|
|
67
|
+
readonly description: "Discriminator: Hugging Face Inference API provider.";
|
|
68
|
+
};
|
|
69
|
+
readonly provider_config: {
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly description: "Hugging Face Inference-specific configuration.";
|
|
72
|
+
readonly properties: {
|
|
73
|
+
readonly model_name: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly description: "The Hugging Face model identifier (e.g., 'meta-llama/Llama-3.3-70B-Instruct').";
|
|
76
|
+
};
|
|
77
|
+
readonly credential_key: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
readonly format: "credential";
|
|
80
|
+
readonly description: "Key to look up in the credential store for the API key.";
|
|
81
|
+
readonly "x-ui-hidden": true;
|
|
82
|
+
};
|
|
83
|
+
readonly provider: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
readonly description: "Optional provider to route to specific HF inference providers (e.g., 'fal-ai', 'fireworks-ai').";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly required: readonly ["model_name"];
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "provider_config", "metadata", "provider", "provider_config"];
|
|
93
|
+
readonly additionalProperties: false;
|
|
94
|
+
};
|
|
95
|
+
export type HfInferenceModelRecord = FromSchema<typeof HfInferenceModelRecordSchema>;
|
|
96
|
+
export declare const HfInferenceModelConfigSchema: {
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly model_id: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
};
|
|
102
|
+
readonly tasks: {
|
|
103
|
+
readonly type: "array";
|
|
104
|
+
readonly items: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
};
|
|
107
|
+
readonly "x-ui-editor": "multiselect";
|
|
108
|
+
};
|
|
109
|
+
readonly title: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
};
|
|
112
|
+
readonly description: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly "x-ui-editor": "textarea";
|
|
115
|
+
};
|
|
116
|
+
readonly metadata: {
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly default: {};
|
|
119
|
+
readonly "x-ui-hidden": true;
|
|
120
|
+
};
|
|
121
|
+
readonly provider: {
|
|
122
|
+
readonly const: "HF_INFERENCE";
|
|
123
|
+
readonly description: "Discriminator: Hugging Face Inference API provider.";
|
|
124
|
+
};
|
|
125
|
+
readonly provider_config: {
|
|
126
|
+
readonly type: "object";
|
|
127
|
+
readonly description: "Hugging Face Inference-specific configuration.";
|
|
128
|
+
readonly properties: {
|
|
129
|
+
readonly model_name: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
readonly description: "The Hugging Face model identifier (e.g., 'meta-llama/Llama-3.3-70B-Instruct').";
|
|
132
|
+
};
|
|
133
|
+
readonly credential_key: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly format: "credential";
|
|
136
|
+
readonly description: "Key to look up in the credential store for the API key.";
|
|
137
|
+
readonly "x-ui-hidden": true;
|
|
138
|
+
};
|
|
139
|
+
readonly provider: {
|
|
140
|
+
readonly type: "string";
|
|
141
|
+
readonly description: "Optional provider to route to specific HF inference providers (e.g., 'fal-ai', 'fireworks-ai').";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly required: readonly ["model_name"];
|
|
145
|
+
readonly additionalProperties: false;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly required: readonly ["provider", "provider_config", "provider", "provider_config"];
|
|
149
|
+
readonly additionalProperties: false;
|
|
150
|
+
};
|
|
151
|
+
export type HfInferenceModelConfig = FromSchema<typeof HfInferenceModelConfigSchema>;
|
|
152
|
+
//# sourceMappingURL=HFI_ModelSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_ModelSchema.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_ModelSchema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGzE,eAAO,MAAM,sBAAsB;mBAC3B,QAAQ;;iBAEZ,QAAQ;qBACN,KAAK;qBACL,WAAW,EAAE,qDAAqD;;iBAEpE,eAAe;qBACb,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gDAAgD;qBAC7D,UAAU;yBACR,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,gFAAgF;;yBAEpF,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,MAAM,EAAE,YAAY;6BACpB,WAAW,EAAE,yDAAyD;6BACtE,aAAa;;yBAEf,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,iGAAiG;;;qBAGvG,QAAQ;qBACR,oBAAoB;;;;;CAKe,CAAC;AAE1C,eAAO,MAAM,4BAA4B;mBACjC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBAjCV,KAAK;qBACL,WAAW,EAAE,qDAAqD;;;qBAGlE,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gDAAgD;qBAC7D,UAAU;yBACR,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,gFAAgF;;yBAEpF,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,MAAM,EAAE,YAAY;6BACpB,WAAW,EAAE,yDAAyD;6BACtE,aAAa;;yBAEf,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,iGAAiG;;;qBAGvG,QAAQ;qBACR,oBAAoB;;;;;CAee,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,4BAA4B;mBACjC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBA7CV,KAAK;qBACL,WAAW,EAAE,qDAAqD;;;qBAGlE,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gDAAgD;qBAC7D,UAAU;yBACR,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,gFAAgF;;yBAEpF,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,MAAM,EAAE,YAAY;6BACpB,WAAW,EAAE,yDAAyD;6BACtE,aAAa;;yBAEf,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,iGAAiG;;;qBAGvG,QAAQ;qBACR,oBAAoB;;;;;CA2Be,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,4BAA4B,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 HFI_ModelSearch: AiProviderRunFn<ModelSearchTaskInput, ModelSearchTaskOutput>;
|
|
8
|
+
//# sourceMappingURL=HFI_ModelSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_ModelSearch.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_ModelSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AA6BtB,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,oBAAoB,EAAE,qBAAqB,CA2BxF,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, TextEmbeddingTaskInput, TextEmbeddingTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_TextEmbedding: AiProviderRunFn<TextEmbeddingTaskInput, TextEmbeddingTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
//# sourceMappingURL=HFI_TextEmbedding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_TextEmbedding.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_TextEmbedding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAC7C,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,CAyCvB,CAAC"}
|
|
@@ -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, TextGenerationTaskInput, TextGenerationTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_TextGeneration: AiProviderRunFn<TextGenerationTaskInput, TextGenerationTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
export declare const HFI_TextGeneration_Stream: AiProviderStreamFn<TextGenerationTaskInput, TextGenerationTaskOutput, HfInferenceModelConfig>;
|
|
10
|
+
//# sourceMappingURL=HFI_TextGeneration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAC9C,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,CA2BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,CACxD,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,CA0BvB,CAAC"}
|
|
@@ -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, TextRewriterTaskInput, TextRewriterTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_TextRewriter: AiProviderRunFn<TextRewriterTaskInput, TextRewriterTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
export declare const HFI_TextRewriter_Stream: AiProviderStreamFn<TextRewriterTaskInput, TextRewriterTaskOutput, HfInferenceModelConfig>;
|
|
10
|
+
//# sourceMappingURL=HFI_TextRewriter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_TextRewriter.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_TextRewriter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAC5C,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,CAqBvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,CACtD,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,CAyBvB,CAAC"}
|
|
@@ -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, TextSummaryTaskInput, TextSummaryTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_TextSummary: AiProviderRunFn<TextSummaryTaskInput, TextSummaryTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
export declare const HFI_TextSummary_Stream: AiProviderStreamFn<TextSummaryTaskInput, TextSummaryTaskOutput, HfInferenceModelConfig>;
|
|
10
|
+
//# sourceMappingURL=HFI_TextSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_TextSummary.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_TextSummary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE,eAAO,MAAM,eAAe,EAAE,eAAe,CAC3C,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CAqBvB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAAkB,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CAyBvB,CAAC"}
|
|
@@ -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, ToolCallingTaskInput, ToolCallingTaskOutput } from "@workglow/ai";
|
|
7
|
+
import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
|
|
8
|
+
export declare const HFI_ToolCalling: AiProviderRunFn<ToolCallingTaskInput, ToolCallingTaskOutput, HfInferenceModelConfig>;
|
|
9
|
+
export declare const HFI_ToolCalling_Stream: AiProviderStreamFn<ToolCallingTaskInput, ToolCallingTaskOutput, HfInferenceModelConfig>;
|
|
10
|
+
//# sourceMappingURL=HFI_ToolCalling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HFI_ToolCalling.d.ts","sourceRoot":"","sources":["../../../src/ai-provider/common/HFI_ToolCalling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EAGtB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAYhE,eAAO,MAAM,eAAe,EAAE,eAAe,CAC3C,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CA0DvB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAAkB,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CA+FvB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export * from "./common/HFI_AspectRatio";
|
|
7
|
+
export * from "./common/HFI_Constants";
|
|
8
|
+
export * from "./common/HFI_ImageValidation";
|
|
9
|
+
export * from "./common/HFI_ModelSchema";
|
|
10
|
+
export * from "./common/HFI_ModelSearch";
|
|
11
|
+
export * from "./registerHfInference";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai-provider/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}
|
|
@@ -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 { AiProviderRegisterOptions } from "@workglow/ai";
|
|
7
|
+
export declare function registerHfInference(options: AiProviderRegisterOptions & {
|
|
8
|
+
worker: Worker | (() => Worker);
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
//# sourceMappingURL=registerHfInference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerHfInference.d.ts","sourceRoot":"","sources":["../../src/ai-provider/registerHfInference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAK9D,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,yBAAyB,GAAG;IACnC,MAAM,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;CACjC,GACA,OAAO,CAAC,IAAI,CAAC,CAOf"}
|
|
@@ -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 { AiProviderRegisterOptions } from "@workglow/ai";
|
|
7
|
+
export declare function registerHfInferenceInline(options?: AiProviderRegisterOptions): Promise<void>;
|
|
8
|
+
//# sourceMappingURL=registerHfInferenceInline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerHfInferenceInline.d.ts","sourceRoot":"","sources":["../../src/ai-provider/registerHfInferenceInline.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAM9D,wBAAsB,yBAAyB,CAC7C,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,IAAI,CAAC,CAOf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerHfInferenceWorker.d.ts","sourceRoot":"","sources":["../../src/ai-provider/registerHfInferenceWorker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC,CAK/D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Worker server and main-thread inline Hugging Face Inference registration (pulls in `HFI_JobRunFns`),
|
|
8
|
+
* plus API client helpers (`HFI_Client`).
|
|
9
|
+
* Import from `@workglow/huggingface-inference/ai-provider-runtime` — not from the main `hf-inference` barrel.
|
|
10
|
+
*
|
|
11
|
+
* Use `export *` (not `export { … } from "…"`) so the Bun bundler keeps the module graph.
|
|
12
|
+
*/
|
|
13
|
+
export * from "./common/HFI_Client";
|
|
14
|
+
export * from "./registerHfInferenceInline";
|
|
15
|
+
export * from "./registerHfInferenceWorker";
|
|
16
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/ai-provider/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-provider-runtime.d.ts","sourceRoot":"","sources":["../src/ai-provider-runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAC"}
|