mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 11:18:19 +08:00
remove the suggested api for completion app (#1347)
This commit is contained in:
parent
9f99c3f55b
commit
3043fbe73b
@ -168,55 +168,6 @@ For high-quality text generation, such as articles, summaries, and translations,
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<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='/parameters'
|
url='/parameters'
|
||||||
method='GET'
|
method='GET'
|
||||||
|
@ -168,55 +168,6 @@ 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'>
|
|
||||||
消息 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='/parameters'
|
url='/parameters'
|
||||||
method='GET'
|
method='GET'
|
||||||
|
Loading…
Reference in New Issue
Block a user