mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
修复m3e向量模型无法正常处理字符串的问题 (#693)
This commit is contained in:
@@ -25,7 +25,9 @@ export async function getVectorsByText({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof input === 'string') {
|
||||
input = [input];
|
||||
}
|
||||
try {
|
||||
// 获取 chatAPI
|
||||
const ai = getAIApi();
|
||||
|
Reference in New Issue
Block a user