Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yinm0591 committed Apr 19, 2023
1 parent 84479f3 commit 35789b3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,27 @@

Currently, most programs accessing the OpenAI API do not support the Organization ID. This project converts custom keys into OpenAI_API_Key + OpenAI_Org_ID for compatibility with the vast majority of OpenAI API programs.

### Deployment Steps:

1. Register and log in to your Cloudflare account.
### Features:
1. Create multiple personal API keys to protect your OpenAI key from being leaked.

2. Navigate to the "Workers" menu item and create a new Worker by clicking the "Create a service" button.
2. Your personal API keys can be tied to an Organization ID.

3. Click "Quick edit" and paste the contents of worker.js into the Cloudflare Worker code editor.
3. Compatible with <a href="https://github.com/Yidadaa/ChatGPT-Next-Web">ChatGPT Next Web</a>, <a href="https://github.com/mckaywrigley/chatbot-ui">chatbot-ui</a>, <a href="https://github.com/Chanzhaoyu/chatgpt-web">chatgpt-web</a>, OpenCat, and other projects.

4. Modify the "subKey" variable in the code editor.
4. Supports OpenAI's streaming output for a better user experience.

5. Once done, click "Save and deploy".

6. Add a custom domain by going to the Worker details page -> Triggers -> Custom Domains -> Add Custom Domain, and provide a custom domain name specific to this service.
### Deployment Steps:

7. Follow the instructions provided by the OpenAI software to fill in the custom domain name.
1. Register and log in to your Cloudflare account.

### Features:
1. Create multiple personal API keys to protect your OpenAI key from being leaked.
2. Navigate to the "Workers" section and create a new Worker by clicking the "Create a service" button.

2. Your personal API keys can be tied to an Organization ID.
3. Click "Quick edit" and paste the contents of "worker.js" into the Cloudflare Worker code editor. Modify the "subKey" variable in the code editor and click "Save and deploy" when finished.

3. Compatible with <a href="https://github.com/Yidadaa/ChatGPT-Next-Web">ChatGPT Next Web</a>, <a href="https://github.com/mckaywrigley/chatbot-ui">chatbot-ui</a>, <a href="https://github.com/Chanzhaoyu/chatgpt-web">chatgpt-web</a>, OpenCat, and other projects.
4. Add a custom domain by going to the Worker details page and selecting "Triggers" -> "Custom Domains" -> "Add Custom Domain". Provide a custom domain name relevant to this service.

5. Follow the instructions provided by the OpenAI software to fill in the custom domain name.

4. Supports OpenAI's streaming output for a better user experience.

24 changes: 11 additions & 13 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@

目前,大多数接入OpenAI API程序都不支持Organization ID。这个项目是将自定义的KEY转换成OpenAI_API_Key + OpenAI_Org_ID,以兼容绝大多数的OpenAI API程序。

### 部署步骤:

1. 注册并登录 Cloudflare 帐号
### 特点:
1. 建立多个自己的API KEY,保护OpenAI KEY不泄露

2. 点击左侧菜单项Workers进入管理页面,点击“创建服务”按钮创建一个新Worker
2. 自己的API KEY能绑定Organization ID

3. 进入新建worker详细页,点击右上角的“快速编辑(Quick edit)”按钮,将worker.js复制并粘贴到代码编辑器中
3. 兼容<a href="https://github.com/Yidadaa/ChatGPT-Next-Web">ChatGPT Next Web</a>、<a href="https://github.com/mckaywrigley/chatbot-ui">chatbot-ui</a>、<a href="https://github.com/Chanzhaoyu/chatgpt-web">chatgpt-web</a>、OpenCat等项目

4. 根据注释说明,修改worker.js中的subKey变量
3. 支持OpenAI的流输出,体验佳

5. 点击“保存并部署(Save and deploy)”按钮

6. 绑定自定义域名,Worker详情页 -> 触发器(Trigger) -> 自定义域(Custom Domains) -> 添加自定义域(Add Custom Domain),为这个服务添加自定义域名
### 部署步骤:

7. 根据您使用的OpenAI软件说明,将自定义域名填入
1. 注册并登录 Cloudflare 帐号

### 特点:
1. 建立多个自己的API KEY,保护OpenAI KEY不泄露
2. 点击左侧菜单项Workers进入管理页面,点击“创建服务”按钮创建一个新Worker

2. 自己的API KEY能绑定Organization ID
3. 进入新建worker详细页,点击右上角的“快速编辑(Quick edit)”按钮,将worker.js复制并粘贴到代码编辑器中,根据注释说明,修改worker.js中的subKey变量,点击“保存并部署(Save and deploy)”按钮

3. 兼容<a href="https://github.com/Yidadaa/ChatGPT-Next-Web">ChatGPT Next Web</a>、<a href="https://github.com/mckaywrigley/chatbot-ui">chatbot-ui</a>、<a href="https://github.com/Chanzhaoyu/chatgpt-web">chatgpt-web</a>、OpenCat等项目
4. 绑定自定义域名,Worker详情页 -> 触发器(Trigger) -> 自定义域(Custom Domains) -> 添加自定义域(Add Custom Domain),为这个服务添加自定义域名

3. 支持OpenAI的流输出,体验佳
5. 根据您使用的OpenAI软件说明,将自定义域名填入

0 comments on commit 35789b3

Please sign in to comment.