doc

doc

doc

doc

http error response

remove upload file count token

Add more timeout
This commit is contained in:
Archer
2024-04-03 18:18:18 +08:00
committed by GitHub
parent 8a46372418
commit 3b99e05cdc
6 changed files with 19 additions and 7 deletions

View File

@@ -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);

View File

@@ -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;
@@ -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)
};
}
};