Create a component that will hold instruction information. Use the copy below only:
How to Set Up Built-in Gemini Nano in Chrome
Install Chrome Canary: Ensure you have version 127. Download Chrome Canary.
Enable Prompt API: Open chrome://flags/#prompt-api-for-gemini-nano, set it to "Enabled".
Enable Optimization Guide: Open chrome://flags/#optimization-guide-on-device-model, set it to "Enabled BypassPerfRequirement". Restart the browser.
Download Model: Go to chrome://components/, find "Optimization Guide On Device Model", ensure it’s fully downloaded. If the version is "0.0.0.0", click "Check for update".
Troubleshoot: If the "Optimization Guide On Device Model" is not displayed, disable the settings in steps 2 and 3, restart your browser and re-enable it.
Verify Setup: Open a webpage, press F12, and check window.ai in the console. | A shadcn/ui and v0 generation - v0