From 44481a6b99c4020f02324b0d7d81fb6bb7e46e28 Mon Sep 17 00:00:00 2001 From: Sayo Date: Thu, 13 Feb 2025 19:14:02 +0530 Subject: [PATCH] added todo flag --- packages/plugin-anthropic/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-anthropic/src/index.ts b/packages/plugin-anthropic/src/index.ts index d2bbbb5340..e04705d992 100644 --- a/packages/plugin-anthropic/src/index.ts +++ b/packages/plugin-anthropic/src/index.ts @@ -85,6 +85,8 @@ export const anthropicPlugin: Plugin = { return text; }, [ModelClass.TEXT_EMBEDDING]: async (runtime, text: string | null) => { + + // TODO: Make this fallback only!!! if (!text) return new Array(1536).fill(0); const model = await FlagEmbedding.init({ model: EmbeddingModel.BGESmallENV15 });