responseConstraint is concated to the end of the last message instead of being separate

15 views
Skip to first unread message

Die4Ever2005

unread,
Jul 25, 2025, 5:47:50 PMJul 25
to Chrome Built-in AI Early Preview Program Discussions
Example from chrome://on-device-internals/

<user>hello here is my message Remember to respond in JSON that follows this "JSON Schema" specification: {"type":"object","required": [etc...] <end><model>

The JSON Schema prompt is inside of the last message's <user> block instead of being separated, making it look like the user is saying the JSON schema

Clark Duvall

unread,
Jul 25, 2025, 5:52:11 PMJul 25
to Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions
Are you seeing bad results with this method? If you have examples where this isn't working well we can modify the approach. Also note if you don't want that bit added you can use `omitResponseConstraintInput: true` in the prompt options.

--
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/a36b2cc4-b066-4916-9796-ebf3c2185165n%40chromium.org.

Die4Ever2005

unread,
Jul 25, 2025, 5:57:20 PMJul 25
to Chrome Built-in AI Early Preview Program Discussions, Clark Duvall, Chrome Built-in AI Early Preview Program Discussions, Die4Ever2005

I saw bad results but I'm just testing now with omitResponseConstraintInput: true to see if it makes the difference, I replicated the same prompt text but inside the system prompt instead.
Reply all
Reply to author
Forward
0 new messages