chrome-extensions-samples/functional-samples/ai.gemini-on-device
Sebastian Benz cbfd8823fa
Migrate to new prompt API (#1264)
...also add a check whether the browser supports the prompt API.
2024-08-28 12:14:45 +02:00
..
images
sidepanel Migrate to new prompt API (#1264) 2024-08-28 12:14:45 +02:00
README.md
background.js
manifest.json

README.md

On-device AI with Gemini Nano

This sample demonstrates how to use the experimental Gemini Nano API in Chrome. To learn more about the API and how to sign-up for the preview, 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. Load this directory in Chrome as an unpacked extension.
  3. Click the extension icon.
  4. Interact with the prompt API in the sidebar.