diff --git a/LLama/LLamaContext.cs b/LLama/LLamaContext.cs index f0817f8f..4516517d 100644 --- a/LLama/LLamaContext.cs +++ b/LLama/LLamaContext.cs @@ -63,6 +63,7 @@ namespace LLama /// Model params. /// Encoding to deal with text input. /// The logger. + [Obsolete("Use the LLamaWeights.CreateContext instead")] public LLamaContext(IModelParams @params, string encoding = "UTF-8", ILLamaLogger? logger = null) { Params = @params; @@ -83,6 +84,14 @@ namespace LLama _ctx = nativeContext; } + /// + /// Create a new LLamaContext for the given LLamaWeights + /// + /// + /// + /// + /// + /// public LLamaContext(LLamaWeights model, IModelParams @params, Encoding encoding, ILLamaLogger? logger = null) { if (model.NativeHandle.IsClosed)