Skip to content

ngx-transformers API / ngx-transformers/worker / CreateRequest

Interface: CreateRequest

Defined in: worker/src/protocol.ts:6

Messages between the main thread (client.ts) and the worker (host.ts). Every request carries an id the response echoes; pipelines get a pipeId.

Properties

id

id: number

Defined in: worker/src/protocol.ts:8


model?

optional model?: string

Defined in: worker/src/protocol.ts:10


options

options: Record<string, unknown>

Defined in: worker/src/protocol.ts:12

Pipeline options without functions; progress is reported by message.


task

task: string

Defined in: worker/src/protocol.ts:9


type

type: "create"

Defined in: worker/src/protocol.ts:7

MIT licensed. Models come from the Hugging Face Hub under their own licenses; check the one you ship.