Sfoglia il codice sorgente

fix: update conversation session naming and API path in documentation (#10589)

tags/0.11.2
Benjamin 11 mesi fa
parent
commit
0867821ae7
Nessun account collegato all'indirizzo email del committer

+ 6
- 2
web/app/components/develop/template/template_advanced_chat.en.mdx Vedi File

<Row> <Row>
<Col> <Col>
### Request Body ### Request Body
Rename the session, the session name is used for display on clients that support multiple sessions.

### Path
- `conversation_id` (string) Conversation ID


<Properties> <Properties>
<Property name='name' type='string' key='name'> <Property name='name' type='string' key='name'>
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>
<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \
curl -X POST '${props.appDetail.api_base_url}/conversations/{conversation_id}/name' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header 'Authorization: Bearer {api_key}' \ --header 'Authorization: Bearer {api_key}' \
--data-raw '{ --data-raw '{

+ 5
- 2
web/app/components/develop/template/template_advanced_chat.zh.mdx Vedi File

<Col> <Col>
对会话进行重命名,会话名称用于显示在支持多会话的客户端上。 对会话进行重命名,会话名称用于显示在支持多会话的客户端上。


### Path
- `conversation_id` (string) 会话 ID

### Request Body ### Request Body


<Properties> <Properties>
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>
<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \
curl -X POST '${props.appDetail.api_base_url}/conversations/{conversation_id}/name' \
--header 'Authorization: Bearer {api_key}' \ --header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw '{ --data-raw '{

+ 6
- 2
web/app/components/develop/template/template_chat.en.mdx Vedi File

<Row> <Row>
<Col> <Col>
### Request Body ### Request Body
Rename the session, the session name is used for display on clients that support multiple sessions.

### Path
- `conversation_id` (string) Conversation ID


<Properties> <Properties>
<Property name='name' type='string' key='name'> <Property name='name' type='string' key='name'>
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>
<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \
curl -X POST '${props.appDetail.api_base_url}/conversations/{conversation_id}/name' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header 'Authorization: Bearer {api_key}' \ --header 'Authorization: Bearer {api_key}' \
--data-raw '{ --data-raw '{

+ 5
- 2
web/app/components/develop/template/template_chat.zh.mdx Vedi File

<Col> <Col>
对会话进行重命名,会话名称用于显示在支持多会话的客户端上。 对会话进行重命名,会话名称用于显示在支持多会话的客户端上。


### Path
- `conversation_id` (string) 会话 ID

### Request Body ### Request Body


<Properties> <Properties>
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>
<CodeGroup title="Request" tag="POST" label="/conversations/:conversation_id/name" targetCode={`curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X POST '${props.appDetail.api_base_url}/conversations/:conversation_id/name' \
curl -X POST '${props.appDetail.api_base_url}/conversations/{conversation_id}/name' \
--header 'Authorization: Bearer {api_key}' \ --header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw '{ --data-raw '{

Loading…
Annulla
Salva