Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ijk0/vercel-azure-openai-proxy
Rapid deployment of Azure OpenAI service proxy to Vercel.
https://github.com/ijk0/vercel-azure-openai-proxy
Last synced: 15 days ago
JSON representation
Rapid deployment of Azure OpenAI service proxy to Vercel.
- Host: GitHub
- URL: https://github.com/ijk0/vercel-azure-openai-proxy
- Owner: ijk0
- License: mit
- Created: 2023-04-16T12:53:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-16T13:31:04.000Z (over 1 year ago)
- Last Synced: 2024-06-01T13:36:44.838Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vercel-openai-azure-proxy
> 大多数 OpenAI 客户端不支持 Azure OpenAI Service,但Azure OpenAI Service的申请和绑卡都非常简单,并且还提供了免费的额度。此脚本使用免费的Vercel作为代理,使得支持 OpenAI 的客户端可以直接使用 Azure OpenAI Service。
代理 OpenAI 的请求到 Azure OpenAI Serivce,部署步骤:
1. 登陆vercel连接Github账户
2. 创建项目导入git项目
3. 创建环境变量
```Shell
RESOURCE_NAME_GPT4 // openai服务资源名称
RESOURCE_NAME_GPT35 // openai服务资源名称
DEPLOY_NAME_GPT4 // 部署的GPT4模型名称
DEPLOY_NAME_GPT35 // 部署的GPT3.5模型名称
```
4. 部署完成也可以添加自定义域名,修改cname可实现直接访问项目fork自 [cf-openai-azure-proxy](https://github.com/haibbo/cf-openai-azure-proxy), 部署到vercel也是由于[ChatGPT-Next-Web](https://github.com/Yidadaa/ChatGPT-Next-Web)项目的启发