Giter Club home page Giter Club logo

geminiprochat's People

Contributors

antergone avatar babaohuang avatar ccoder64 avatar fm7077 avatar michaelyuhe avatar reiinoki avatar stefan-ysh avatar yaosiqian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geminiprochat's Issues

对话过程中机器人返回有乱码

How is Anse deployed?

Docker

Describe the bug

截屏2023-12-17 00 16 19
如图所示,会出现乱码情况。

首先感谢您开源这么好的项目,我是通过docker进行部署在位于西雅图的服务器(commit:[cb84f4a]),但使用您的服务并没有发现类似情况,怀疑是不是跟地区有关或者git并不是最新代码

Console Logs

使用英文对答并不会出现这种情况,只有中文存在。这是地址:https://test.lass.cc/

Participation

  • I am willing to submit a pull request for this issue.

如何使用,提供说明文档

Describe the feature

如何使用,提供说明文档

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

API_BASE_URL=这个到底填啥 为什么填什么都不对啊

What operating system are you using?

win

What browser are you using?

谷歌

Describe the bug

Error
[GoogleGenerativeAI Error]: Error fetching from fetch failed

What prompt did you enter?

聊天后报错闪退 Error
[GoogleGenerativeAI Error]: Error fetching from fetch failed

Console Logs

闪退

Participation

  • I am willing to submit a pull request for this issue.

Cannot function when binding own domain in Cloudflare

How is Gemini Pro Chat deployed?

Vercel

Describe the bug

  1. Deploy in Vercel: Send button cannot function when binding my own domain in Cloudflare, but works fine with xxx.vercel.app directly.
  2. Same symptom when deploying in docker

Console Logs

N/A

Participation

  • I am willing to submit a pull request for this issue.

support math display

Describe the feature

display math equotion use mathjax or katex

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

docker build出的镜像无法运行

How is Anse deployed?

Docker

Describe the bug

在Windows下构建的,我用dockerfile和 docker-compose 构建的都没法运行

Console Logs

dockerfile:
image
image
docker compose:
image
image

Participation

  • I am willing to submit a pull request for this issue.

不能回答正确的问题?

What operating system are you using?

Online

What browser are you using?

Edge

Describe the bug

绑定 Gemini Pro 的 API 后,回答今天的日期都出错?
Screenshot 2023-12-20 at 16 13 02

What prompt did you enter?

what's of today?

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

关于gemini-proxy的建议

Describe the feature

  1. 为了解决API区域限制问题,palm-proxy是借鉴了openai-proxy的思路,针对Google PaLM API进行了适配,不太能理解 gemini-proxypalm-proxy fork后,仅仅改个README就重新Release
  2. 大家都是在困境中想解决方案,希望能尊重研究成果,就像我们尊重和爱护 GeminiProChat 一样。 如果有更好IDEA建议发起PR。
  3. 阿里云FC服务反代OpenAI的思路和Gemini Nginx解决方案组合也可以解决此类问题。
    Nginx配置见:https://www.ifuyun.com/post/00lq67tr9x2eh3au
    阿里云FC反代OpenAI见: https://simonmy.com/posts/使用阿里云函数计算反向代理openai服务.html

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

增加会话历史记录

Describe the feature

增加会话历史记录

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

无论如何配置代理,都得到以下反馈:Error [GoogleGenerativeAI Error]: Error fetching from fetch failed

What operating system are you using?

Windows

What browser are you using?

chrome

Describe the bug

请教!

What prompt did you enter?

No response

Console Logs

astro v2.7.0 started in 445ms

┃ Local http://localhost:3000/
┃ Network use --host to expose

TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async makeRequest (file:///F:/%E5%B9%BC%E5%B8%88%E5%AE%9D%E7%BD%91%E9%A1%B5%E7%89%88/GeminiProChat/node_modules/.pnpm/@fuyun[email protected]/node_modules/@fuyun/generative-ai/dist/index.mjs:184:20)
at async generateContentStream (file:///F:/%E5%B9%BC%E5%B8%88%E5%AE%9D%E7%BD%91%E9%A1%B5%E7%89%88/GeminiProChat/node_modules/.pnpm/@fuyun[email protected]/node_modules/@fuyun/generative-ai/dist/index.mjs:503:22)
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^

TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async makeRequest (file:///F:/%E5%B9%BC%E5%B8%88%E5%AE%9D%E7%BD%91%E9%A1%B5%E7%89%88/GeminiProChat/node_modules/.pnpm/@fuyun[email protected]/node_modules/@fuyun/generative-ai/dist/index.mjs:184:20)
at async generateContentStream (file:///F:/%E5%B9%BC%E5%B8%88%E5%AE%9D%E7%BD%91%E9%A1%B5%E7%89%88/GeminiProChat/node_modules/.pnpm/@fuyun[email protected]/node_modules/@fuyun/generative-ai/dist/index.mjs:503:22)

Node.js v20.10.0
 ELIFECYCLE  Command failed with exit code 1.

Participation

  • I am willing to submit a pull request for this issue.

返回内容不完整,出现断句

What operating system are you using?

windows

What browser are you using?

chrome

Describe the bug

我用的是Nginx代理,API_BASE_URL配置了我的Nginx地址,每次只能返回部分内容,不知啥原因?
我直接用python的request调用Nginx地址是能正常完整返回内容的。
断句

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

回复有时候有乱码

What operating system are you using?

Mac, Windows

What browser are you using?

Chrome

Describe the bug

MS SQL Server中怎么创建一个具体管理员权限的帐号

image

What prompt did you enter?

MS SQL Server中怎么创建一个具体管理员权限的帐号

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

Vercel Edge Functions: set one or more preferred regions

Describe the feature

https://vercel.com/docs/functions/configuring-functions/region

For Edge Functions:

  • By default Edge Functions execute in the region closest to the incoming request
  • You can set one or more preferred regions using the route segment config preferredRegions or specify a regions key within a config object to set one or more regions for you functions to execute in

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

User location not supported for the API use.

How is Gemini Pro Chat deployed?

Vercel

Describe the bug

部署到Vercel后,打开提示User location not supported for the API use.

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

您好,本地搭建此服务后使用时出现乱码

What operating system are you using?

Windows

What browser are you using?

EDGE

Describe the bug

image

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

数学公式显示格式错误

What operating system are you using?

mac

What browser are you using?

chrome

Describe the bug

部署之后,Gemini回复答案挺好,就是数学公式格式错误,还待进一步强化

What prompt did you enter?

image

Console Logs

image

Participation

  • I am willing to submit a pull request for this issue.

docker build 出错

How is Anse deployed?

Docker

Describe the bug

使用 docker build . 创建镜像以后

使用 docker run --rm --name gemini_pro_chat -p 3030:3000 -e GEMINI_API_KEY="" -e HTTPS_PROXY="" gemini_pro_chat 命令进行 container 创建, 然后报错了

Starting service...
Running script...
node:internal/modules/esm/resolve:853
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'send' imported from /usr/src/dist/server/entry.mjs
    at packageResolve (node:internal/modules/esm/resolve:853:9)
    at moduleResolve (node:internal/modules/esm/resolve:910:20)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v21.4.0

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

Markdown语法无法正常显示

What operating system are you using?

Windows

What browser are you using?

Edge

Describe the bug

Markdown语法无法正常显示,是没有添加这个功能还是bug?
image

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

Support password or username protection

Describe the feature

I am writing to request password or username protection for the application.
I am concerned about the security of my personal information and would like to ensure that my data/API key is protected from unauthorized access.

Thank you for your attention to this matter.

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

send按钮无法点击

What operating system are you using?

windows

What browser are you using?

chrome

Describe the bug

请教大佬,我在vps docker 以及vercel中都部署了, 我总是试图通过自己的域名访问,但是在使用自己的域名访问中都出现send按钮无法点击发送,但是使用ip地址或者是使用vercel提供的域名都能访问并使用send按钮发送获得回复,这是什么问题呢?

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

Support for additional deployment methods

Describe the feature

Is it possible to add Netlify deployment method

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

User location is not supported for the API use.

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the bug

自己用Vercel部署了一套,然后映射到自己的域名上去了,但是用的时候必须挂vpn,不然提示「User location is not supported for the API use.」请问需要怎么处理

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

回复当前时间不对

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the bug

回复当前时间不对(部署在vercel)

What prompt did you enter?

what's the time now

目前时间是:2023年3月8日 星期三 下午9:38:08 CST

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

使用代理出错

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the bug

配置文件.env设置了代理http://127.0.0.1:10809,但是无法使用
image

Server listening on http://0.0.0.0:3000
Error: [GoogleGenerativeAI Error]: Text not available. Response was blocked due to SAFETY
at response.text (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai/dist/index.mjs:250:19)
at Object.start (file:///usr/src/dist/server/chunks/pages/generate.ts.06be4226.mjs:76:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sendMessageStream() was unsuccessful. Response was blocked due to SAFETY. Inspect response object for details.
Error: [GoogleGenerativeAI Error]: Text not available. Response was blocked due to SAFETY
at response.text (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai/dist/index.mjs:250:19)
at Object.start (file:///usr/src/dist/server/chunks/pages/generate.ts.06be4226.mjs:76:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sendMessageStream() was unsuccessful. Response was blocked due to SAFETY. Inspect response object for details.

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

Add support for Gemini Pro Vision.

Describe the feature

Add support for Gemini Pro Vision.

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

after deploying ,VPS log show Error: [GoogleGenerativeAI Error]: Text not available. Response was blocked due to SAFETY

How is Gemini Pro Chat deployed?

Docker

Describe the bug

I deploy it in my cloudcone VPS , and it does not work

Console Logs

Server listening on http://0.0.0.0:3000
Error: [GoogleGenerativeAI Error]: Text not available. Response was blocked due to SAFETY
at response.text (file:///usr/src/node_modules/.pnpm/@fuyun[email protected]/node_modules/@fuyun/generative-ai/dist/index.mjs:259:19)
at Object.start (file:///usr/src/dist/server/chunks/pages/generate.ts.2a0d54ba.mjs:45:34)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sendMessageStream() was unsuccessful. Response was blocked due to SAFETY. Inspect response object for details.

Participation

  • I am willing to submit a pull request for this issue.

联网时间错误?

What operating system are you using?

Android

What browser are you using?

Chrome

Describe the bug

我部署在vercel上,因为gemini pro是联网的,但时间似乎有问题?
Screenshot_2023-12-21-13-59-11-53_a252b927494330cdc2c8ba3b3f952e5e

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

回复我他是阿里巴巴训练的

How is Anse deployed?

Node

Describe the bug

我获取了Gemini api,但是我问他问题的时候,他说他是阿里巴巴训练的模型

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

a problem with continuous conversations in the docker environment

What operating system are you using?

Ubuntu22.04

What browser are you using?

Chrome

Describe the bug

Xnip2023-12-17_15-56-02 连续对话下没有应答 需要点击清除后再次询问才有应答 Xnip2023-12-17_15-59-54 在控制台看好像是前端报错了

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

Prompt & Temperature

Describe the feature

希望能够预设和调整 Prompt & Temperature
PromptGemini 中好像叫做 startChat
image

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

Need socks5 proxy support

Describe the feature

Want to use sock5 proxy instead of https proxy

Additional context

Want to use sock5 proxy instead of https proxy

Participation

  • I am willing to submit a pull request for this feature.

HTTPS Proxy isn't working

What operating system are you using?

Linux - Docker

What browser are you using?

Chrome

Describe the bug

When I put "HTTPS_PROXY=socks5://192.168.0.1:28081" in both docker commandline and .env, the proxy won't take any action. It doesn't work

What prompt did you enter?

Default

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

增加图片 视频上传功能。

Describe the feature

多模态输入支撑 希望大佬开发图片视频上传功能。

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

输入后无反馈,send按钮无反馈

What operating system are you using?

win2012

What browser are you using?

firefox edge

Describe the bug

image

What prompt did you enter?

搭建好可以访问页面,但是打字按enter没有发送出去,而是切换到下一行,按send也没反应,通用的环境浏览器测试博主的可以正常返回信息

Console Logs

Participation

  • I am willing to submit a pull request for this issue.

求教如何部署https

Describe the feature

求教如何部署https

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

布置了代理(palm-proxy)出错

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the bug

没有布置plam-proxy时,部署成功,但是显示 "User location is not supported for the API use"。
于是我按照Note部署了palm-proxy,重新部署,出现了新的出错提示:
Error
[GoogleGenerativeAI Error]: Error fetching from palm-proxy-gemini-silk.vercel.app/v1/models/gemini-pro:streamGenerateContent?alt=sse: Invalid URL string.
能否请教或者提示一下,我该如何解决这个问题?谢谢了。

What prompt did you enter?

palm-proxy部署显示成功后,vercel中网页缩略图显示的404……

Clip_20231222_110638

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

TypeError: fetch failed

What operating system are you using?

win

What browser are you using?

chrome

Describe the bug

错误

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

UI 优化建议

Describe the feature

建议将这个文本框直接固定在底部,并缩小文本框和底部链接的间距
image

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.

How to use the API_BASE_URL?

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the bug

我使用vercel 创建好之后,使用会提示:
然后我在自己的仓库里,新建了一个文件.env,在里面写:User location is not supported for the API use.
API_BASE_URL=https://google-genmini-pro.vercel.app/
然后回到 vercel ,发现它自己重新构建了,构建完成后,仍然提示:User location is not supported for the API use.

What prompt did you enter?

No response

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

404 This page could not be found.

How is Gemini Pro Chat deployed?

Vercel

Describe the bug

VERCEL使用代理部署时出现:
404 This page could not be found.

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

docker-compose.yml 直接下载后部署报错 build修改成image: 'babaohuang/geminiprochat:latest' 搞定

How is Gemini Pro Chat deployed?

Node

Describe the bug

[+] Building 0.1s (2/2) FINISHED docker:default
=> [geminiprochat internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2B 0.0s
=> [geminiprochat internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3775294946/Dockerfile: no such file or directory

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.