An AI chatbot in the Chrome DevTools JavaScript console. Uses Chrome's experimental Prompt API (a.k.a. Chrome Built-in AI), which is a small Large Language Model like ChatGPT, built directly into the browser. View source code on GitHub.
chrome://flags
.chrome://components
.await ai.createTextSession()
into the console. This seems to be a weird hack to "force" Chrome into enabling the Built-in AI feature and somehow worked for me.chrome://components
, click the "Check for updates" button beneath it and wait until the model has finished downloading. This will take a few minutes.