Skip to content

Commit

Permalink
added todo flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsayo committed Feb 13, 2025
1 parent 1a5cd64 commit 44481a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-anthropic/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 44481a6

Please sign in to comment.