diff --git a/LLama/LLamaEmbedder.cs b/LLama/LLamaEmbedder.cs index 5f7e6c12..0bb3f669 100644 --- a/LLama/LLamaEmbedder.cs +++ b/LLama/LLamaEmbedder.cs @@ -29,9 +29,9 @@ namespace LLama _ctx = weights.CreateContext(@params); } - public LLamaEmbedder(LLamaContext ctx) + public LLamaEmbedder(LLamaWeights weights, IModelParams @params) { - _ctx = ctx; + _ctx = weights.CreateContext(@params); } ///