From fb0117075ee6b619022c12641ea961308e7143e7 Mon Sep 17 00:00:00 2001 From: Isaac Ahouma Date: Tue, 28 Jul 2026 09:53:04 -0700 Subject: [PATCH] Update samplingMode preset documentation and WebIDL enum --- README.md | 2 ++ index.bs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d62ecd5..b28f836 100644 --- a/README.md +++ b/README.md @@ -465,7 +465,9 @@ Developers can specify a high-level `samplingMode` during session creation to co The allowed values for `samplingMode` are: * `"most-predictable"`: For tasks requiring strict consistency and reproducibility (e.g. testing, code generation, or content extraction). * `"predictable"`: For focused outputs with minimal variation. +* `"slightly-predictable"`: For focused outputs with a bit more variation than `"predictable"`. * `"balanced"` (default): The standard preset for most conversational interactions. +* `"slightly-creative"`: For creative outputs that are slightly more focused than `"creative"`. * `"creative"`: For tasks where variety and creativity are preferred over strict reproducibility. * `"most-creative"`: For maximum diversity of output and creative brainstorming. diff --git a/index.bs b/index.bs index 424376d..a49a955 100644 --- a/index.bs +++ b/index.bs @@ -176,7 +176,7 @@ dictionary LanguageModelMessageContent { required LanguageModelMessageValue value; }; -enum LanguageModelSamplingMode { "most-predictable", "predictable", "balanced", "creative", "most-creative" }; +enum LanguageModelSamplingMode { "most-predictable", "predictable", "slightly-predictable", "balanced", "slightly-creative", "creative", "most-creative" }; enum LanguageModelMessageRole { "system", "user", "assistant" };