修复m3e向量模型无法正常处理字符串的问题 (#693)

This commit is contained in:
不做了睡大觉
2024-01-05 12:58:50 +08:00
committed by GitHub
parent 828829011a
commit 331d18c88f

View File

@@ -25,7 +25,9 @@ export async function getVectorsByText({
}
}
}
if (typeof input === 'string') {
input = [input];
}
try {
// 获取 chatAPI
const ai = getAIApi();