Skip to content
1 min read · 46 words

Variable: E_TRANSFORMERS_JS_GENERATION_ENGINE_ERROR ​

ts
const E_TRANSFORMERS_JS_GENERATION_ENGINE_ERROR: CreatedException<[string]>;

Defined in: src/batteries/generation/transformers_js/exceptions.ts:37

Thrown when the transformers.js model/processor fail to load (e.g. the @huggingface/transformers peer is not installed), the generate_images call throws, or the result is malformed/empty (no images returned is an engine failure, not a valid empty result). Non-fatal. Printf arg: [detail].