mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
Add new AI samples and update existing to use new API shape (#1474)
* Add new AI samples and update existing to use new API shape * address comments
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Calendar Mate: On-device AI with Gemini Nano
|
||||
|
||||
This sample demonstrates how to use the Gemini Nano prompt API for Chrome Extensions. To learn more about the API, head over to [Built-in AI on developer.chrome.com](https://developer.chrome.com/docs/extensions/ai/prompt-api).
|
||||
|
||||
## 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.
|
||||
1. Run `npm install` in the project directory.
|
||||
1. Run `npm run build` in the project directory to build the extension.
|
||||
1. Load the newly created `dist` directory in Chrome as an [unpacked extension](https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked).
|
||||
1. Click the extension icon.
|
||||
1. Interact with the Prompt API in the sidebar.
|
||||
|
||||
## Creating your own extension
|
||||
|
||||
If you use this sample as the foundation for your own extension, be sure to update the `"trial_tokens"` field [with your own origin trial token](https://developer.chrome.com/docs/web-platform/origin-trials#extensions) and to remove the `"key"` field in `manifest.json`.
|
||||
Reference in New Issue
Block a user