Chrome Gemini AI is a very simple project made with Next.JS in order to experiment with the new features of the Chrome browser with the Gemini AI model.
The project allows the user to chat with the Gemini AI model and tweak the model's parameters to see how it affects the model's responses.
A demo of the project can be found here. Also, a video demo can be found here.
To be able to run the project, you need to have the following things:
- Canary Chrome Browser (version 127 or higher)
- Activate - Prompt API for Gemini Nano: Set the flag in ENABLED - chrome://flags/#prompt-api-for-gemini-nano
- Activate - Optimization Guide On Device Model: Set the flag in Enabled BypassPerfRequirement - chrome://flags/#optimization-guide-on-device-model
- Download the model: Download the model in chrome://components and search for Optimization Guide On Device Model
After you have all the requirements, you can run the project and it should appear something like this:
Otherwise, if you don't have the requirements, it should appear something like this:
To deploy the project, you need to have the following things:
- Node.js (version 14 or higher)
- Next.js (version 14 or higher)
After you have all the requirements, you can run the following commands:
# Clone the repository
$ git clone https://github.com/Covicale/chrome-gemini-ai.git
# Go to the project directory and install the dependencies
$ cd chrome-gemini-ai
$ npm install
# Run the project
$ npm run dev

