fix(provider-transformers): type

This commit is contained in:
Neko Ayaka
2025-03-28 16:09:35 +08:00
parent 935fea0bc1
commit 0320e4eacf
@@ -25,6 +25,7 @@ async function load(modelId: string, options?: Omit<PipelineOptionsFrom<typeof p
self.postMessage({ type: 'info', data: { message: `Using device: "${device}"` } } satisfies WorkerMessageEvent)
self.postMessage({ type: 'info', data: { message: 'Loading models...' } } satisfies WorkerMessageEvent)
// @ts-expect-error - TODO: TS2590: Expression produces a union type that is too complex to represent.
embed = await pipeline('feature-extraction', modelId, opts)
self.postMessage({ type: 'status', data: { status: MessageStatus.Ready, message: 'Ready!' } } satisfies WorkerMessageEvent)