https://github.com/dyc87112/openaiproxy
阿里云函数计算一件部署OpenAI的代理
https://github.com/dyc87112/openaiproxy
Last synced: 6 months ago
JSON representation
阿里云函数计算一件部署OpenAI的代理
- Host: GitHub
- URL: https://github.com/dyc87112/openaiproxy
- Owner: dyc87112
- Created: 2023-03-28T09:55:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-31T06:06:19.000Z (over 2 years ago)
- Last Synced: 2025-04-17T14:40:14.609Z (6 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 30
- Watchers: 2
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> 注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、服务名、函数名等等),所以**不推荐**直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,**强烈推荐**通过 `s init ` 的方法或应用中心进行初始化,详情可参考[部署 & 体验](#部署--体验) 。
# openai-proxy 帮助文档
一键部署OpenAI的代理,以方便实现OpenAI的API调用。
## 前期准备
使用该项目,您需要有开通以下服务:
- 函数计算 FC
推荐您拥有以下的产品权限 / 策略:
- 函数计算 / AliyunFCFullAccess
## 应用中心一键部署
通过 [Serverless 应用中心](https://fcnext.console.aliyun.com/applications/create?template=openai-proxy) ,点击下面按钮直接部署体验:
[](https://fcnext.console.aliyun.com/applications/create?template=openai-proxy)
## Serverless Devs Cli 部署
1. [安装 Serverless Devs Cli 开发者工具](https://www.serverless-devs.com/serverless-devs/install) ,并进行[授权信息配置](https://docs.serverless-devs.com/fc/config) ;
2. 初始化项目:`s init openai-proxy -d openai-proxy `
3. 进入项目,并进行项目部署:`cd openai-proxy && s deploy - y`## 使用文档
部署完成之后,获得一个域名,该域名可以用来替代 https://api.openai.com 来使用。
## 深入交流
欢迎关注公众号:程序猿DD,分享前沿技术资讯,一起探索ChatGPT