Skip to content

Commit

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

0 comments on commit a314c48

Please sign in to comment.