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.
The extension provides a chat interface using the Prompt API with Chrome's built-in Gemini Nano model.
- 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.