Rewriter API not accepting "as-in" as value for tone

21 views
Skip to first unread message

Yash

unread,
Oct 15, 2025, 8:37:58 AM (11 days ago) Oct 15
to Chrome Built-in AI Early Preview Program Discussions
Hello,

I have seen the documentation and code (rewriter and writer playground) for Rewriter and Writer API but when I am creating a Rewriter with tone: "as-in", It is showing an error saying "as-in" is not a correct Enum value. Documentation clearly shows "as-in" as a correct value

Error message in screenshot.

Thanks





Screenshot 2025-10-15 180735.png

Thomas Steiner

unread,
Oct 15, 2025, 8:56:08 AM (11 days ago) Oct 15
to Yash, Chrome Built-in AI Early Preview Program Discussions
Hi Yash,

I think that's a typo in your code; it should be "as-is" and not "as-in".

Cheers,
Tom

--
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/24011762-0d26-471b-a6b6-1f1158d10542n%40chromium.org.


--
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 -----

Yash

unread,
Oct 15, 2025, 8:59:04 AM (11 days ago) Oct 15
to Chrome Built-in AI Early Preview Program Discussions, Thomas Steiner, Yash
I am very sorry.🙏 
I spent like 1-2 hours behind this and lost my mind. 
Very sorry for inconvenience.

Thomas Steiner

unread,
Oct 15, 2025, 9:07:47 AM (11 days ago) Oct 15
to Yash, Chrome Built-in AI Early Preview Program Discussions, Thomas Steiner
We've all been there, glad it's working now :-)

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 -----
Reply all
Reply to author
Forward
0 new messages