Expected output warnings

16 views
Skip to first unread message

Raymond Camden

unread,
Aug 29, 2025, 1:06:49 PM (9 days ago) Aug 29
to Chrome Built-in AI Early Preview Program Discussions
In console, I'm getting: 

No output language was specified in a LanguageModel API request. An output language should be specified to ensure optimal output quality and properly attest to output safety. Please specify a supported output language code: [en, es, ja]

Seems clear enough, and per the docs, I added expectedOutputs:

session = await LanguageModel.create({
initailPrompts: [{
role:"system",
content:"long string not relevant to post."
}],
expectedInputs: [ {type:"image" }],
expectedOutputs: [{
    type: "text",
    languages: ["en"]
}],
monitor(m) {
m.addEventListener('downloadprogress', e => {
console.log(`AI model downloaded ${e.loaded * 100}%`);
if(e === 1) doAISummary(pages, reader, binreader);
});
}
});

However, this still shows up in console. Am I using expectedOutputs incorrectly?

Thomas Steiner

unread,
Aug 29, 2025, 1:09:36 PM (9 days ago) Aug 29
to Raymond Camden, Chrome Built-in AI Early Preview Program Discussions
I have encountered this as well. It seems like a race condition somehow, because I sometimes get it, and I sometimes don't. Could you file a new.crbug.com, please? Thanks in advance!

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

--
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/76220e40-9ee7-4552-ab83-908fa0fdf8c2n%40chromium.org.

Raymond Camden

unread,
Aug 29, 2025, 1:14:06 PM (9 days ago) Aug 29
to Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
--
===========================================================================
Raymond Camden

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: raymondcamden

Thomas Steiner

unread,
Aug 29, 2025, 1:18:45 PM (9 days ago) Aug 29
to Raymond Camden, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Thanks so much! Commented and updated the component for triage. 

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

Roland Bouman

unread,
Aug 29, 2025, 4:35:18 PM (9 days ago) Aug 29
to Chrome Built-in AI Early Preview Program Discussions, Raymond Camden
Respectfully, 

you seem to have a typo in the member name.

It's "initialPrompts". Not "initailPrompts"

Raymond Camden

unread,
Aug 29, 2025, 4:56:40 PM (9 days ago) Aug 29
to Roland Bouman, Chrome Built-in AI Early Preview Program Discussions
Nod - got that in the other thread. :) Don't think it applies to this thread though. 
Reply all
Reply to author
Forward
0 new messages