本项目为基于 Google GeminiPro API Key 的聊天应用,支持响应式布局。可保留多组对话,每组对话的基础参数可单独设置。
需使用账号登录,或提供自己的 Gemini Pro API Key。
开发者点击查看如何部署此功能
测试账号 | 密码 |
---|---|
guest | guest123456 |
![SCR-20240121-shmh](https://private-user-images.githubusercontent.com/2792566/298384551-4f91a1b7-2773-4a5a-93a0-1fa294d17174.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxNzA5MTYsIm5iZiI6MTcyNTE3MDYxNiwicGF0aCI6Ii8yNzkyNTY2LzI5ODM4NDU1MS00ZjkxYTFiNy0yNzczLTRhNWEtOTNhMC0xZmEyOTRkMTcxNzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDFUMDYwMzM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2JiODI4NGFhZmM2MTE3MjIzNjliZTFhNWFkMTE4OGEwYWE4Zjg4ZjRkNjZjNDZhYTVmNmJmZDRlYzBhNGY0ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.XB6NRsMC0G1q29mRpznTiKwM58FOJJuthAwOJfJJZnY)
点击按钮部署至 Vercel,根据提示填入 Google GeminiPro API Key
此功能需要打开 Vercel 的 Edge config。操作步骤如下:
-
安装依赖包
npm i
-
新建
.env
文件,将.env.example
文件内的内容复制进.env
,并修改为自己的API Key以及配置项
- 本地启动
npm run dev
![](https://private-user-images.githubusercontent.com/2792566/297067348-6924b5fe-f30a-4f9d-a69f-27a6fe2820a1.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxNzA5MTYsIm5iZiI6MTcyNTE3MDYxNiwicGF0aCI6Ii8yNzkyNTY2LzI5NzA2NzM0OC02OTI0YjVmZS1mMzBhLTRmOWQtYTY5Zi0yN2E2ZmUyODIwYTEuanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDFUMDYwMzM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjEzNTViN2RkZTM2YjA5ZTQxYTRhZmE0MDM3NWQwZGUyNjA1YjM2NmZhMjU4YTdmYTUwYzBiNmVmOThjNDRjYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.9iq7VH8YDHIWVU5oVoZbRyzD6DYQjyZ2cOZsDxy2CHY)
![](https://private-user-images.githubusercontent.com/2792566/297067969-630b5181-bbdd-4dd0-bac5-9376b3f50d63.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxNzA5MTYsIm5iZiI6MTcyNTE3MDYxNiwicGF0aCI6Ii8yNzkyNTY2LzI5NzA2Nzk2OS02MzBiNTE4MS1iYmRkLTRk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4NmRlYmQ4NDA2M2ZjMDIzYjFlYWE2ODE5NGIwODk5N2IxYTlkN2ZlNGYwNzMwODcxNzhlNTRlYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RjLZjsPFvmjBYDyGWDAl1234Jvm7dJ1lREPO-UK5vW4)
流式问答(已完成)清除之前的conversation(已完成)计算token并移除超出的conversation(已完成)全局设置,支持客户端引入 GeminiPro API(已完成)- 支持搜索对话内容
引入 GeminiPro Vision API(已完成)