18 lines
447 B
C#
18 lines
447 B
C#
using LLama.Common;
|
|
using System.Text;
|
|
using static LLama.LLamaTransforms;
|
|
|
|
namespace LLamaSharp.SemanticKernel.ChatCompletion;
|
|
|
|
/// <summary>
|
|
/// Default HistoryTransform Patch
|
|
/// </summary>
|
|
public class HistoryTransform : DefaultHistoryTransform
|
|
{
|
|
/// <inheritdoc/>
|
|
public override string HistoryToText(global::LLama.Common.ChatHistory history)
|
|
{
|
|
return base.HistoryToText(history) + $"{AuthorRole.Assistant}: ";
|
|
}
|
|
}
|