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

服务器使用了魔法,本地访问还是不行。 #63

Open
xiaoran-roosevelt opened this issue Mar 31, 2023 · 7 comments
Open

服务器使用了魔法,本地访问还是不行。 #63

xiaoran-roosevelt opened this issue Mar 31, 2023 · 7 comments

Comments

@xiaoran-roosevelt
Copy link

我在服务器里面部署了,并且在服务器配置了代理,但是本地不开代理访问还是无法获取到模型列表。项目的原理难道是本地直接访问openai吗,而不是服务器访问?

@xiaoran-roosevelt
Copy link
Author

我本地开了代理就能获取到模型列表

@Azad-Aihub
Copy link

我在服务器里面部署了,并且在服务器配置了代理,但是本地不开代理访问还是无法获取到模型列表。项目的原理难道是本地直接访问openai吗,而不是服务器访问?

我放入api后就可以获取到模型了

@xiaoran-roosevelt
Copy link
Author

你是没开代理也可以访问吗 @Azad-Aihub

@Azad-Aihub
Copy link

你是没开代理也可以访问吗 @Azad-Aihub

昨天可以,今天又不行了...

@yujin521
Copy link

本来访问服务器服务的需要开代理. nginx直接反向代理 客户端访问的还是真实IP。不开代理好像不行 ,如果有后台程序就好了。

@xiaoran-roosevelt
Copy link
Author

xiaoran-roosevelt commented Apr 21, 2023

本来访问服务器服务的需要开代理. nginx直接反向代理 客户端访问的还是真实IP。不开代理好像不行 ,如果有后台程序就好了。

嗯,我看了网络请求,这个项目本质上是一个纯前端项目。
image

如果想整后端项目,我推荐一下:https://github.com/NiuXiangQian/chatgpt-stream.git

如果你只是想用apikey使用chatgpt的服务,我推荐chatbox( https://github.com/Bin-Huang/chatbox/releases ),比这个项目好一点,聊天记录不会被清除,还能导出为md
image

@yujin521
Copy link

OK 谢谢

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

3 participants