You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

HistoryTransform.cs 425 B

1234567891011121314151617
  1. using static LLama.LLamaTransforms;
  2. namespace LLamaSharp.SemanticKernel.ChatCompletion;
  3. /// <summary>
  4. /// Default HistoryTransform Patch
  5. /// </summary>
  6. public class HistoryTransform : DefaultHistoryTransform
  7. {
  8. /// <inheritdoc/>
  9. public override string HistoryToText(global::LLama.Common.ChatHistory history)
  10. {
  11. var prompt = base.HistoryToText(history);
  12. return prompt + "\nAssistant:";
  13. }
  14. }