Skip to content

Commit

Permalink
doc (#1131)
Browse files Browse the repository at this point in the history
doc

doc

doc

doc

http error response

remove upload file count token

Add more timeout
  • Loading branch information
c121914yu authored Apr 3, 2024
1 parent 8a46372 commit 3b99e05
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
4 changes: 4 additions & 0 deletions docSite/content/docs/development/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,7 @@ mongo连接失败,查看mongo的运行状态对应日志。
### 首次部署,root用户提示未注册
日志会有错误提示。大概率是没有启动 Mongo 副本集模式。
### 无法导出知识库、无法使用语音输入/播报
没配置 SSL 证书,无权使用部分功能。
9 changes: 6 additions & 3 deletions docSite/content/docs/development/upgrading/471.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'V4.7.1'
title: 'V4.7.1(进行中)'
description: 'FastGPT V4.7.1 更新说明'
icon: 'upgrade'
draft: false
Expand All @@ -24,5 +24,8 @@ curl --location --request POST 'https://{{host}}/api/admin/clearInvalidData' \
1. 新增 - Pptx 和 xlsx 文件读取。但所有文件读取都放服务端,会消耗更多的服务器资源,以及无法在上传时预览更多内容。
2. 新增 - 集成 Laf 云函数,可以读取 Laf 账号中的云函数作为 HTTP 模块。
3. 新增 - 定时器,清理垃圾数据。(采用小范围清理,会清理最近n个小时的,所以请保证服务持续运行,长时间不允许,可以继续执行 clearInvalidData 的接口进行全量清理。)
4. 修改 - csv导入模板,取消 header 校验,自动获取前两列。
5. 修复 - 工具调用模块连线数据类型校验错误。
4. 商业版新增 - 后台配置系统通知。
5. 修改 - csv导入模板,取消 header 校验,自动获取前两列。
6. 修复 - 工具调用模块连线数据类型校验错误。
7. 修复 - 自定义索引输入时,解构数据失败。
8. 修复 - rerank 模型数据格式。
2 changes: 1 addition & 1 deletion packages/service/core/dataset/training/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export async function pushDataListToTrainingQueue({
const text = item.q + item.a;

// count q token
const token = countPromptTokens(item.q);
const token = item.q.length;

if (token > maxToken) {
filterResult.overToken.push(item);
Expand Down
4 changes: 3 additions & 1 deletion packages/service/core/workflow/dispatch/tools/http468.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { valueTypeFormat } from '../utils';
import { SERVICE_LOCAL_HOST } from '../../../../common/system/tools';
import { addLog } from '../../../../common/system/log';
import { DispatchNodeResultType } from '@fastgpt/global/core/module/runtime/type';
import { getErrText } from '@fastgpt/global/common/error/utils';

type PropsArrType = {
key: string;
Expand Down Expand Up @@ -139,7 +140,8 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise<H
body: Object.keys(requestBody).length > 0 ? requestBody : undefined,
headers: Object.keys(headers).length > 0 ? headers : undefined,
httpResult: { error: formatHttpError(error) }
}
},
[ModuleOutputKeyEnum.httpRawResponse]: getErrText(error)
};
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ ${toolResponse}`}
</Box>
);
}
return null;
})}
</Flex>
);
Expand Down
6 changes: 4 additions & 2 deletions projects/app/src/web/core/dataset/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ export const getDatasetCollectionById = (id: string) =>
export const postDatasetCollection = (data: CreateDatasetCollectionParams) =>
POST<string>(`/core/dataset/collection/create`, data);
export const postCreateDatasetFileCollection = (data: FileIdCreateDatasetCollectionParams) =>
POST<{ collectionId: string }>(`/core/dataset/collection/create/file`, data);
POST<{ collectionId: string }>(`/core/dataset/collection/create/file`, data, { timeout: 120000 });
export const postCreateDatasetLinkCollection = (data: LinkCreateDatasetCollectionParams) =>
POST<{ collectionId: string }>(`/core/dataset/collection/create/link`, data);
export const postCreateDatasetTextCollection = (data: TextCreateDatasetCollectionParams) =>
POST<{ collectionId: string }>(`/core/dataset/collection/create/text`, data);
export const postCreateDatasetCsvTableCollection = (data: CsvTableCreateDatasetCollectionParams) =>
POST<{ collectionId: string }>(`/core/dataset/collection/create/csvTable`, data);
POST<{ collectionId: string }>(`/core/dataset/collection/create/csvTable`, data, {
timeout: 120000
});

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

0 comments on commit 3b99e05

Please sign in to comment.