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.

llama.oldversion.ichatmodel.md 1.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # IChatModel
  2. Namespace: LLama.OldVersion
  3. #### Caution
  4. The entire LLama.OldVersion namespace will be removed
  5. ---
  6. ```csharp
  7. public interface IChatModel
  8. ```
  9. ## Properties
  10. ### **Name**
  11. ```csharp
  12. public abstract string Name { get; }
  13. ```
  14. #### Property Value
  15. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  16. ## Methods
  17. ### **Chat(String, String, String)**
  18. ```csharp
  19. IEnumerable<string> Chat(string text, string prompt, string encoding)
  20. ```
  21. #### Parameters
  22. `text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  23. `prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  24. `encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  25. #### Returns
  26. [IEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)<br>
  27. ### **InitChatPrompt(String, String)**
  28. Init a prompt for chat and automatically produce the next prompt during the chat.
  29. ```csharp
  30. void InitChatPrompt(string prompt, string encoding)
  31. ```
  32. #### Parameters
  33. `prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  34. `encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  35. ### **InitChatAntiprompt(String[])**
  36. ```csharp
  37. void InitChatAntiprompt(String[] antiprompt)
  38. ```
  39. #### Parameters
  40. `antiprompt` [String[]](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>