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.1 kB

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