Skip to content
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

使用vercel一键部署之后,主要功能无法使用 #1

Closed
KasenRi opened this issue Apr 13, 2023 · 4 comments
Closed

使用vercel一键部署之后,主要功能无法使用 #1

KasenRi opened this issue Apr 13, 2023 · 4 comments

Comments

@KasenRi
Copy link

KasenRi commented Apr 13, 2023

搜图功能无法使用
输入内容回车之后显示:Ops~ Something went wrong, please try again later!
但是同api在本地的其他服务调用可以正常返回
是因为openAI把github地址屏蔽的原因吗?
我看到源码里好像对api做了一层代理
但是示例网站又很顺畅
希望能得到帮助

@KasenRi
Copy link
Author

KasenRi commented Apr 13, 2023

补充一下,第一次使用是正常的,然后就使用不了

@hellovigoss
Copy link
Owner

感谢反馈。
代理是部署用于直连openai的api的,也可以修改代码直接连接openai的域名。
另外:如果在本地部署,请参考.env.local.example建立.env.local文件并正确填写apikey

@hellovigoss
Copy link
Owner

image

最新版本已经支持自定义,可以留空```OPENAI_PROXY```直连openai 官方api

@KasenRi
Copy link
Author

KasenRi commented Apr 13, 2023

感谢回复,本地部署十分稳定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants