@@ -161,63 +161,7 @@ public struct CreateAudioResponse: IResponse
161161 public string Text { get ; set ; }
162162 }
163163 #endregion
164-
165- #region Completions API Data Types
166- public sealed class CreateCompletionRequest
167- {
168- public string Model { get ; set ; }
169- public string Prompt { get ; set ; } = "<|endoftext|>" ;
170- public string Suffix { get ; set ; }
171- public int ? MaxTokens { get ; set ; } = 16 ;
172- public float ? Temperature { get ; set ; } = 1 ;
173- public float ? TopP { get ; set ; } = 1 ;
174- public int N { get ; set ; } = 1 ;
175- public bool Stream { get ; set ; } = false ;
176- public int ? Logpropbs { get ; set ; }
177- public bool ? Echo { get ; set ; } = false ;
178- public string Stop { get ; set ; }
179- public float ? PresencePenalty { get ; set ; } = 0 ;
180- public float ? FrequencyPenalty { get ; set ; } = 0 ;
181- public int ? BestOf { get ; set ; } = 1 ;
182- public Dictionary < string , string > LogitBias { get ; set ; }
183- public string User { get ; set ; }
184- }
185-
186- public struct CreateCompletionResponse : IResponse
187- {
188- public ApiError Error { get ; set ; }
189- public string Warning { get ; set ; }
190- public string Id { get ; set ; }
191- public string Object { get ; set ; }
192- public long Created { get ; set ; }
193- public string Model { get ; set ; }
194- public List < Choice > Choices { get ; set ; }
195- public Usage Usage { get ; set ; }
196- }
197- #endregion
198-
199- #region Edits API Data Types
200- public sealed class CreateEditRequest
201- {
202- public string Model { get ; set ; }
203- public string Input { get ; set ; } = "" ;
204- public string Instruction { get ; set ; }
205- public float ? Temperature { get ; set ; } = 1 ;
206- public float ? TopP { get ; set ; } = 1 ;
207- public int ? N { get ; set ; } = 1 ;
208- }
209164
210- public struct CreateEditResponse : IResponse
211- {
212- public ApiError Error { get ; set ; }
213- public string Warning { get ; set ; }
214- public string Object { get ; set ; }
215- public long Created { get ; set ; }
216- public List < Choice > Choices { get ; set ; }
217- public Usage Usage { get ; set ; }
218- }
219- #endregion
220-
221165 #region Images API Data Types
222166 public class CreateImageRequestBase
223167 {
0 commit comments