一行Docker命令部署的 OpenAI/GPT API代理,支持SSE流式返回、腾讯云函数 。Simple proxy for OpenAi api via a one-line docker command
JavaScript
1,611
43 commits
updated Mar 26, 2024
可以部署到docker和云函数的OpenAI API代理 Simple proxy for OpenAi api via a one-line docker command
🌳 如果你懒得自己搭建,那么可以试试国内可以访问、可以微信充值的第三方OpenAI API服务:API2D.com,支持Chat酱、OpenCat、NextWeb、VSCode插件。
🎉 已经支持SSE,可以实时返回内容
以下英文由GPT翻译。The following English was translated by GPT.
⚠️ This is the server-side of the proxy, not the client-side. It needs to be deployed to a network environment that can access the openai api.
You can deploy ./app.js to any environment that supports nodejs 14+, such as cloud functions and edge computing platforms.
docker run -p 9000:9000 easychen/ai.level06.com:latest
The proxy address is http://${IP}:9000
:<PROXY_KEY> after the openai key. If not set, no modification is required.Using https://www.npmjs.com/package/chatgpt as an example:
chatApi= new gpt.ChatGPTAPI({
apiKey: 'sk.....:<proxy_key_here>',
apiBaseUrl: "http://localhost:9001/v1", // Replace with proxy domain/IP
});
2,542 followers · starred Apr 2025
93 followers · starred Mar 2023
234 followers · starred Mar 2023
59 followers · starred May 2025
一行Docker命令部署的 OpenAI/GPT API代理,支持SSE流式返回、腾讯云函数 。Simple proxy for OpenAi api via a one-line docker command
JavaScript
1,611
43 commits
updated Mar 26, 2024
可以部署到docker和云函数的OpenAI API代理 Simple proxy for OpenAi api via a one-line docker command
🌳 如果你懒得自己搭建,那么可以试试国内可以访问、可以微信充值的第三方OpenAI API服务:API2D.com,支持Chat酱、OpenCat、NextWeb、VSCode插件。
🎉 已经支持SSE,可以实时返回内容
以下英文由GPT翻译。The following English was translated by GPT.
⚠️ This is the server-side of the proxy, not the client-side. It needs to be deployed to a network environment that can access the openai api.
You can deploy ./app.js to any environment that supports nodejs 14+, such as cloud functions and edge computing platforms.
docker run -p 9000:9000 easychen/ai.level06.com:latest
The proxy address is http://${IP}:9000
:<PROXY_KEY> after the openai key. If not set, no modification is required.Using https://www.npmjs.com/package/chatgpt as an example:
chatApi= new gpt.ChatGPTAPI({
apiKey: 'sk.....:<proxy_key_here>',
apiBaseUrl: "http://localhost:9001/v1", // Replace with proxy domain/IP
});
2,542 followers · starred Apr 2025
93 followers · starred Mar 2023
234 followers · starred Mar 2023
59 followers · starred May 2025