Caution
As of chrome 130.0 (or even earlier), this demo does no longer work due to an API change
Chat with gemini locally without needing an internet connection using window.ai
.
- Install Chrome Canary version >= 127
- Set your browser language to
English US
- Enable Prompt API: In
chrome://flags
, findprompt api for gemini nano
and set it toenabled
. Do not restart the browser - Enable Optimization Guide: Once again in chrome flags find
optimization guide on device model
and set it toEnabled BypassPerfRequirement
. Restart the browser - Download the model: Go to
chrome://components
and findoptimization guide on device model
. Press on check for update and wait till its installed.