Commit 331d18c8 by 不做了睡大觉 Committed by GitHub

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

parent 82882901
...@@ -25,7 +25,9 @@ export async function getVectorsByText({ ...@@ -25,7 +25,9 @@ export async function getVectorsByText({
} }
} }
} }
if (typeof input === 'string') {
input = [input];
}
try { try {
// 获取 chatAPI // 获取 chatAPI
const ai = getAIApi(); const ai = getAIApi();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment