diff --git a/LLama/LLamaExecutorBase.cs b/LLama/LLamaExecutorBase.cs index 242ae10b..0c8e4679 100644 --- a/LLama/LLamaExecutorBase.cs +++ b/LLama/LLamaExecutorBase.cs @@ -75,10 +75,9 @@ namespace LLama /// /// /// - protected StatefulExecutorBase(LLamaContext context, ILogger? logger = null) + protected StatefulExecutorBase(LLamaContext context) { Context = context; - _logger = logger; _pastTokensCount = 0; _consumedTokensCount = 0; _n_session_consumed = 0; diff --git a/LLama/LLamaInstructExecutor.cs b/LLama/LLamaInstructExecutor.cs index a4e7c0fd..c7cb55fe 100644 --- a/LLama/LLamaInstructExecutor.cs +++ b/LLama/LLamaInstructExecutor.cs @@ -32,7 +32,7 @@ namespace LLama /// /// public InstructExecutor(LLamaContext context, ILogger logger = null!, string instructionPrefix = "\n\n### Instruction:\n\n", - string instructionSuffix = "\n\n### Response:\n\n") : base(context, logger) + string instructionSuffix = "\n\n### Response:\n\n") : base(context) { _inp_pfx = Context.Tokenize(instructionPrefix, true); _inp_sfx = Context.Tokenize(instructionSuffix, false); diff --git a/LLama/LLamaInteractExecutor.cs b/LLama/LLamaInteractExecutor.cs index 0f374e09..8247ca10 100644 --- a/LLama/LLamaInteractExecutor.cs +++ b/LLama/LLamaInteractExecutor.cs @@ -27,7 +27,7 @@ namespace LLama /// /// /// - public InteractiveExecutor(LLamaContext context, ILogger logger = null!) : base(context, logger) + public InteractiveExecutor(LLamaContext context) : base(context) { _llama_token_newline = NativeApi.llama_token_nl(Context.NativeHandle); } diff --git a/LLama/LLamaStatelessExecutor.cs b/LLama/LLamaStatelessExecutor.cs index 08a78f9e..d1b73c2f 100644 --- a/LLama/LLamaStatelessExecutor.cs +++ b/LLama/LLamaStatelessExecutor.cs @@ -36,9 +36,8 @@ namespace LLama /// /// /// - public StatelessExecutor(LLamaWeights weights, IContextParams @params, ILogger logger = null!) + public StatelessExecutor(LLamaWeights weights, IContextParams @params) { - _logger = logger; _weights = weights; _params = @params; diff --git a/LLama/LLamaWeights.cs b/LLama/LLamaWeights.cs index 76d46d25..5dc2024d 100644 --- a/LLama/LLamaWeights.cs +++ b/LLama/LLamaWeights.cs @@ -81,11 +81,10 @@ namespace LLama /// Create a llama_context using this model /// /// - /// /// - public LLamaContext CreateContext(IContextParams @params, ILogger logger = default!) + public LLamaContext CreateContext(IContextParams @params) { - return new LLamaContext(this, @params, logger); + return new LLamaContext(this, @params); } } }