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

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

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