Skip to content

Commit

Permalink
feat: Update README_zh.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangsx authored Jun 7, 2023
1 parent 9babdcb commit 89ef43f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ curl '127.0.0.1:3000/ask?messages=[{"role":"system","content":"IMPORTANT: You ar
curl "http://127.0.0.1:3000/ask?prompt=hello&model=forefront"
```

request event-stream
stream类型,会不停地返回,不同网站返回的内容格式有所不同,后面目标是统一返回

```shell
# test model mcbbs
curl '127.0.0.1:3000/ask/stream?messages=[{"role":"system","content":"IMPORTANT: You are a virtual assistant powered by the gpt-3.5-turbo model, now time is 2023/6/3 13:42:27}"},{"role":"user","content":"你好\n"},{"role":"assistant","content":"你好!有什么我可以帮助你的吗?"},{"role":"user","content":"写个冒泡排序\n"}]&prompt=test&model=mcbbs&parse=false'

# test model forefront, use gpt4
# test model forefront, 返回的是eventstreaam 包含三个事件 data(数据流) error(错误事件) done(会话完成,这个里面会携带完整的数据,这个里面的markdown格式是没有错乱的,data里面的格式可能会有问题)
curl "http://127.0.0.1:3000/ask/stream?prompt=hello&model=forefront"

# test you
Expand Down

0 comments on commit 89ef43f

Please sign in to comment.