Summarizer API isn't working

64 views
Skip to first unread message

sophie

unread,
Oct 30, 2025, 9:54:18 PMOct 30
to Chrome Built-in AI Early Preview Program Discussions
I'm trying to use the summarize API. I've already followed all the instructions as listed here, but the error continues to pop up. I've restarted as well. In the summarize API diagnostics page, it seems that the count is going up, but it doesn't actually return results. What can / should I do?Screenshot 2025-10-30 at 21.50.08.png
Screenshot 2025-10-30 at 21.52.12.png
Screenshot 2025-10-30 at 21.52.48.png

Connie Leung

unread,
Oct 30, 2025, 10:05:26 PMOct 30
to sophie, Chrome Built-in AI Early Preview Program Discussions
Follow the error message and add outputLanguage: ["en"] in Sumarizer.create()

On Fri, 31 Oct 2025, 9:54 am sophie, <sophie...@gmail.com> wrote:
I'm trying to use the summarize API. I've already followed all the instructions as listed here, but the error continues to pop up. I've restarted as well. In the summarize API diagnostics page, it seems that the count is going up, but it doesn't actually return results. What can / should I do?Screenshot 2025-10-30 at 21.50.08.png

--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/c3a9a65c-ad48-4755-a8f3-70154cd1fa4en%40chromium.org.

Kenji Baheux

unread,
Oct 30, 2025, 11:17:57 PMOct 30
to sophie, Chrome Built-in AI Early Preview Program Discussions
Hi Sophie,

In the screenshot of your app / extension, I see mentions of window.ai and self.ai.

We have long moved away from this namespace. Our APIs are now directly available as can be seen in the other screenshot where you tried Summarizer.create()

I suspect that the code for your app / extension is using window.ai or self.ai


Please refer to the latest docs: 


Kenji BAHEUX (my how-to)
Product Manager - Chrome
Google Japan

Connie Leung

unread,
Oct 30, 2025, 11:34:58 PMOct 30
to Kenji Baheux, sophie, Chrome Built-in AI Early Preview Program Discussions

Connie Leung

unread,
Oct 30, 2025, 11:37:35 PMOct 30
to Kenji Baheux, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Kenji and Tom,

I mentioned to Andre that people are finding outdated tutorials that use window.ai.X instead of X.create()/X.availability().  It is happening more frequently as the hackathon deadline approaches.  

Connie

Kenji Baheux

unread,
Oct 31, 2025, 12:54:31 AMOct 31
to Connie Leung, sophie, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
I wonder if it's online tutorials or LLMs with obsolete knowledge.

Sophie, can you help us understand which it might be?
Are you using an online doc / article, or are you using an LLM / Cloud AI service to vibe code something (which one)?

--

Thomas Steiner

unread,
Oct 31, 2025, 7:48:23 AMOct 31
to Kenji Baheux, Connie Leung, sophie, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Since the screenshot shows both, window.ai and also the current implementation like Summarizer.createe(), it may be an attempt at feature-detecting the old and the new API. It looks like the UI relies on the outdated feature detection logic alone, though.

Again, please rely only on the documentation you find linked here: https://developer.chrome.com/docs/ai/built-in-apis?hl=en#api_status. Feel free of course to feed it into your LLM of choice, but please don't blindly trust anything that spits out window.ai in October 2025. 

Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Spain, S.L.U.
Torre Picasso, Pl. Pablo Ruiz Picasso, 1, Tetuán, 28020 Madrid, Spain

CIF: B63272603
Inscrita en el Registro Mercantil de Madrid, sección 8, Hoja M­-435397 Tomo 24227 Folio 25

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.8 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjuSinmBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.
----- END PGP SIGNATURE -----

sophie

unread,
Oct 31, 2025, 8:38:07 AMOct 31
to Chrome Built-in AI Early Preview Program Discussions, Connie Leung, sophie, Chrome Built-in AI Early Preview Program Discussions, Kenji Baheux
Thank you. I see the documentation mentions support for multiple languages, but the code only includes examples in English, Japanese, and Spanish. Could you please tell me which languages ​​are specifically supported?

Thomas Steiner

unread,
Oct 31, 2025, 9:15:43 AMOct 31
to sophie, Chrome Built-in AI Early Preview Program Discussions, Connie Leung, Kenji Baheux
Hi Sophie,

You can dynamically find out:

await Summarizer.availability({
  type: "key-points",
  expectedInputLanguages: ["en", "ja", "es"],
  outputLanguage: "es",
  expectedContextLanguages: ["en"],
  sharedContext: "These are requests to summarize articles from a multilanguage newspaper. The users expect a response in Spanish."
});

// "available"

Cheers,
Tom

Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Spain, S.L.U.
Torre Picasso, Pl. Pablo Ruiz Picasso, 1, Tetuán, 28020 Madrid, Spain

CIF: B63272603
Inscrita en el Registro Mercantil de Madrid, sección 8, Hoja M­-435397 Tomo 24227 Folio 25

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.8 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjumBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.

sophie

unread,
Oct 31, 2025, 11:21:30 AMOct 31
to Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions, Connie Leung, Kenji Baheux
Hi Thomas,

This is precisely what's confusing me. This part of the code seems to only support three languages, but when I tested it in Playground, it supported other languages as well. So I want to know exactly which languages are supported, as this would help me clarify which languages my product supports.

Best,
Sophie

Thomas Steiner

unread,
Oct 31, 2025, 11:26:36 AMOct 31
to sophie, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions, Connie Leung, Kenji Baheux
Hi Sophie,

Currently querying the `availability()` of your desired languages combination is the only way, but I have opened an Issue asking for a way to make this more ergonomic: https://github.com/webmachinelearning/prompt-api/issues/158. The Summarizer internally depends on the Prompt API, which right now supports English, Spanish, and Japanese.

Cheers,
Tom

Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Spain, S.L.U.
Torre Picasso, Pl. Pablo Ruiz Picasso, 1, Tetuán, 28020 Madrid, Spain

CIF: B63272603
Inscrita en el Registro Mercantil de Madrid, sección 8, Hoja M­-435397 Tomo 24227 Folio 25

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.8 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjumBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.
----- END PGP SIGNATURE -----

sophie

unread,
Oct 31, 2025, 1:57:46 PMOct 31
to Chrome Built-in AI Early Preview Program Discussions, Kenji Baheux, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions, Connie Leung, sophie
Thank you. After removing all instances of window.ai, and self.ai, the problem is solved and the feature is working correctly now.

For your team's context: initially, I had Claude directly scrape content from the internet and generate code according to my requirements. This step included `window.ai`. Then I downloaded the entire document (https://developer.chrome.com/docs/ai/summarizer-api#batch_summarization) and had Claude correct it based on the document content. At this point, `self.ai` appeared. We then read the document and checked the code ourselves, but because of the following code snippet, we couldn't make a clear judgment, so we tacitly allowed AI to use `self.ai`.

Screenshot 2025-10-31 at 08.38.27.png
Reply all
Reply to author
Forward
0 new messages