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

[Feature]: reverse-proxy based api access. #880

Closed
hongyi-zhao opened this issue Jun 17, 2023 · 4 comments
Closed

[Feature]: reverse-proxy based api access. #880

hongyi-zhao opened this issue Jun 17, 2023 · 4 comments

Comments

@hongyi-zhao
Copy link
Collaborator

hongyi-zhao commented Jun 17, 2023

Class | 类型

None

Feature Request | 功能请求

是否可以使用下面的反向代理免费访问 OpenAI API?

https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy

image

See PawanOsman/ChatGPT#14 for related discussion.

@binary-husky
Copy link
Owner

可以 读config.py

@hongyi-zhao
Copy link
Collaborator Author

reverse-proxy 并不是一般的proxy server,没有明白你是什么意思。

@awwaawwa
Copy link
Contributor

awwaawwa commented Jun 19, 2023

reverse-proxy 并不是一般的proxy server,没有明白你是什么意思。

# 重新URL重新定向,实现更换API_URL的作用(常规情况下,不要修改!!)
# (高危设置!通过修改此设置,您将把您的API-KEY和对话隐私完全暴露给您设定的中间人!)
# 格式 {"https://api.openai.com/v1/chat/completions": "在这里填写重定向的api.openai.com的URL"} 
# 例如 API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://ai.open.com/api/conversation"}
API_URL_REDIRECT = {}

@hongyi-zhao
Copy link
Collaborator Author

hongyi-zhao commented Jun 21, 2023

Thank you very much. Based on this method and the wonderful tools provided by acheong08, we can bypass the OpenAI API expiration (invalidation) problem, see here for more details.

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

No branches or pull requests

3 participants