Skip to content

Commit a0c2bb8

Browse files
committed
fix other eliza error
1 parent 73a4bfd commit a0c2bb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/embedding.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async function getLocalEmbedding(input: string): Promise<number[]> {
143143
try {
144144
return await import("fastembed");
145145
} catch (error) {
146-
elizaLogger.error("Failed to load fastembed,");
146+
elizaLogger.error("Failed to load fastembed.");
147147
throw new Error("fastembed import failed, falling back to remote embedding");
148148
}
149149
})()
@@ -178,7 +178,7 @@ async function getLocalEmbedding(input: string): Promise<number[]> {
178178
const embedding = await embeddingModel.queryEmbed(trimmedInput);
179179
return embedding;
180180
} catch (error) {
181-
elizaLogger.warn("Local embedding not supported in browser, falling back to remote embedding:", error);
181+
elizaLogger.warn("Local embedding not supported in browser, falling back to remote embedding.");
182182
throw new Error("Local embedding not supported in browser");
183183
}
184184
}

0 commit comments

Comments
 (0)