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.chatcompletion.md 4.3 kB

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