Issue in docs concerning ai.assistant

48 views
Skip to first unread message

Raymond Camden

unread,
Feb 10, 2025, 1:21:21 PMFeb 10
to Chrome Built-in AI Early Preview Program Discussions
From the Getting Started, https://developer.chrome.com/docs/ai/get-started, it says you can test in Chrome (after setting the flag) with:

(await ai.assistant.capabilities()).available;

However, this fails with an undefined error. If I inspect the ai object, I can see multiple items like the writer and rewriter, but not assistant. Is this just a case of an out of date doc?

Interestingly enough, in Edge, where I've never tested/enabled any thing related to this, it works. :) 

Thomas Steiner

unread,
Feb 10, 2025, 1:33:13 PMFeb 10
to Raymond Camden, Chrome Built-in AI Early Preview Program Discussions
Hey Ray,

Oops, thanks for the heads up. This should read self.ai.languageModel. I'll fix it when I get back to my desk. 

Cheers,
Tom

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

Google Germany GmbH, ABC-Str. 19, 20354 Hamburg, Germany
Geschäftsführer: Paul Manicle, Liana Sebastian
Registergericht und -nummer: Hamburg, HRB 86891

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

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

--
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/7ce510df-7b6e-472d-b071-ac961aa1884dn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages