Files
chrome-extensions-samples/functional-samples/ai.gemini-on-device
Sebastian Benz a8aec773d8 add audio scribe sample (#1475)
* add audio scribe sample

* Fix wrong parameter name

* Cleanup and more robust audio scribe

* better manifest descriptions

* demo chat app clean up
2025-05-20 08:37:50 +02:00
..
2024-07-22 17:44:44 +00:00
2024-11-08 15:35:27 +01:00
2024-07-22 17:44:44 +00:00
2025-05-20 08:37:50 +02:00
2024-11-08 15:35:27 +01:00

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

  1. Clone this repository.
  2. Run npm install in the project directory.
  3. Run npm run build in the project directory to build the extension.
  4. Load the newly created dist directory in Chrome as an unpacked extension.
  5. Click the extension icon.
  6. Interact with the Prompt API in the sidebar.