@@ -118,6 +118,7 @@ public struct ChatChoice
118118 public ChatMessage Delta { get ; set ; }
119119 public int ? Index { get ; set ; }
120120 public string FinishReason { get ; set ; }
121+ public string Logprobs { get ; set ; }
121122 }
122123
123124 public struct ChatMessage
@@ -160,63 +161,7 @@ public struct CreateAudioResponse: IResponse
160161 public string Text { get ; set ; }
161162 }
162163 #endregion
163-
164- #region Completions API Data Types
165- public sealed class CreateCompletionRequest
166- {
167- public string Model { get ; set ; }
168- public string Prompt { get ; set ; } = "<|endoftext|>" ;
169- public string Suffix { get ; set ; }
170- public int ? MaxTokens { get ; set ; } = 16 ;
171- public float ? Temperature { get ; set ; } = 1 ;
172- public float ? TopP { get ; set ; } = 1 ;
173- public int N { get ; set ; } = 1 ;
174- public bool Stream { get ; set ; } = false ;
175- public int ? Logpropbs { get ; set ; }
176- public bool ? Echo { get ; set ; } = false ;
177- public string Stop { get ; set ; }
178- public float ? PresencePenalty { get ; set ; } = 0 ;
179- public float ? FrequencyPenalty { get ; set ; } = 0 ;
180- public int ? BestOf { get ; set ; } = 1 ;
181- public Dictionary < string , string > LogitBias { get ; set ; }
182- public string User { get ; set ; }
183- }
184-
185- public struct CreateCompletionResponse : IResponse
186- {
187- public ApiError Error { get ; set ; }
188- public string Warning { get ; set ; }
189- public string Id { get ; set ; }
190- public string Object { get ; set ; }
191- public long Created { get ; set ; }
192- public string Model { get ; set ; }
193- public List < Choice > Choices { get ; set ; }
194- public Usage Usage { get ; set ; }
195- }
196- #endregion
197-
198- #region Edits API Data Types
199- public sealed class CreateEditRequest
200- {
201- public string Model { get ; set ; }
202- public string Input { get ; set ; } = "" ;
203- public string Instruction { get ; set ; }
204- public float ? Temperature { get ; set ; } = 1 ;
205- public float ? TopP { get ; set ; } = 1 ;
206- public int ? N { get ; set ; } = 1 ;
207- }
208164
209- public struct CreateEditResponse : IResponse
210- {
211- public ApiError Error { get ; set ; }
212- public string Warning { get ; set ; }
213- public string Object { get ; set ; }
214- public long Created { get ; set ; }
215- public List < Choice > Choices { get ; set ; }
216- public Usage Usage { get ; set ; }
217- }
218- #endregion
219-
220165 #region Images API Data Types
221166 public class CreateImageRequestBase
222167 {
0 commit comments