Skip to content

Commit

Permalink
limit
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Feb 22, 2023
1 parent 65e5c18 commit 7048c6b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ port = 9559
```

- Config/service.json

```json5
{
// ....other config

// ******Models
"backend": {
"type": "openai",
Expand Down
26 changes: 26 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,28 @@ host = "127.0.0.1"
port = 9559
```

- Config/service.json

```json5
{
// ....other config

// ******Models
"backend": {
"type": "openai",
// TYPE!
"openai": {
"model": "text-davinci-003",
"token_limit": 4000
},
"chatgpt": {
"api": null,
"agree": false
}
},
}
```

### 🪶 App Token

- Telegram
Expand Down Expand Up @@ -138,11 +160,15 @@ python3 main.py
# run bot
pm2 start pm.json
```

查看机器人的运行状况

```
pm2 monit
```

停止运行机器人

```
pm2 stop pm2.json
```
Expand Down

0 comments on commit 7048c6b

Please sign in to comment.