feat: support calc tokens precisely

This commit is contained in:
lanvent
2023-03-26 17:49:49 +08:00
parent 167f10c9f9
commit a3be1fcd8f
2 changed files with 62 additions and 15 deletions

View File

@@ -81,7 +81,10 @@ pip3 install --upgrade openai
**(3) 拓展依赖 (可选)**
语音识别及语音回复相关依赖:[#415](https://github.com/zhayujie/chatgpt-on-wechat/issues/415)。
让会话token数量的计算更加精准:
```bash
pip3 install --upgrade tiktoken
```
## 配置