fix: dataset data list api adapt (#2878)

* fix: dataset data list api adapt

* update doc version

* perf: fedomain env

* add fedomain env
This commit is contained in:
Archer
2024-10-10 18:10:19 +08:00
committed by GitHub
parent 3878a50d0f
commit 27291faa66
10 changed files with 99 additions and 17 deletions

View File

@@ -1093,6 +1093,22 @@ A2:
{{< tab tabName="请求示例" >}}
{{< markdownify >}}
**4.8.11+**
```bash
curl --location --request POST 'http://localhost:3000/api/core/dataset/data/v2/list' \
--header 'Authorization: Bearer {{authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"offset": 0,
"pageSize": 10,
"collectionId":"65abd4ac9d1448617cba6171",
"searchText":""
}'
```
**4.6.7+**
```bash
curl --location --request POST 'http://localhost:3000/api/core/dataset/data/list' \
--header 'Authorization: Bearer {{authorization}}' \
@@ -1112,10 +1128,13 @@ curl --location --request POST 'http://localhost:3000/api/core/dataset/data/list
{{< markdownify >}}
{{% alert icon=" " context="success" %}}
- pageNum: 偏移量(选填)
- pageNum: 页码(选填)
- pageSize: 每页数量最大30选填
- collectionId: 集合的ID必填
- searchText: 模糊搜索词(选填)
{{% /alert %}}
{{< /markdownify >}}

View File

@@ -10,4 +10,5 @@ weight: 812
## 更新说明
1. 新增 - 全局变量支持更多数据类型
2. 修复 - 文件后缀判断,去除 query 影响。
2. 新增 - FE_DOMAIN 环境变量,配置该环境变量后,上传文件/图片会补全后缀后得到完整地址。(可解决 docx 文件图片链接,有时会无法被模型识别问题)
3. 修复 - 文件后缀判断,去除 query 影响。