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