demo · v138
Format and length
The Summarizer accepts three knobs that shape the output: type (key-points / tldr / teaser / headline), format (plain-text / markdown), and length (short / medium / long). Side-by-side comparison of two configurations on the same input.
On-device model. First call may need to download the model. If the API is missing, the demo runs a heuristic summariser so the UI still demonstrates the configuration surface.
checking Summarizer availability…
config A:
awaiting…
config B: headline + short + plain-text
awaiting…
the call
const summariser = await Summarizer.create({
type: "key-points", // key-points | tldr | teaser | headline
format: "markdown", // markdown | plain-text
length: "medium", // short | medium | long
});
const summary = await summariser.summarize(longArticle);
see also
- Summarizer API — feature index
- Summarizer basics
- ChromeStatus entry