diff --git a/src/services/clipService.ts b/src/services/clipService.ts index 4fa3c0411..a6f69055b 100644 --- a/src/services/clipService.ts +++ b/src/services/clipService.ts @@ -120,7 +120,7 @@ export async function computeTextEmbedding( text: string ): Promise { try { - const clipModelPath = getClipModelPath(); + const clipModelPath = await getClipModelPath(); const ggmlclipPath = getGGMLClipPath(); const cmd = TEXT_EMBEDDING_EXTRACT_CMD.map((cmdPart) => { if (cmdPart === GGMLCLIP_PATH_PLACEHOLDER) {