Skip to content

loo-y/GeminiChatUp

Repository files navigation

Gemini ChatUp

中文

About

This project is a chat application based on the Google GeminiPro API Key, with support for responsive layout. It can retain multiple sets of conversations, and the basic parameters for each set of conversations can be set separately.

How to Use

Demo

You need to log in with an account or provide your own Gemini Pro API Key.
Developers can click to see how to deploy this feature.

Account/Password

Test Account Password
guest guest123456

Streaming Conversation

SCR-20240121-shmh

How to Deploy

Get Gemini API Key

Get API Key

Deploy to Vercel

Deploy with Vercel

Click the button to deploy to Vercel and follow the prompts to enter your Google GeminiPro API Key.

Adding User Authentication

This feature requires enabling Edge config in Vercel. Follow these steps:

  1. After the project is deployed, switch to the Storage Tab and select "New Edge Config."
    SCR-20240120-pofd

  2. In the Edge Config, switch to Projects and check if it is already associated with the current project.
    SCR-20240120-pmob

  3. Finally, switch to Items and at the bottom right, you can add usernames and passwords in JSON format by yourself.
    SCR-20240120-pmyd


Local Start

  1. Install dependencies

    npm i
    
  2. Create a new .envfile, copy the contents of .env.example into .env, and modify it with your own API Key and configuration options.


  1. Local Start
    npm run dev

Screenshots




SCR-20240104-mgmn

To Be Completed

  1. Streaming Q&A (completed)
  2. Clearing previous conversations (completed)
  3. Calculating tokens and removing excess conversations (completed)
  4. Global settings, supporting client integration with GeminiPro API (completed)
  5. Support for searching conversation content
  6. Add GeminiPro Vision API (completed)