Skip to content

Commit

Permalink
添加 nodejs 直接部署说明
Browse files Browse the repository at this point in the history
  • Loading branch information
easychen committed Mar 5, 2023
1 parent 549458b commit 2b87c61
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 205 deletions.
10 changes: 9 additions & 1 deletion README.CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
> ⚠️ 这是代理的服务器端,不是客户端。需要部署到可以联通 openai api 的网络环境后访问。
## Docker
## NodeJS部署

你可以把 ./app.js 部署到所有支持 nodejs 14+ 的环境,比如云函数和边缘计算平台。

1. 复制 app.js 和 package.json 到目录
1. yarn install 安装依赖
1. node app.js 启动服务

## Docker部署

```
docker run -p 9000:9000 easychen/ai.level06.com:latest
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ Simple proxy for OpenAi api via a one-line docker command

以下英文由GPT翻译。The following English was translated by GPT.

## Docker
## NodeJS Deployment

You can deploy ./app.js to any environment that supports nodejs 14+, such as cloud functions and edge computing platforms.

1. Copy app.js and package.json to the directory
2. Run yarn install to install dependencies
3. Run node app.js to start the service.

## Docker Deployment

```
docker run -p 9000:9000 easychen/ai.level06.com:latest
Expand Down
139 changes: 0 additions & 139 deletions app.sse.js

This file was deleted.

64 changes: 0 additions & 64 deletions fetchsse.js

This file was deleted.

0 comments on commit 2b87c61

Please sign in to comment.