Skip to content

Commit 3b99e05

Browse files
authored
doc (#1131)
doc doc doc doc http error response remove upload file count token Add more timeout
1 parent 8a46372 commit 3b99e05

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

docSite/content/docs/development/docker.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,7 @@ mongo连接失败,查看mongo的运行状态对应日志。
270270
### 首次部署,root用户提示未注册
271271
272272
日志会有错误提示。大概率是没有启动 Mongo 副本集模式。
273+
274+
### 无法导出知识库、无法使用语音输入/播报
275+
276+
没配置 SSL 证书,无权使用部分功能。

docSite/content/docs/development/upgrading/471.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'V4.7.1'
2+
title: 'V4.7.1(进行中)'
33
description: 'FastGPT V4.7.1 更新说明'
44
icon: 'upgrade'
55
draft: false
@@ -24,5 +24,8 @@ curl --location --request POST 'https://{{host}}/api/admin/clearInvalidData' \
2424
1. 新增 - Pptx 和 xlsx 文件读取。但所有文件读取都放服务端,会消耗更多的服务器资源,以及无法在上传时预览更多内容。
2525
2. 新增 - 集成 Laf 云函数,可以读取 Laf 账号中的云函数作为 HTTP 模块。
2626
3. 新增 - 定时器,清理垃圾数据。(采用小范围清理,会清理最近n个小时的,所以请保证服务持续运行,长时间不允许,可以继续执行 clearInvalidData 的接口进行全量清理。)
27-
4. 修改 - csv导入模板,取消 header 校验,自动获取前两列。
28-
5. 修复 - 工具调用模块连线数据类型校验错误。
27+
4. 商业版新增 - 后台配置系统通知。
28+
5. 修改 - csv导入模板,取消 header 校验,自动获取前两列。
29+
6. 修复 - 工具调用模块连线数据类型校验错误。
30+
7. 修复 - 自定义索引输入时,解构数据失败。
31+
8. 修复 - rerank 模型数据格式。

packages/service/core/dataset/training/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export async function pushDataListToTrainingQueue({
130130
const text = item.q + item.a;
131131

132132
// count q token
133-
const token = countPromptTokens(item.q);
133+
const token = item.q.length;
134134

135135
if (token > maxToken) {
136136
filterResult.overToken.push(item);

packages/service/core/workflow/dispatch/tools/http468.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { valueTypeFormat } from '../utils';
1010
import { SERVICE_LOCAL_HOST } from '../../../../common/system/tools';
1111
import { addLog } from '../../../../common/system/log';
1212
import { DispatchNodeResultType } from '@fastgpt/global/core/module/runtime/type';
13+
import { getErrText } from '@fastgpt/global/common/error/utils';
1314

1415
type PropsArrType = {
1516
key: string;
@@ -139,7 +140,8 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise<H
139140
body: Object.keys(requestBody).length > 0 ? requestBody : undefined,
140141
headers: Object.keys(headers).length > 0 ? headers : undefined,
141142
httpResult: { error: formatHttpError(error) }
142-
}
143+
},
144+
[ModuleOutputKeyEnum.httpRawResponse]: getErrText(error)
143145
};
144146
}
145147
};

projects/app/src/components/ChatBox/components/ChatItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ ${toolResponse}`}
192192
</Box>
193193
);
194194
}
195+
return null;
195196
})}
196197
</Flex>
197198
);

projects/app/src/web/core/dataset/api.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ export const getDatasetCollectionById = (id: string) =>
7979
export const postDatasetCollection = (data: CreateDatasetCollectionParams) =>
8080
POST<string>(`/core/dataset/collection/create`, data);
8181
export const postCreateDatasetFileCollection = (data: FileIdCreateDatasetCollectionParams) =>
82-
POST<{ collectionId: string }>(`/core/dataset/collection/create/file`, data);
82+
POST<{ collectionId: string }>(`/core/dataset/collection/create/file`, data, { timeout: 120000 });
8383
export const postCreateDatasetLinkCollection = (data: LinkCreateDatasetCollectionParams) =>
8484
POST<{ collectionId: string }>(`/core/dataset/collection/create/link`, data);
8585
export const postCreateDatasetTextCollection = (data: TextCreateDatasetCollectionParams) =>
8686
POST<{ collectionId: string }>(`/core/dataset/collection/create/text`, data);
8787
export const postCreateDatasetCsvTableCollection = (data: CsvTableCreateDatasetCollectionParams) =>
88-
POST<{ collectionId: string }>(`/core/dataset/collection/create/csvTable`, data);
88+
POST<{ collectionId: string }>(`/core/dataset/collection/create/csvTable`, data, {
89+
timeout: 120000
90+
});
8991

9092
export const putDatasetCollectionById = (data: UpdateDatasetCollectionParams) =>
9193
POST(`/core/dataset/collection/update`, data);

0 commit comments

Comments
 (0)