You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Link to latest articles
* Add systemprompt to prompt sample to provide better guidance on simple
prompts such as 'hello'.
* Limit default topK to 3 (the default is currently set too high, this
will change).
* Fix setup instructions in the readmes.
This sample demonstrates how to use the experimental Summarization 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](https://developer.chrome.com/docs/ai/built-in).
3
+
This sample demonstrates how to use the experimental Summarization API in Chrome. To learn more about the API and how to sign-up for the preview, head over to the [summarizer guide on developer.chrome.com](https://developer.chrome.com/docs/ai/summarizer-api).
4
4
5
5
## Overview
6
6
@@ -9,8 +9,12 @@ The extension summarizes the content of the currently open tab. It uses Mozilla'
9
9
## Running this extension
10
10
11
11
1. Clone this repository
12
-
2. Run `npm install` in this folder to install all dependencies.
13
-
3. Run `npm run build` to bundle the content script .
14
-
4. Load the 'dist' directory in Chrome as an [unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked).
15
-
5. Click the extension icon to open the summary side panel.
16
-
6. Open any web page, the page's content summary will automatically be displayed in the side panel.
12
+
1. Run `npm install` in this folder to install all dependencies.
13
+
1. Run `npm run build` to build the extension.
14
+
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).
15
+
1. Click the extension icon to open the summary side panel.
16
+
1. Open any web page, the page's content summary will automatically be displayed in the side panel.
17
+
18
+
## Creating your own extension
19
+
20
+
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`.
This sample demonstrates how to use the experimental Gemini Nano API available in the context of an origin trial in Chrome with Chrome Extensions. To learn more about the API and how to sign-up for the origin trial, head over to [Built-in AI on developer.chrome.com](https://developer.chrome.com/docs/ai/built-in).
3
+
This sample demonstrates how to use the experimental Gemini Nano API available in the context of an origin trial in Chrome with Chrome Extensions. To learn more about the API and how to sign-up for the origin trial, head over to [Built-in AI on developer.chrome.com](https://developer.chrome.com/docs/extensions/ai/prompt-api).
4
4
5
5
## Overview
6
6
@@ -9,13 +9,12 @@ The extension provides a chat interface using the Prompt API with Chrome's built
9
9
## Running this extension
10
10
11
11
1. Clone this repository.
12
-
1. Launch Chrome with the following flag, which makes sure the origin trial token in `manifest.json` is accepted by the browser. This won't be necessary once the origin trial is live.
1. Load this directory in Chrome as an [unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked).
12
+
1. Run `npm install` in the project directory.
13
+
1. Run `npm run build` in the project directory to build the extension.
14
+
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).
16
15
1. Click the extension icon.
17
16
1. Interact with the Prompt API in the sidebar.
18
17
19
18
## Creating your own extension
20
19
21
-
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?hl=en#extensions) and to remove the `"key"` field in `manifest.json`.
20
+
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`.
0 commit comments