Video by Hugging Face via YouTube

Structured output is here. The new @huggingface/transformers-structured-output package hooks into token generation and makes sure every token follows your JSON Schema or regex.
Full walkthrough in the linked video.
npm: https://www.npmjs.com/package/@huggingface/transformers-structured-output
Release notes: https://github.com/huggingface/transformers.js/releases/tag/4.3.0
#transformersjs #huggingface #javascript #llm #webgpu