Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/loo-y/GeminiChatUp


https://github.com/loo-y/GeminiChatUp

ai gemini-api gemini-pro nextjs react

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# Gemini ChatUp

[中文](./README.zh.md)

## 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](https://chatup.moca.one)
>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](#user_credential).

#### Account/Password
|Test Account|Password|
|--|--|
|guest|guest123456|

#### Streaming Conversation
SCR-20240121-shmh



## How to Deploy
### Get Gemini API Key

[Get API Key](https://makersuite.google.com/app/apikey)

### Deploy to Vercel
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Floo-y%2FGeminiChatUp&env=GOOGLE_GEMINI_API_KEY&envDescription=GeminiPro%20API%20Key&project-name=geminichatup&repository-name=GeminiChatUp&demo-url=https%3A%2F%2Fchatup.moca.one&demo-image=https%3A%2F%2Fgithub.com%2Floo-y%2FGeminiChatUp%2Fassets%2F2792566%2Fa69a57a5-598e-4958-a912-a7cc37dba2aa)

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 ```.env```file, copy the contents of ```.env.example``` into ```.env```, and modify it with your own API Key and configuration options.

3. Local Start
```javascript
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)