Prompt API: Sampling Mode Presets

Real-time comparative playground, mode-specific performance metrics & variance benchmark

Spec Issue #203 Prompt API Explainer
Detecting Prompt API Environment...
๐Ÿ› ๏ธ Google Chrome Built-in AI Activation Guide (Choose Method A or B)
Method A: Configure via chrome://flags & chrome://settings/ai
  • 1. Enable Prompt API Flag:
    chrome://flags/#prompt-api
    Set to Enabled (for localhost or non-OT origins, also enable chrome://flags/#prompt-api-sampling-mode).
  • 2. Enable On-Device AI Setting:
    chrome://settings/ai
    Turn On-device AI toggle ON (requires ≥20 GB free disk space for initial install).
  • 3. Download & Inspect Model:
    chrome://on-device-internals
    Click Download On-Device Model above, or inspect Broker State (enable debug pages at chrome://chrome-urls first) and Optimization Guide On DeviceModels Manifest in chrome://components.
Method B: Launch from Terminal with Command-Line Flags
Chrome Canary / Dev:
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-blink-features=AIPromptAPI,AIPromptAPIParams https://isaacahouma.github.io/prompt-api-sampling-presets/
Local Chromium Build:
$CHROMIUM_SRC/out/Default/Chromium.app/Contents/MacOS/Chromium --enable-blink-features=AIPromptAPI,AIPromptAPIParams https://isaacahouma.github.io/prompt-api-sampling-presets/
On a fresh profile, also toggle On-device AI ON in chrome://settings/ai.

Categorical Presets Spectrum

Canonical Order: most-predictable (Deterministic) → most-creative (Maximum Novelty)
Prompt & Mode Setup
โšก Live Playground
๐ŸŽฏ Multi-Run Determinism
๐Ÿ“Š Vocabulary & Diversity Analysis
๐Ÿ“‹ Spec & Code Reference
Select your desired presets and click "Run Comparison" to stream outputs side-by-side in spectrum order.