perf: generateVector

This commit is contained in:
archer
2023-08-07 17:31:37 +08:00
parent ce729dff1f
commit 251f2225ee
2 changed files with 25 additions and 4 deletions

View File

@@ -44,7 +44,10 @@ export async function getVector({
for (let i = 0; i < input.length; i++) {
if (!input[i]) {
return Promise.reject('向量生成模块输入内容为空');
return Promise.reject({
code: 500,
message: '向量生成模块输入内容为空'
});
}
}