From 35789b3da73c2d85425d2ca8ae683aa614338dc6 Mon Sep 17 00:00:00 2001 From: Yin Min Date: Wed, 19 Apr 2023 15:39:14 +0800 Subject: [PATCH] update --- README.md | 25 ++++++++++++------------- README_cn.md | 24 +++++++++++------------- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index e9ec997..fe05c73 100644 --- a/README.md +++ b/README.md @@ -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 ChatGPT Next Web, chatbot-ui, chatgpt-web, 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 ChatGPT Next Web, chatbot-ui, chatgpt-web, 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. diff --git a/README_cn.md b/README_cn.md index 9eeca02..b700df9 100644 --- a/README_cn.md +++ b/README_cn.md @@ -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. 兼容ChatGPT Next Webchatbot-uichatgpt-web、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. 兼容ChatGPT Next Webchatbot-uichatgpt-web、OpenCat等项目 +4. 绑定自定义域名,Worker详情页 -> 触发器(Trigger) -> 自定义域(Custom Domains) -> 添加自定义域(Add Custom Domain),为这个服务添加自定义域名 -3. 支持OpenAI的流输出,体验佳 +5. 根据您使用的OpenAI软件说明,将自定义域名填入