试了好多 Gemini 客户端都用不太惯,所以花时间自己写了一个

97 天前
 ttyUSB0

试了好多 Gemini 客户端都用不太惯,有的要么功能不太全,有的要么太花里胡哨玩不明白,个人还是比较习惯像 ChatGPT 官网那样的操作逻辑,简单顺手,也不用特别去折腾各种参数

所以花了几天时间,用 React 做了一个新的 Gemini 客户端出来,操作逻辑和 ChatGPT 基本一致,UI 也和 ChatGPT 相似,所以起名叫 ChatGemini

这套客户端支持多轮聊天,和在多轮聊天中上传图片,应用会自动调用 Gemini-Pro-Vision 模型进行识图

特性有下面几点,欢迎大家使用,提供建议和反馈,觉得不错可以给个 Star

4433 次点击
所在节点    分享创造
54 条回复
hopeknow
97 天前
体验了一下,非常好用!
xyxc0673
97 天前
提示错误了
oldManNewThought
97 天前
AI
[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1/models/gemini-pro:streamGenerateContent?alt=sse: [400 ] User location is not supported for the API use.
jucelin
97 天前
@oldManNewThought #3 可以用美国的梯子试试,用 HK 的不行
ethanpeng
97 天前
能支持下中转 host 吗,现在所有客户端好像都只支持 chtgpt 的中转,没有 Gemini 的
oldManNewThought
97 天前
楼主,gemini 的 api key 怎么申请的。我进申请页。总是提示区域限制。更换了各地区梯子都不行
goddamhucker
97 天前
确实好用
ttyUSB0
97 天前
@ethanpeng 可以,Nginx 反向代理 `generativelanguage.googleapis.com`,或者直接用 `public/gemini.php` 反代 API
操作说明已经在 README 给出
ttyUSB0
97 天前
@oldManNewThought 这种情况一般都是梯子不行,我用美国和日本的节点没问题
hongzx
97 天前
这是 vue ?
ttyUSB0
97 天前
@hongzx 纯 React 项目
ghellotim
97 天前
@ttyUSB0 OP 是否可以做一个 docker ,方便我等小白部署?谢谢
hongzx
97 天前
@ttyUSB0 [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1/models/gemini-pro:streamGenerateContent?alt=sse: [403 ] Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.
这是 key 不行?
ttyUSB0
97 天前
@hongzx 可以换个梯子试试,因为是直连 Google 的 API ,和梯子的位置、IP 干净程度可能有关系
hongzx
97 天前
@ttyUSB0 嗯嗯,搞定了,很 nice ,在尝试搞成镜像,丢服务器上
abersheeran
97 天前
哈哈哈哈,我直接把 Gemini 接入各种平台的机器人了,不写前端。
imzcg2
97 天前
api 都被封了
a8500830
97 天前
等 docker 版
ttyUSB0
97 天前
可以自建反代,然后指定 API 地址,README 有写
sayoll
97 天前
@ghellotim ```
[root@vm54701 ~]# cd /opt/docker/chatgemini
[root@vm54701 chatgemini]# cat Dockerfile
# 使 用 官 方 Node.js 基 础 镜 像
FROM node:lts
# 设 置 工 作 目 录 , 所 有 的 路 径 都 会 基 于 该 目 录
WORKDIR /app
# 复 制 package.json 和 package-lock.json (如 果 存 在 )
COPY package*.json ./
# 安 装 项 目 依 赖
RUN npm install
# 复 制 项 目 文 件 到 工 作 目 录
COPY . .
# 如 果 您 的 应 用 需 要 构 建 , 可 以 取 消 注 释 下 面 这 行 RUN npm run build
# 暴 露 容 器 运 行 时 的 端 口
EXPOSE 3000
# 定 义 运 行 时 执 行 的 命 令
CMD ["npm", "start"]
[root@vm54701 chatgemini]# cat docker-compose.yml
version: '3.0'
services:
chatgemini:
build: .
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
[root@vm54701 chatgemini]#
```

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1013263

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX