修复m3e向量模型无法正常处理字符串的问题 (#693)
This commit is contained in:
parent
828829011a
commit
331d18c88f
@ -25,7 +25,9 @@ export async function getVectorsByText({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (typeof input === 'string') {
|
||||||
|
input = [input];
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
// 获取 chatAPI
|
// 获取 chatAPI
|
||||||
const ai = getAIApi();
|
const ai = getAIApi();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user