Skip to content

部署在 netlify 使用 gemini 会被打断? #2655

Discussion options

You must be logged in to vote

preview 用的是 vercel

因为是走的本地代理,而不是netlify服务器,现在临时的解决方法就是手动填写api和proxy了,但是这样子在环境变量填写的东西就失去意义了。解决的方法我想也很简单,只需要提供一个不用手动填写api和proxy就能走本地代理的按钮就行,api和proxy从netlify服务器环境变量中获取就可以

如果前端调api key可以,但后端调用出现截断,那你可能要检查下是不是 netlify 的serverless 时间超时导致的了。比如像 vercel 的nodejs runtime 默认只支持 10s 的调用时长,超过10s就会自动销毁,表现出来就是生成一部分内容以后就掐断了。

Replies: 22 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by arvinxx
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📝 Documentation Improvements or additions to documentation | 文档问题
6 participants
Converted from issue

This discussion was converted from issue #2566 on May 25, 2024 13:46.