Update samplingMode preset documentation and WebIDL enum - #210
Open
isaacahouma wants to merge 1 commit into
Open
Update samplingMode preset documentation and WebIDL enum#210isaacahouma wants to merge 1 commit into
isaacahouma wants to merge 1 commit into
Conversation
isaacahouma
requested review from
michaelwasserman and
reillyeon
and removed request for
reillyeon
July 28, 2026 20:56
reillyeon
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal: Add intermediate sampling modes (
slightly-predictableandslightly-creative)This PR expands the Prompt API's
LanguageModelSamplingModeenum with two intermediate presets to cover the gaps in the preset spectrum:slightly-predictable: For focused outputs with a bit more variation thanpredictable.slightly-creative: For creative outputs that are slightly more focused thancreative.Spec & Explainer Changes:
slightly-predictableandslightly-creativein theLanguageModelSamplingModeWebIDL enum inindex.bs.README.mdexplainer.💥 Error: 422 Unprocessable Entity 💥
PR Preview failed to build. (Last tried on Jul 28, 2026, 8:56 PM UTC).
More
PR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 Spec Generator - Spec Generator is the web service used to build bikeshed/ReSpec specs
🔗 Related URL
Error output:
[ { "lineNum": "329:44", "messageType": "link", "text": "Multiple possible 'getting the language availabilities partition' dfn refs.\nArbitrarily chose https://webmachinelearning.github.io/proofreader-api/#get-the-language-availabilities-partition\nTo auto-select one of the following refs, insert one of these lines into a <pre class=link-defaults> block:\nspec:proofreader-api; type:dfn; text:get the language availabilities partition\nspec:writing-assistance-apis; type:dfn; text:get the language availabilities partition" }, { "lineNum": "331:45", "messageType": "link", "text": "Multiple possible 'getting the language availabilities partition' dfn refs.\nArbitrarily chose https://webmachinelearning.github.io/proofreader-api/#get-the-language-availabilities-partition\nTo auto-select one of the following refs, insert one of these lines into a <pre class=link-defaults> block:\nspec:proofreader-api; type:dfn; text:get the language availabilities partition\nspec:writing-assistance-apis; type:dfn; text:get the language availabilities partition" }, { "lineNum": "335:59", "messageType": "link", "text": "Multiple possible 'computing language availability' dfn refs.\nArbitrarily chose https://webmachinelearning.github.io/proofreader-api/#compute-language-availability\nTo auto-select one of the following refs, insert one of these lines into a <pre class=link-defaults> block:\nspec:proofreader-api; type:dfn; text:compute language availability\nspec:writing-assistance-apis; type:dfn; text:compute language availability" }, { "lineNum": "342:60", "messageType": "link", "text": "Multiple possible 'computing language availability' dfn refs.\nArbitrarily chose https://webmachinelearning.github.io/proofreader-api/#compute-language-availability\nTo auto-select one of the following refs, insert one of these lines into a <pre class=link-defaults> block:\nspec:proofreader-api; type:dfn; text:compute language availability\nspec:writing-assistance-apis; type:dfn; text:compute language availability" }, { "lineNum": null, "messageType": "failure", "text": "Did not generate, due to errors exceeding the allowed error level." } ]This seems to be an issue with the Spec Generator service. PR Preview doesn't manage this service and so has no control over it. If you've identified an issue with it, you can report the issue to the maintainers of Spec Generator directly. Please be courteous. Thank you!
If you don't have enough information above to solve the error by yourself or if the issue doesn't seem related to Spec Generator, you can file an issue with PR Preview.