You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -82,7 +82,7 @@ public class OpenAiChatResponse : Codable
82
82
* A list of chat completion choices. Can be more than one if n is greater than 1.
83
83
*/
84
84
// @DataMember(Name="choices")
85
-
publicvarchoices:[Choice]=[]
85
+
publicvarchoices:[Choice]?
86
86
87
87
/**
88
88
* The Unix timestamp (in seconds) of when the chat completion was created.
@@ -148,7 +148,7 @@ public class OpenAiMessage : Codable
148
148
* The tool calls generated by the model, such as function calls.
149
149
*/
150
150
// @DataMember(Name="tool_calls")
151
-
publicvartool_calls:[ToolCall]=[]
151
+
publicvartool_calls:[ToolCall]?
152
152
153
153
/**
154
154
* Tool call that this message is responding to.
@@ -193,7 +193,7 @@ public class OpenAiChat : Codable
193
193
* A list of messages comprising the conversation so far.
194
194
*/
195
195
// @DataMember(Name="messages")
196
-
publicvarmessages:[OpenAiMessage]=[]
196
+
publicvarmessages:[OpenAiMessage]?
197
197
198
198
/**
199
199
* ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API
@@ -211,7 +211,7 @@ public class OpenAiChat : Codable
211
211
* Modify the likelihood of specified tokens appearing in the completion.
212
212
*/
213
213
// @DataMember(Name="logit_bias")
214
-
publicvarlogit_bias:[Int:Int]=[:]
214
+
publicvarlogit_bias:[Int:Int]?
215
215
216
216
/**
217
217
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
@@ -259,7 +259,7 @@ public class OpenAiChat : Codable
259
259
* Up to 4 sequences where the API will stop generating further tokens.
260
260
*/
261
261
// @DataMember(Name="stop")
262
-
publicvarstop:[String]=[]
262
+
publicvarstop:[String]?
263
263
264
264
/**
265
265
* If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message.
@@ -283,7 +283,7 @@ public class OpenAiChat : Codable
283
283
* A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.
284
284
*/
285
285
// @DataMember(Name="tools")
286
-
publicvartools:[OpenAiTools]=[]
286
+
publicvartools:[OpenAiTools]?
287
287
288
288
/**
289
289
* A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
@@ -395,7 +395,7 @@ public class ChoiceMessage : Codable
395
395
* The tool calls generated by the model, such as function calls.
0 commit comments