Commit 9fe2708d by 范立洲

feat: update README

parent 3f53302e
# yunheBot
## 问答接口
url: /api/v1/completion
methon: POST
request:
```json
{
"prompt": "your question here", // 提问
"score": 0.8, // 置信度,表示计算得分超过0.8则入选
"limit": 1, // 备选答案数量,目前返回得分最高的答案
"stream": false // 是否流式返回,预留
}
```
Response:
```json
{
"code": 200, // 状态码,200为请求成功,其余为失败
"data": {
"answer": "my answer here",
"question": "your question here",
"type": "demo" // 跳转类型
},
"message": "OK" // response消息
}
```
url: /api/v1/completion
methon: POST
request:
```json
{
"prompt": "your question here", // 提问
"score": 0.8, // 置信度,表示计算得分超过0.8则入选
"limit": 1, // 备选答案数量,目前返回得分最高的答案
"stream": false // 是否流式返回,预留
}
```
Response:
```json
{
"code": 200, // 状态码,200为请求成功,其余为失败
"data": {
"answer": "my answer here",
"question": "your question here",
"type": "demo" // 跳转类型
},
"message": "OK" // response消息
}
```
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论