diff --git a/src/services/clipService.ts b/src/services/clipService.ts index 4fa3c04116359c7ec0905ed8845ccf06f844d8a1..a6f69055bb7ac4bc2af79dda1a23962102858ab3 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) {