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.chatcompletionchunk.md 4.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. # ChatCompletionChunk
  2. Namespace: LLama.OldVersion
  3. ```csharp
  4. public class ChatCompletionChunk : System.IEquatable`1[[LLama.OldVersion.ChatCompletionChunk, LLamaSharp, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null]]
  5. ```
  6. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ChatCompletionChunk](./llama.oldversion.chatcompletionchunk.md)<br>
  7. Implements [IEquatable&lt;ChatCompletionChunk&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1)
  8. ## Properties
  9. ### **Id**
  10. ```csharp
  11. public string Id { get; set; }
  12. ```
  13. #### Property Value
  14. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  15. ### **Model**
  16. ```csharp
  17. public string Model { get; set; }
  18. ```
  19. #### Property Value
  20. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  21. ### **Object**
  22. ```csharp
  23. public string Object { get; set; }
  24. ```
  25. #### Property Value
  26. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  27. ### **Created**
  28. ```csharp
  29. public int Created { get; set; }
  30. ```
  31. #### Property Value
  32. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  33. ### **Choices**
  34. ```csharp
  35. public ChatCompletionChunkChoice[] Choices { get; set; }
  36. ```
  37. #### Property Value
  38. [ChatCompletionChunkChoice[]](./llama.oldversion.chatcompletionchunkchoice.md)<br>
  39. ## Constructors
  40. ### **ChatCompletionChunk(String, String, String, Int32, ChatCompletionChunkChoice[])**
  41. ```csharp
  42. public ChatCompletionChunk(string Id, string Model, string Object, int Created, ChatCompletionChunkChoice[] Choices)
  43. ```
  44. #### Parameters
  45. `Id` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  46. `Model` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  47. `Object` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  48. `Created` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  49. `Choices` [ChatCompletionChunkChoice[]](./llama.oldversion.chatcompletionchunkchoice.md)<br>
  50. ## Methods
  51. ### **ToString()**
  52. ```csharp
  53. public string ToString()
  54. ```
  55. #### Returns
  56. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  57. ### **PrintMembers(StringBuilder)**
  58. ```csharp
  59. protected bool PrintMembers(StringBuilder builder)
  60. ```
  61. #### Parameters
  62. `builder` [StringBuilder](https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder)<br>
  63. #### Returns
  64. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  65. ### **GetHashCode()**
  66. ```csharp
  67. public int GetHashCode()
  68. ```
  69. #### Returns
  70. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  71. ### **Equals(Object)**
  72. ```csharp
  73. public bool Equals(object obj)
  74. ```
  75. #### Parameters
  76. `obj` [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)<br>
  77. #### Returns
  78. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  79. ### **Equals(ChatCompletionChunk)**
  80. ```csharp
  81. public bool Equals(ChatCompletionChunk other)
  82. ```
  83. #### Parameters
  84. `other` [ChatCompletionChunk](./llama.oldversion.chatcompletionchunk.md)<br>
  85. #### Returns
  86. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  87. ### **&lt;Clone&gt;$()**
  88. ```csharp
  89. public ChatCompletionChunk <Clone>$()
  90. ```
  91. #### Returns
  92. [ChatCompletionChunk](./llama.oldversion.chatcompletionchunk.md)<br>
  93. ### **Deconstruct(String&, String&, String&, Int32&, ChatCompletionChunkChoice[]&)**
  94. ```csharp
  95. public void Deconstruct(String& Id, String& Model, String& Object, Int32& Created, ChatCompletionChunkChoice[]& Choices)
  96. ```
  97. #### Parameters
  98. `Id` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)<br>
  99. `Model` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)<br>
  100. `Object` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)<br>
  101. `Created` [Int32&](https://docs.microsoft.com/en-us/dotnet/api/system.int32&)<br>
  102. `Choices` [ChatCompletionChunkChoice[]&](./llama.oldversion.chatcompletionchunkchoice&.md)<br>

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