请求载荷大小限制提高到100mb,增加新的异常信息

This commit is contained in:
Vinlic
2024-03-15 18:34:55 +08:00
parent fc5c13b650
commit 25606dc1ea
3 changed files with 9 additions and 6 deletions

View File

@@ -461,6 +461,8 @@ function checkResult(result: AxiosResponse, refreshToken: string) {
return result.data;
if (error_type == 'auth.token.invalid')
accessTokenMap.delete(refreshToken);
if (error_type == 'chat.user_stream_pushing')
throw new APIException(EX.API_CHAT_STREAM_PUSHING);
throw new APIException(EX.API_REQUEST_FAILED, `[请求kimi失败]: ${message}`);
}