Skip to main content

build

Function build 

Source
pub fn build(cfg: &Config) -> Result<Box<dyn Engine>>
Expand description

Build the engine for this worker.

There’s no engine selection knob in the config any more: the worker advertises capabilities for every backend compiled into this binary, and routes each incoming job to the first backend that supports its (kind, model) pair. See multi::MultiEngine.

The default build ships only the synthetic engine. Optional backends (llama, whisper, image-candle, video, tts) are added when their cargo features are enabled.