-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google API 配置报错 #7013
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
@s906903912 你好!我是Dosu,一个可以帮助你解决bug、回答问题并成为贡献者的机器人。我会在等待人类维护者的时候帮助你。期待和你一起解决问题!🤖 I found a similar discussion regarding Google API configuration issues in Lobe Chat. The discussion mentions that Google's AI SDK currently does not support setting a For configuring the Google API key and PROXY URL in the
For the PROXY URL, while there is no specific configuration mentioned for Google AI, you can adapt the example provided for OpenAI if needed:
You can replace To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
我是用官网的Google API,只配置GOOGLE_API_KEY不行。 |
I use the Google API of the official website, and only configuring GOOGLE_API_KEY cannot be done. |
fetch failed 是没连通吧?你配置的 GOOGLE_PROXY_URL 是不是连接不上? |
服务器上可以通的,直接服务器上curl也是好的 |
It can be accessed on the server, and curl directly on the server is also good |
📦 部署环境
Docker
📦 部署模式
服务端模式(lobe-chat-database 镜像)
📌 软件版本
1.71.5
💻 系统环境
Other Linux
🌐 浏览器
Chrome
🐛 问题描述
.ENV中配置Google API key 和 PROXY url 前端检查会报错:

[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-lite:streamGenerateContent?alt=sse: fetch failed
不通过配置文件配置,可以检查通过

📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: