From 2431ff68e62b909264d89fd8118f1f4bd288630c Mon Sep 17 00:00:00 2001 From: josc146 Date: Sat, 27 May 2023 00:38:39 +0800 Subject: [PATCH] update readme --- README.md | 19 +++++++++++++++++++ README_ZH.md | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/README.md b/README.md index f2cef74..a01312e 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,25 @@ English | [简体中文](README_ZH.md) - Theme switching - Automatic updates +## API Concurrency Stress Testing + +```bash +ab -p body.json -T application/json -c 20 -n 100 -l http://127.0.0.1:8000/chat/completions +``` + +body.json: + +```json +{ + "messages": [ + { + "role": "user", + "content": "Hello" + } + ] +} +``` + ## Todo - [ ] Model training functionality diff --git a/README_ZH.md b/README_ZH.md index fb6da76..2673b24 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -47,6 +47,25 @@ API兼容的接口,这意味着一切ChatGPT客户端都是RWKV客户端。 - 主题切换 - 自动更新 +## API并发压力测试 + +```bash +ab -p body.json -T application/json -c 20 -n 100 -l http://127.0.0.1:8000/chat/completions +``` + +body.json: + +```json +{ + "messages": [ + { + "role": "user", + "content": "Hello" + } + ] +} +``` + ## Todo - [ ] 模型训练功能