8000 部署完了报错 · Issue #31 · bclswl0827/ChatGemini · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

部署完了报错 #31

Open
Open

Description

@changeCat

按照步骤部署完了报错,页面能打开
[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.

Activity

  1. DreamofInfinity1 commented on Apr 28, 2024

    @DreamofInfinity1

    我也出现这个错误,每次需要多次重复会话才会得到反馈,这个问题如何去解决?

  2. zhouSir340 commented on May 9, 2024

    @zhouSir340

    @changeCat @DreamofInfinity1 需要配置反向代理,nginx,cloud flare或者netlify都可以,readme有写

  3. DreamofInfinity1 commented on May 9, 2024

    @DreamofInfinity1

    @zhouSir340 是的,我是在cf搭建反向代理的,结果就如我上面所说,每次需要多次重复会话才会得到反馈,甚至无反馈,我看到别人说是cf使用的是香港的流量,而香港不在gemini api支持地区里,请问还有什么解决方法?

  4. zhouSir340 commented on May 9, 2024

    @zhouSir340

    @DreamofInfinity1 是的 我之前在gemini-pro-chat项目里这么做的时候也概率性遇到这个问题,目前netlify在国内直连还是ok的,可以用在这上面做反代替换BASE_URL,我自己切换到netlify之后目前运行都稳定,可以参考这个repo:https://github.com/antergone/palm-netlify-proxy

  5. DreamofInfinity1 commented on May 21, 2024

    @DreamofInfinity1

    还有另一种解决方案,我目前使用cf部署代理脚本,脚本通过workers路由关联一个域名,这个域名在dns解析上指向一个美国ip地址,然后一般情况下稳定运行,很少时间会出错。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0