chore: improve conversation list and rename docs (#11187)
This commit is contained in:
@@ -648,16 +648,13 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
|
||||
アプリケーション内で開発者によって一意に定義されるべきです。
|
||||
</Property>
|
||||
<Property name='last_id' type='string' key='last_id'>
|
||||
現在のページの最後の記録のID、デフォルトはnullです。
|
||||
(Optional)現在のページの最後の記録のID、デフォルトはnullです。
|
||||
</Property>
|
||||
<Property name='limit' type='int' key='limit'>
|
||||
1回のリクエストで返す記録の数、デフォルトは最新の20件です。
|
||||
</Property>
|
||||
<Property name='pinned' type='bool' key='pinned'>
|
||||
ピン留めされた会話のみを`true`として返し、非ピン留めを`false`として返します
|
||||
(Optional)1回のリクエストで返す記録の数、デフォルトは最新の20件です。最大100、最小1。
|
||||
</Property>
|
||||
<Property name='sort_by' type='string' key='sort_by'>
|
||||
ソートフィールド(オプション)、デフォルト:-updated_at(更新時間で降順にソート)
|
||||
(Optional)ソートフィールド、デフォルト:-updated_at(更新時間で降順にソート)
|
||||
- 利用可能な値:created_at, -created_at, updated_at, -updated_at
|
||||
- フィールドの前の記号は順序または逆順を表し、"-"は逆順を表します。
|
||||
</Property>
|
||||
@@ -670,6 +667,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
|
||||
- `inputs` (array[object]) ユーザー入力パラメータ。
|
||||
- `introduction` (string) 紹介
|
||||
- `created_at` (timestamp) 作成タイムスタンプ、例:1705395332
|
||||
- `updated_at` (timestamp) 更新タイムスタンプ、例:1705395332
|
||||
- `has_more` (bool)
|
||||
- `limit` (int) 返されたエントリ数、入力がシステム制限を超える場合、システム制限数が返されます
|
||||
|
||||
@@ -699,7 +697,8 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
|
||||
"myName": "Lucy"
|
||||
},
|
||||
"status": "normal",
|
||||
"created_at": 1679667915
|
||||
"created_at": 1679667915,
|
||||
"updated_at": 1679667915
|
||||
},
|
||||
{
|
||||
"id": "hSIhXBhNe8X1d8Et"
|
||||
@@ -781,10 +780,10 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
|
||||
|
||||
<Properties>
|
||||
<Property name='name' type='string' key='name'>
|
||||
会話の名前。`auto_generate`が`true`に設定されている場合、このパラメータは省略できます。
|
||||
(Optional)会話の名前。`auto_generate`が`true`に設定されている場合、このパラメータは省略できます。
|
||||
</Property>
|
||||
<Property name='auto_generate' type='bool' key='auto_generate'>
|
||||
タイトルを自動生成、デフォルトは`false`
|
||||
(Optional)タイトルを自動生成、デフォルトは`false`
|
||||
</Property>
|
||||
<Property name='user' type='string' key='user'>
|
||||
ユーザー識別子、開発者によって定義され、アプリケーション内で一意であることを保証しなければなりません。
|
||||
@@ -794,13 +793,15 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
|
||||
### 応答
|
||||
- `id` (string) 会話ID
|
||||
- `name` (string) 会話名
|
||||
- `inputs` array[object] ユーザー入力パラメータ。
|
||||
- `inputs` array[object] ユーザー入力パラメータ
|
||||
- `status` (string) 会話状態
|
||||
- `introduction` (string) 紹介
|
||||
- `created_at` (timestamp) 作成タイムスタンプ、例:1705395332
|
||||
- `updated_at` (timestamp) 更新タイムスタンプ、例:1705395332
|
||||
</Col>
|
||||
<Col sticky>
|
||||
|
||||
<CodeGroup title="リクエスト" 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}'`}>
|
||||
<CodeGroup title="リクエスト" 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 "auto_generate": true, \n "user": "abc-123"\n}'`}>
|
||||
|
||||
```bash {{ title: 'cURL' }}
|
||||
curl -X POST '${props.appDetail.api_base_url}/conversations/{conversation_id}/name' \
|
||||
@@ -808,6 +809,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
|
||||
--header 'Authorization: Bearer {api_key}' \
|
||||
--data-raw '{
|
||||
"name": "",
|
||||
"auto_generate": true,
|
||||
"user": "abc-123"
|
||||
}'
|
||||
```
|
||||
@@ -820,8 +822,10 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
|
||||
"id": "cd78daf6-f9e4-4463-9ff2-54257230a0ce",
|
||||
"name": "チャット vs AI",
|
||||
"inputs": {},
|
||||
"status": "normal",
|
||||
"introduction": "",
|
||||
"created_at": 1705569238
|
||||
"created_at": 1705569238,
|
||||
"updated_at": 1705569238
|
||||
}
|
||||
```
|
||||
</CodeGroup>
|
||||
|
||||
Reference in New Issue
Block a user