Open DevTools and send (await ai.assistant.capabilities()).available; in the console.
If this returns “readily”, then you are all set.
If this fails, continue as follows:
📣🆕Force Chrome to recognize that you want to use this API. To do so, open DevTools and send await ai.assistant.create(); in the console. This will likely fail but it’s intended.
Relaunch Chrome.
Open a new tab in Chrome, go to chrome://components
Confirm that Gemini Nano is either available or is being downloaded
You'll want to see the Optimization Guide On Device Modelpresent with a version greater or equal to 2024.5.21.1031.
If there is no version listed, click on Check for update to force the download.
Once the model has downloaded and has reached a version greater than shown above, open DevTools and send (await ai.assistant.capabilities()).available; in the console. If this returns “readily”, then you are all set.
Otherwise, relaunch, wait for a little while, and try again from step 1.
ChromeのJavaScriptコンソールを開いて、以下を実行します。
(await ai.assistant.capabilities()).available;
readyと返されたらGemini Nanoが使えます。初めて構成する場合はnoと返されます。
JavaScriptコンソールから、以下を実行します。
await ai.assistant.create();
以下の画面はすでに構成済みなので、Promiseが返されています。
Chromeよりchrome://componentsを開きます。
Optimization Guide On Device Modelの項目を見つけて、最新のコンポーネントをダウンロードし、ステータスを最新にします。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters