Browse Source

Fixed merge conflicts

tags/v0.6.0
Martin Evans 2 years ago
parent
commit
328022b13d
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      LLama.Examples/NewVersion/CodingAssistant.cs
  2. +2
    -1
      LLama/LLamaExecutorBase.cs

+ 1
- 1
LLama.Examples/NewVersion/CodingAssistant.cs View File

@@ -31,7 +31,7 @@
};
using var model = LLamaWeights.LoadFromFile(parameters);
using var context = model.CreateContext(parameters);
var executor = new InstructExecutor(context, null!, InstructionPrefix, InstructionSuffix);
var executor = new InstructExecutor(context, InstructionPrefix, InstructionSuffix, null);

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


+ 2
- 1
LLama/LLamaExecutorBase.cs View File

@@ -75,8 +75,9 @@ namespace LLama
/// </summary>
/// <param name="context"></param>
/// <param name="logger"></param>
protected StatefulExecutorBase(LLamaContext context)
protected StatefulExecutorBase(LLamaContext context, ILogger? logger = null)
{
_logger = logger;
Context = context;
_pastTokensCount = 0;
_consumedTokensCount = 0;


Loading…
Cancel
Save