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.

IChatModel.cs 681 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. #pragma warning disable
  4. // ReSharper disable all
  5. namespace LLama.OldVersion
  6. {
  7. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  8. public interface IChatModel
  9. {
  10. string Name { get; }
  11. IEnumerable<string> Chat(string text, string? prompt = null, string encoding = "UTF-8");
  12. /// <summary>
  13. /// Init a prompt for chat and automatically produce the next prompt during the chat.
  14. /// </summary>
  15. /// <param name="prompt"></param>
  16. void InitChatPrompt(string prompt, string encoding = "UTF-8");
  17. void InitChatAntiprompt(string[] antiprompt);
  18. }
  19. }