Minimal web UI for GeminiPro Chat.
Live demo: Gemini Pro Chat
This project is inspired by and based on the following open-source project:
- ChatGPT-Demo - For the foundational codebase and features.
-
Node: Check that both your development environment and deployment environment are using
Node v18
or later. You can use nvm to manage multiplenode
versions locally.node -v
-
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
-
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.
-
Install dependencies
pnpm install
-
Copy the
.env.example
file, then rename it to.env
, and add your GEMINI API key to the.env
file.GEMINI_API_KEY=AIzaSy...
-
Run the application, the local project runs on
https://localhost:3000/
pnpm run dev
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.