# Transformers.js 4.2.0 - Product: Transformers.js (https://whatsnew.fyi/product/transformers-js) - Vendor: Hugging Face - Date: 2026-04-23 - Version: 4.2.0 - Original notes: https://github.com/huggingface/transformers.js/releases/tag/4.2.0 - Permalink: https://whatsnew.fyi/product/transformers-js/releases/4.2.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Add tools parameter to TextGenerationPipeline - **changed** — Use inputMetadata API for simplified internals - **added** — Add support for OpenAI privacy filter model #### 🚀 Transformers.js v4.2 — Tool calling, simpler internals, and privacy filtering - Added `tools` to `TextGenerationPipeline` in [#1655](https://github.com/huggingface/transformers.js/pull/1655) - Use `inputMetadata` API for simplified internals in [#1657](https://github.com/huggingface/transformers.js/pull/1657) - Add support for OpenAI privacy filter model in [#1658](https://github.com/huggingface/transformers.js/pull/1658) **Full Changelog**: [4.1.0...4.2.0](https://github.com/huggingface/transformers.js/compare/4.1.0...4.2.0)