Skip to content

[Prompt API] Implement Categorical Sampling Modes#59615

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7801217
May 2, 2026
Merged

[Prompt API] Implement Categorical Sampling Modes#59615
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7801217

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 1, 2026

Give Prompt API clients a simple abstract enum to configure response
variety. Extends the ongoing Sampling Params origin trial with a more
interoperable design.

See webmachinelearning/prompt-api#203 for the
proposed presets. Please note that the initial values mapping to each
category are subject to changes upon more rigorous spec and evaluation.

Also ensure that categorical and legacy param options can not be
provided at the same time.

Bug: 502214118
Change-Id: I0b859090b33272fd038d8fc40e0e407160f0bcd2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7801217
Reviewed-by: Mike Wasserman <msw@chromium.org>
Commit-Queue: Isaac Ahouma <iahouma@google.com>
Reviewed-by: Fred Shih <ffred@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1624127}

Give Prompt API clients a simple abstract enum to configure response
variety. Extends the ongoing Sampling Params origin trial with a more
interoperable design.

See webmachinelearning/prompt-api#203 for the
proposed presets. Please note that the initial values mapping to each
category are subject to changes upon more rigorous spec and evaluation.

Also ensure that categorical and legacy param options can not be
provided at the same time.

Bug: 502214118
Change-Id: I0b859090b33272fd038d8fc40e0e407160f0bcd2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7801217
Reviewed-by: Mike Wasserman <msw@chromium.org>
Commit-Queue: Isaac Ahouma <iahouma@google.com>
Reviewed-by: Fred Shih <ffred@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1624127}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit f3ed78c into master May 2, 2026
23 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7801217 branch May 2, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants