Skip to content

Commit

Permalink
Update README.CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
easychen authored Mar 23, 2023
1 parent e9657eb commit 9bfbd56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Proxy地址为 http://${IP}:9000

## 接口使用方法

1. openai 的请求地址( https://api.openai.com变更为本 proxy 的地址( 不带斜杠
1. 将原来项目中 openai 的请求地址( 比如 https://api.openai.com中的域名变更为本 proxy 的域名/IP(注意带上端口号
1. 如果设置了PROXY_KEY,在 openai 的 key 后加上 `:<PROXY_KEY>`,如果没有设置,则不需修改

## 说明
Expand All @@ -39,11 +39,11 @@ Proxy地址为 http://${IP}:9000
```js
chatApi= new gpt.ChatGPTAPI({
apiKey: 'sk.....:<proxy_key写这里>',
apiBaseUrl: "http://localhost:9001", // 传递代理地址
apiBaseUrl: "http://localhost:9001/v1", // 替换代理域名/IP
});

```

## 致谢

1. SSE参考了[chatgpt-api项目相关代码](https://github.com/transitive-bullshit/chatgpt-api/blob/main/src/fetch-sse.ts)
1. SSE参考了[chatgpt-api项目相关代码](https://github.com/transitive-bullshit/chatgpt-api/blob/main/src/fetch-sse.ts)

0 comments on commit 9bfbd56

Please sign in to comment.