GithubHelp home page GithubHelp logo

myjwgit / chromegemini Goto Github PK

View Code? Open in Web Editor NEW

This project forked from debugtheworldbot/chromegemini

0.0 0.0 0.0 223 KB

Chrome AI Test Page, running Gemini Nano locally in your browser.

Home Page: https://chromeai.org

License: MIT License

JavaScript 0.10% TypeScript 99.02% CSS 0.88%

chromegemini's Introduction

Chrome AI

Overview

Chrome AI is a demo project that runs large language models locally within the browser. It showcases the capabilities of modern web technologies to leverage advanced AI functionalities directly in the browser environment without needing server-side processing.

Features

  • Local Execution: Runs large language models directly in the browser.
  • Real-time Processing: Provides instant responses and interactions.
  • Privacy-focused: Processes data locally, ensuring user privacy and data security.

Getting Started

Prerequisites

  • Latest version of Google Chrome (127+) or any compatible Chromium-based browser.

How to Set Up Built-in Gemini Nano in Chrome

  1. Install Chrome Canary: Ensure you have version 127. Download Chrome Canary.
  2. Enable Prompt API: Open chrome://flags/#prompt-api-for-gemini-nano, set it to "Enabled".
  3. Enable Optimization Guide: Open chrome://flags/#optimization-guide-on-device-model, set it to "Enabled BypassPerfRequirement". Restart the browser.
  4. Login to Google: Make sure you are logged in to Chrome. For now, Incognito and Guest mode are not supported.
  5. 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".
  6. 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.
  7. Verify Setup: Open a webpage, press F12, and check window.ai in the console.

Usage

Clone the repository:

git clone [email protected]:debugtheworldbot/chromegemini.git
cd chromegemini
pnpm i
pnpm dev

Open localhost:3000 in your browser to start using the AI.

Contributing

We welcome contributions! Please fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

If you want to know more about chrome ai or have any feedback, please join ours Discord.

Special Thanks

This project is based on chromeai by Lightning Joyce.

The original project is licensed under the MIT License. See the LICENSE file for more details.

More Chrome AI project

chromegemini's People

Contributors

debugtheworldbot avatar lightning-joyce avatar wen2048 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.