瀏覽代碼

refine doc about API: completion (#829)

### What problem does this PR solve?
#808 

### Type of change

- [x] Documentation Update
tags/v0.6.0
KevinHuSh 1 年之前
父節點
當前提交
2bfacd0469
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      docs/conversation_api.md

+ 3
- 1
docs/conversation_api.md 查看文件

@@ -220,8 +220,10 @@ This will be called to get the answer to users' questions.
| name | type | optional | description|
|------|-------|----|----|
| conversation_id| string | No | This is from calling /new_conversation.|
| messages| json | No | All the conversation history stored here including the latest user's question.|
| messages| json | No | The latest question, such as `[{"role": "user", "content": "How are you doing!"}]`|
| quote | bool | Yes | Default: true |
| stream | bool | Yes | Default: true |
| doc_ids | string | Yes | Document IDs which is delimited by comma, like `c790da40ea8911ee928e0242ac180005,c790da40ea8911ee928e0242ac180005`. The retrieved content is limited in these documents. |
### Response
```json

Loading…
取消
儲存