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.

SessionParams.cs 899 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace LLama.Common
  5. {
  6. public class SessionParams
  7. {
  8. public string? UserName { get; set; }
  9. public string? AssistantName { get; set; }
  10. public string? SystemName { get; set; }
  11. /// <summary>
  12. /// The prefix of input text. Note that this only works when you
  13. /// use the API with text as input.
  14. /// </summary>
  15. public string? InputPrefix { get; set; }
  16. /// <summary>
  17. /// The suffix of input text. Note that this only works when you
  18. /// use the API with text as input.
  19. /// </summary>
  20. public string? InputSuffix { get; set; }
  21. /// <summary>
  22. /// Whether to trim the names from the text output at the start and end.
  23. /// </summary>
  24. public bool TrimNamesFromOutput { get; set; } = false;
  25. }
  26. }

C#/.NET上易用的LLM高性能推理框架,支持LLaMA和LLaVA系列模型。