mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
* add audio scribe sample * Fix wrong parameter name * Cleanup and more robust audio scribe * better manifest descriptions * demo chat app clean up
On-device AI with Gemini Nano
This sample demonstrates how to use the Gemini Nano prompt API in Chrome Extensions. To learn more about the API, head over to Built-in AI on developer.chrome.com.
Overview
The extension provides a chat interface using the Prompt API with Chrome's built-in Gemini Nano model.
Running this extension
- Clone this repository.
- Run
npm installin the project directory. - Run
npm run buildin the project directory to build the extension. - Load the newly created
distdirectory in Chrome as an unpacked extension. - Click the extension icon.
- Interact with the Prompt API in the sidebar.