Skip to content

zdxgs/GeminiChat

 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.4%
  • Astro 20.3%
  • CSS 6.2%
  • JavaScript 5.9%
  • Shell 3.6%
  • Dockerfile 1.6%