Just wrapped up an incredible @wearedevs World Congress! 🚀 Excited to share my presentation on cutting-edge web technologies:
🌐 WebGPU
🧠 WebNN
🆕 Chrome’s Prompt API
Slides available here: https://www.thinktecture.com/contributions/generative-ai-power-on-the-web-making-web-apps-smarter-with-webgpu-and-webnn/
📢 On the Chrome team, we've published an Explainer for the planned Prompt API that gives developers access to a (small) language model (shipping with the browser or the operating system) from JavaScript: https://github.com/explainers-by-googlers/prompt-api/.
```js
const session = await ai.createTextSession();
// Prompt the model and stream the result:
const stream = await session.promptStreaming("Write me an extra-long poem.");
for await (const chunk of stream) {
console.log(chunk);
}
```