Skip to content

Commit 328022b

Browse files
committed
Fixed merge conflicts
1 parent 7ec318a commit 328022b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

LLama.Examples/NewVersion/CodingAssistant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static async Task Run()
3131
};
3232
using var model = LLamaWeights.LoadFromFile(parameters);
3333
using var context = model.CreateContext(parameters);
34-
var executor = new InstructExecutor(context, null!, InstructionPrefix, InstructionSuffix);
34+
var executor = new InstructExecutor(context, InstructionPrefix, InstructionSuffix, null);
3535

3636
Console.ForegroundColor = ConsoleColor.Yellow;
3737
Console.WriteLine("The executor has been enabled. In this example, the LLM will follow your instructions." +

LLama/LLamaExecutorBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ public abstract class StatefulExecutorBase : ILLamaExecutor
7575
/// </summary>
7676
/// <param name="context"></param>
7777
/// <param name="logger"></param>
78-
protected StatefulExecutorBase(LLamaContext context)
78+
protected StatefulExecutorBase(LLamaContext context, ILogger? logger = null)
7979
{
80+
_logger = logger;
8081
Context = context;
8182
_pastTokensCount = 0;
8283
_consumedTokensCount = 0;

0 commit comments

Comments
 (0)