mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 16:55:57 +08:00
doc: add suggested questions back (#2771)
This commit is contained in:
parent
b75d8ca621
commit
8b1e35d7dc
@ -427,6 +427,53 @@ Chat applications support session persistence, allowing previous chat history to
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<Heading
|
||||||
|
url='/messages/{message_id}/suggested'
|
||||||
|
method='GET'
|
||||||
|
title='next suggested questions'
|
||||||
|
name='#suggested'
|
||||||
|
/>
|
||||||
|
<Row>
|
||||||
|
<Col>
|
||||||
|
Get next questions suggestions for the current message
|
||||||
|
|
||||||
|
### Path Params
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<Property name='message_id' type='string' key='message_id'>
|
||||||
|
Message ID
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
</Col>
|
||||||
|
<Col sticky>
|
||||||
|
|
||||||
|
<CodeGroup title="Request" tag="GET" label="/messages/{message_id}/suggested" targetCode={`curl --location --request GET '${props.appDetail.api_base_url}/messages/{message_id}/suggested \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--header 'Content-Type: application/json'`}>
|
||||||
|
|
||||||
|
```bash {{ title: 'cURL' }}
|
||||||
|
curl --location --request GET '${props.appDetail.api_base_url}/messages/{message_id}/suggested' \
|
||||||
|
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
|
||||||
|
--header 'Content-Type: application/json' \
|
||||||
|
```
|
||||||
|
|
||||||
|
</CodeGroup>
|
||||||
|
|
||||||
|
<CodeGroup title="Response">
|
||||||
|
```json {{ title: 'Response' }}
|
||||||
|
{
|
||||||
|
"result": "success",
|
||||||
|
"data": [
|
||||||
|
"a",
|
||||||
|
"b",
|
||||||
|
"c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
</CodeGroup>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
<Heading
|
<Heading
|
||||||
url='/messages'
|
url='/messages'
|
||||||
method='GET'
|
method='GET'
|
||||||
|
@ -442,6 +442,55 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<Heading
|
||||||
|
url='/messages/{message_id}/suggested'
|
||||||
|
method='GET'
|
||||||
|
title='获取下一轮建议问题列表'
|
||||||
|
name='#suggested'
|
||||||
|
/>
|
||||||
|
<Row>
|
||||||
|
<Col>
|
||||||
|
获取下一轮建议问题列表。
|
||||||
|
|
||||||
|
### Path Params
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<Property name='message_id' type='string' key='message_id'>
|
||||||
|
Message ID
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
</Col>
|
||||||
|
<Col sticky>
|
||||||
|
|
||||||
|
<CodeGroup title="Request" tag="GET" label="/messages/{message_id}/suggested" targetCode={`curl --location --request GET '${props.appDetail.api_base_url}/messages/{message_id}/suggested \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--header 'Content-Type: application/json'`}>
|
||||||
|
|
||||||
|
```bash {{ title: 'cURL' }}
|
||||||
|
curl --location --request GET '${props.appDetail.api_base_url}/messages/{message_id}/suggested' \
|
||||||
|
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
|
||||||
|
--header 'Content-Type: application/json' \
|
||||||
|
```
|
||||||
|
|
||||||
|
</CodeGroup>
|
||||||
|
|
||||||
|
<CodeGroup title="Response">
|
||||||
|
```json {{ title: 'Response' }}
|
||||||
|
{
|
||||||
|
"result": "success",
|
||||||
|
"data": [
|
||||||
|
"a",
|
||||||
|
"b",
|
||||||
|
"c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
</CodeGroup>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
<Heading
|
<Heading
|
||||||
url='/messages'
|
url='/messages'
|
||||||
method='GET'
|
method='GET'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user