Chrome just added `window.ai` that redirects JavaScript calls to Gemini Nano, running locally, inside the browser. 😳
```
const model = await window.ai.createTextSession();
await model.prompt("Who are you?");
What if the AI doesn't like your JavaScript calls? What if the AI is in a bad mood and doesn't want to play?
Please Login to reply.
No replies yet.