Git Product home page Git Product logo

geminichat's Introduction

GeminiProChat

Minimal web UI for GeminiPro Chat.

Live demo: Gemini Pro Chat

image

Acknowledgements

This project is inspired by and based on the following open-source project:

  • ChatGPT-Demo - For the foundational codebase and features.

Running Locally

Pre environment

  1. Node: Check that both your development environment and deployment environment are using Node v18 or later. You can use nvm to manage multiple node versions locally.

     node -v
  2. PNPM: We recommend using pnpm to manage dependencies. If you have never installed pnpm, you can install it with the following command:

     npm i -g pnpm
  3. GEMINI_API_KEY: Before running this application, you need to obtain the API key from Google. You can register the API key at https://makersuite.google.com/app/apikey.

Getting Started

  1. Install dependencies

     pnpm install
  2. Copy the .env.example file, then rename it to .env, and add your GEMINI API key to the .env file.

     GEMINI_API_KEY=AIzaSy...
  3. Run the application, the local project runs on http://localhost:3000/

     pnpm run dev

Deploy

Deploy With Vercel

Deploy with Vercel

Just click the button above and follow the instructions to deploy your own copy of the app.

โš ๏ธ Important Notice Regarding API Access: Due to Google's strict IP restrictions on Gemini API requests, some regions' IPs may not be able to access their API. Currently, there is an issue with deployments on Vercel, as some of Vercel's edge function nodes are located in IP regions not supported by Google. As a result, users in certain locations might encounter the message "User location is not supported for the API use." Please be aware of this limitation when using the service.

geminichat's People

Contributors

rockyzsu 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.