/chrome-ai

Simple ai chat app made with new chrome Gemini browser api

Primary LanguageJavaScript

chrome-ai

Prerequisites

  • Chrome Dev Version: Ensure you're using Chrome Dev version 127 or higher. You can check your version by going to chrome://version. If you need to update, download the latest Dev version from the official Chrome channels: Chrome Dev

Enabling Chrome AI API Flags

  1. Access Chrome Flags: Open Chrome and navigate to chrome://flags/.

  2. Enable Prompt API for Gemini Nano:

    • In the search bar, type "prompt-api-for-gemini-nano".
    • From the dropdown menu next to the flag, select Enabled.
  3. Enable Optimization Guide - On Device Model:

    • In the search bar, type "optimization-guide-on-device-model".
    • From the dropdown menu next to the flag, select Enabled BypassPrefRequirement.
  4. Relaunch Chrome: Click the "Relaunch" button at the bottom of the page for the changes to take effect.

Step Description
Version Check Ensure you're using Chrome Dev version 127 or higher (see below)
Enable Flags 1. Open chrome://flags/
2. Enable "Prompt API for Gemini Nano"
3. Enable "Optimization Guide - On Device Model" (BypassPrefRequirement)
Relaunch Chrome Click the "Relaunch" button to apply the changes

Version Check: https://support.google.com/chrome/a/answer/10025748?hl=en