From 08f29fb107b7d6dd90d329e9479181d065b4da4e Mon Sep 17 00:00:00 2001 From: xiang <1984871009@qq.com> Date: Thu, 4 May 2023 21:52:29 +0800 Subject: [PATCH] feat: test method --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 4a8632a..5e0445b 100644 --- a/README.md +++ b/README.md @@ -52,3 +52,15 @@ yarn start ``` docker-compose up --build -d ``` + +## test with curl + +common request +```shell +curl "http://127.0.0.1:3000/ask?prompt=你好" +``` + +request event-stream +```shell +curl "http://127.0.0.1:3000/ask/stream?prompt=你好" +```