-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2.g.cs
More file actions
475 lines (443 loc) · 28.4 KB
/
tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2.g.cs
File metadata and controls
475 lines (443 loc) · 28.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
#pragma warning disable CS0618 // Type or member is obsolete
#nullable enable
namespace tryAGI.OpenAI
{
/// <summary>
///
/// </summary>
public sealed partial class CreateChatCompletionRequestVariant2
{
/// <summary>
/// Parameters for audio output. Required when audio output is requested with<br/>
/// `modalities: ["audio"]`. [Learn more](https://platform.openai.com/docs/guides/audio).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("audio")]
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Audio { get; set; }
/// <summary>
/// Number between -2.0 and 2.0. Positive values penalize new tokens based on<br/>
/// their existing frequency in the text so far, decreasing the model's<br/>
/// likelihood to repeat the same line verbatim.<br/>
/// Default Value: 0
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("frequency_penalty")]
public double? FrequencyPenalty { get; set; }
/// <summary>
/// Deprecated in favor of `tool_choice`.<br/>
/// Controls which (if any) function is called by the model.<br/>
/// `none` means the model will not call a function and instead generates a<br/>
/// message.<br/>
/// `auto` means the model can pick between generating a message or calling a<br/>
/// function.<br/>
/// Specifying a particular function via `{"name": "my_function"}` forces the<br/>
/// model to call that function.<br/>
/// `none` is the default when no functions are present. `auto` is the default<br/>
/// if functions are present.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("function_call")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter<global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall?, global::tryAGI.OpenAI.ChatCompletionFunctionCallOption>))]
public global::tryAGI.OpenAI.AnyOf<global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall?, global::tryAGI.OpenAI.ChatCompletionFunctionCallOption>? FunctionCall { get; set; }
/// <summary>
/// Deprecated in favor of `tools`.<br/>
/// A list of functions the model may generate JSON inputs for.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("functions")]
[global::System.Obsolete("This property marked as deprecated.")]
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionFunctions>? Functions { get; set; }
/// <summary>
/// Modify the likelihood of specified tokens appearing in the completion.<br/>
/// Accepts a JSON object that maps tokens (specified by their token ID in the<br/>
/// tokenizer) to an associated bias value from -100 to 100. Mathematically,<br/>
/// the bias is added to the logits generated by the model prior to sampling.<br/>
/// The exact effect will vary per model, but values between -1 and 1 should<br/>
/// decrease or increase likelihood of selection; values like -100 or 100<br/>
/// should result in a ban or exclusive selection of the relevant token.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("logit_bias")]
public global::System.Collections.Generic.Dictionary<string, int>? LogitBias { get; set; }
/// <summary>
/// Whether to return log probabilities of the output tokens or not. If true,<br/>
/// returns the log probabilities of each output token returned in the<br/>
/// `content` of `message`.<br/>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("logprobs")]
public bool? Logprobs { get; set; }
/// <summary>
/// An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_completion_tokens")]
public int? MaxCompletionTokens { get; set; }
/// <summary>
/// The maximum number of [tokens](/tokenizer) that can be generated in the<br/>
/// chat completion. This value can be used to control<br/>
/// [costs](https://openai.com/api/pricing/) for text generated via API.<br/>
/// This value is now deprecated in favor of `max_completion_tokens`, and is<br/>
/// not compatible with [o-series models](https://platform.openai.com/docs/guides/reasoning).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")]
[global::System.Obsolete("This property marked as deprecated.")]
public int? MaxTokens { get; set; }
/// <summary>
/// A list of messages comprising the conversation so far. Depending on the<br/>
/// [model](https://platform.openai.com/docs/models) you use, different message types (modalities) are<br/>
/// supported, like [text](https://platform.openai.com/docs/guides/text-generation),<br/>
/// [images](https://platform.openai.com/docs/guides/vision), and [audio](https://platform.openai.com/docs/guides/audio).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("messages")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionRequestMessage> Messages { get; set; }
/// <summary>
/// Output types that you would like the model to generate.<br/>
/// Most models are capable of generating text, which is the default:<br/>
/// `["text"]`<br/>
/// The `gpt-4o-audio-preview` model can also be used to <br/>
/// [generate audio](https://platform.openai.com/docs/guides/audio). To request that this model generate <br/>
/// both text and audio responses, you can use:<br/>
/// `["text", "audio"]`
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("modalities")]
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ResponseModalitie>? Modalities { get; set; }
/// <summary>
/// Example: gpt-4o
/// </summary>
/// <example>gpt-4o</example>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::tryAGI.OpenAI.ModelIdsShared Model { get; set; }
/// <summary>
/// How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.<br/>
/// Default Value: 1<br/>
/// Example: 1
/// </summary>
/// <example>1</example>
[global::System.Text.Json.Serialization.JsonPropertyName("n")]
public int? N { get; set; }
/// <summary>
/// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")]
public bool? ParallelToolCalls { get; set; }
/// <summary>
/// Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs),<br/>
/// which can greatly improve response times when large parts of the model<br/>
/// response are known ahead of time. This is most common when you are<br/>
/// regenerating a file with only minor changes to most of the content.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("prediction")]
public global::tryAGI.OpenAI.PredictionContent? Prediction { get; set; }
/// <summary>
/// Number between -2.0 and 2.0. Positive values penalize new tokens based on<br/>
/// whether they appear in the text so far, increasing the model's likelihood<br/>
/// to talk about new topics.<br/>
/// Default Value: 0
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("presence_penalty")]
public double? PresencePenalty { get; set; }
/// <summary>
/// Constrains effort on reasoning for <br/>
/// [reasoning models](https://platform.openai.com/docs/guides/reasoning).<br/>
/// Currently supported values are `minimal`, `low`, `medium`, and `high`. Reducing<br/>
/// reasoning effort can result in faster responses and fewer tokens used<br/>
/// on reasoning in a response.<br/>
/// Default Value: medium
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("reasoning_effort")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningEffortJsonConverter))]
public global::tryAGI.OpenAI.ReasoningEffort? ReasoningEffort { get; set; }
/// <summary>
/// An object specifying the format that the model must output.<br/>
/// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables<br/>
/// Structured Outputs which ensures the model will match your supplied JSON<br/>
/// schema. Learn more in the [Structured Outputs<br/>
/// guide](https://platform.openai.com/docs/guides/structured-outputs).<br/>
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which<br/>
/// ensures the message the model generates is valid JSON. Using `json_schema`<br/>
/// is preferred for models that support it.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter<global::tryAGI.OpenAI.ResponseFormatText, global::tryAGI.OpenAI.ResponseFormatJsonSchema, global::tryAGI.OpenAI.ResponseFormatJsonObject>))]
public global::tryAGI.OpenAI.AnyOf<global::tryAGI.OpenAI.ResponseFormatText, global::tryAGI.OpenAI.ResponseFormatJsonSchema, global::tryAGI.OpenAI.ResponseFormatJsonObject>? ResponseFormat { get; set; }
/// <summary>
/// This feature is in Beta.<br/>
/// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.<br/>
/// Determinism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("seed")]
[global::System.Obsolete("This property marked as deprecated.")]
public int? Seed { get; set; }
/// <summary>
/// Not supported with latest reasoning models `o3` and `o4-mini`.<br/>
/// Up to 4 sequences where the API will stop generating further tokens. The<br/>
/// returned text will not contain the stop sequence.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stop")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.StopConfigurationJsonConverter))]
public global::tryAGI.OpenAI.StopConfiguration? Stop { get; set; }
/// <summary>
/// Whether or not to store the output of this chat completion request for<br/>
/// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or<br/>
/// [evals](https://platform.openai.com/docs/guides/evals) products.<br/>
/// Supports text and image inputs. Note: image inputs over 8MB will be dropped.<br/>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("store")]
public bool? Store { get; set; }
/// <summary>
/// If set to true, the model response data will be streamed to the client<br/>
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).<br/>
/// See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)<br/>
/// for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)<br/>
/// guide for more information on how to handle the streaming events.<br/>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; }
/// <summary>
/// Options for streaming response. Only set this when you set `stream: true`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream_options")]
public global::tryAGI.OpenAI.ChatCompletionStreamOptions? StreamOptions { get; set; }
/// <summary>
/// Controls which (if any) tool is called by the model.<br/>
/// `none` means the model will not call any tool and instead generates a message.<br/>
/// `auto` means the model can pick between generating a message or calling one or more tools.<br/>
/// `required` means the model must call one or more tools.<br/>
/// Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.<br/>
/// `none` is the default when no tools are present. `auto` is the default if tools are present.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionJsonConverter))]
public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? ToolChoice { get; set; }
/// <summary>
/// A list of tools the model may call. You can provide either<br/>
/// [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools) or<br/>
/// [function tools](https://platform.openai.com/docs/guides/function-calling).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tools")]
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ToolsItem>? Tools { get; set; }
/// <summary>
/// An integer between 0 and 20 specifying the number of most likely tokens to<br/>
/// return at each token position, each with an associated log probability.<br/>
/// `logprobs` must be set to `true` if this parameter is used.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("top_logprobs")]
public int? TopLogprobs { get; set; }
/// <summary>
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
/// more concise responses, while higher values will result in more verbose responses.<br/>
/// Currently supported values are `low`, `medium`, and `high`.<br/>
/// Default Value: medium
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("verbosity")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter))]
public global::tryAGI.OpenAI.Verbosity? Verbosity { get; set; }
/// <summary>
/// This tool searches the web for relevant results to use in a response.<br/>
/// Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("web_search_options")]
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? WebSearchOptions { get; set; }
/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
/// <summary>
/// Initializes a new instance of the <see cref="CreateChatCompletionRequestVariant2" /> class.
/// </summary>
/// <param name="audio">
/// Parameters for audio output. Required when audio output is requested with<br/>
/// `modalities: ["audio"]`. [Learn more](https://platform.openai.com/docs/guides/audio).
/// </param>
/// <param name="frequencyPenalty">
/// Number between -2.0 and 2.0. Positive values penalize new tokens based on<br/>
/// their existing frequency in the text so far, decreasing the model's<br/>
/// likelihood to repeat the same line verbatim.<br/>
/// Default Value: 0
/// </param>
/// <param name="logitBias">
/// Modify the likelihood of specified tokens appearing in the completion.<br/>
/// Accepts a JSON object that maps tokens (specified by their token ID in the<br/>
/// tokenizer) to an associated bias value from -100 to 100. Mathematically,<br/>
/// the bias is added to the logits generated by the model prior to sampling.<br/>
/// The exact effect will vary per model, but values between -1 and 1 should<br/>
/// decrease or increase likelihood of selection; values like -100 or 100<br/>
/// should result in a ban or exclusive selection of the relevant token.
/// </param>
/// <param name="logprobs">
/// Whether to return log probabilities of the output tokens or not. If true,<br/>
/// returns the log probabilities of each output token returned in the<br/>
/// `content` of `message`.<br/>
/// Default Value: false
/// </param>
/// <param name="maxCompletionTokens">
/// An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
/// </param>
/// <param name="messages">
/// A list of messages comprising the conversation so far. Depending on the<br/>
/// [model](https://platform.openai.com/docs/models) you use, different message types (modalities) are<br/>
/// supported, like [text](https://platform.openai.com/docs/guides/text-generation),<br/>
/// [images](https://platform.openai.com/docs/guides/vision), and [audio](https://platform.openai.com/docs/guides/audio).
/// </param>
/// <param name="modalities">
/// Output types that you would like the model to generate.<br/>
/// Most models are capable of generating text, which is the default:<br/>
/// `["text"]`<br/>
/// The `gpt-4o-audio-preview` model can also be used to <br/>
/// [generate audio](https://platform.openai.com/docs/guides/audio). To request that this model generate <br/>
/// both text and audio responses, you can use:<br/>
/// `["text", "audio"]`
/// </param>
/// <param name="model">
/// Example: gpt-4o
/// </param>
/// <param name="n">
/// How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.<br/>
/// Default Value: 1<br/>
/// Example: 1
/// </param>
/// <param name="parallelToolCalls">
/// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.
/// </param>
/// <param name="prediction">
/// Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs),<br/>
/// which can greatly improve response times when large parts of the model<br/>
/// response are known ahead of time. This is most common when you are<br/>
/// regenerating a file with only minor changes to most of the content.
/// </param>
/// <param name="presencePenalty">
/// Number between -2.0 and 2.0. Positive values penalize new tokens based on<br/>
/// whether they appear in the text so far, increasing the model's likelihood<br/>
/// to talk about new topics.<br/>
/// Default Value: 0
/// </param>
/// <param name="reasoningEffort">
/// Constrains effort on reasoning for <br/>
/// [reasoning models](https://platform.openai.com/docs/guides/reasoning).<br/>
/// Currently supported values are `minimal`, `low`, `medium`, and `high`. Reducing<br/>
/// reasoning effort can result in faster responses and fewer tokens used<br/>
/// on reasoning in a response.<br/>
/// Default Value: medium
/// </param>
/// <param name="responseFormat">
/// An object specifying the format that the model must output.<br/>
/// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables<br/>
/// Structured Outputs which ensures the model will match your supplied JSON<br/>
/// schema. Learn more in the [Structured Outputs<br/>
/// guide](https://platform.openai.com/docs/guides/structured-outputs).<br/>
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which<br/>
/// ensures the message the model generates is valid JSON. Using `json_schema`<br/>
/// is preferred for models that support it.
/// </param>
/// <param name="stop">
/// Not supported with latest reasoning models `o3` and `o4-mini`.<br/>
/// Up to 4 sequences where the API will stop generating further tokens. The<br/>
/// returned text will not contain the stop sequence.
/// </param>
/// <param name="store">
/// Whether or not to store the output of this chat completion request for<br/>
/// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or<br/>
/// [evals](https://platform.openai.com/docs/guides/evals) products.<br/>
/// Supports text and image inputs. Note: image inputs over 8MB will be dropped.<br/>
/// Default Value: false
/// </param>
/// <param name="stream">
/// If set to true, the model response data will be streamed to the client<br/>
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).<br/>
/// See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)<br/>
/// for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)<br/>
/// guide for more information on how to handle the streaming events.<br/>
/// Default Value: false
/// </param>
/// <param name="streamOptions">
/// Options for streaming response. Only set this when you set `stream: true`.
/// </param>
/// <param name="toolChoice">
/// Controls which (if any) tool is called by the model.<br/>
/// `none` means the model will not call any tool and instead generates a message.<br/>
/// `auto` means the model can pick between generating a message or calling one or more tools.<br/>
/// `required` means the model must call one or more tools.<br/>
/// Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.<br/>
/// `none` is the default when no tools are present. `auto` is the default if tools are present.
/// </param>
/// <param name="tools">
/// A list of tools the model may call. You can provide either<br/>
/// [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools) or<br/>
/// [function tools](https://platform.openai.com/docs/guides/function-calling).
/// </param>
/// <param name="topLogprobs">
/// An integer between 0 and 20 specifying the number of most likely tokens to<br/>
/// return at each token position, each with an associated log probability.<br/>
/// `logprobs` must be set to `true` if this parameter is used.
/// </param>
/// <param name="verbosity">
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
/// more concise responses, while higher values will result in more verbose responses.<br/>
/// Currently supported values are `low`, `medium`, and `high`.<br/>
/// Default Value: medium
/// </param>
/// <param name="webSearchOptions">
/// This tool searches the web for relevant results to use in a response.<br/>
/// Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public CreateChatCompletionRequestVariant2(
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionRequestMessage> messages,
global::tryAGI.OpenAI.ModelIdsShared model,
global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? audio,
double? frequencyPenalty,
global::System.Collections.Generic.Dictionary<string, int>? logitBias,
bool? logprobs,
int? maxCompletionTokens,
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ResponseModalitie>? modalities,
int? n,
bool? parallelToolCalls,
global::tryAGI.OpenAI.PredictionContent? prediction,
double? presencePenalty,
global::tryAGI.OpenAI.ReasoningEffort? reasoningEffort,
global::tryAGI.OpenAI.AnyOf<global::tryAGI.OpenAI.ResponseFormatText, global::tryAGI.OpenAI.ResponseFormatJsonSchema, global::tryAGI.OpenAI.ResponseFormatJsonObject>? responseFormat,
global::tryAGI.OpenAI.StopConfiguration? stop,
bool? store,
bool? stream,
global::tryAGI.OpenAI.ChatCompletionStreamOptions? streamOptions,
global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? toolChoice,
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ToolsItem>? tools,
int? topLogprobs,
global::tryAGI.OpenAI.Verbosity? verbosity,
global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? webSearchOptions)
{
this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages));
this.Model = model;
this.Audio = audio;
this.FrequencyPenalty = frequencyPenalty;
this.LogitBias = logitBias;
this.Logprobs = logprobs;
this.MaxCompletionTokens = maxCompletionTokens;
this.Modalities = modalities;
this.N = n;
this.ParallelToolCalls = parallelToolCalls;
this.Prediction = prediction;
this.PresencePenalty = presencePenalty;
this.ReasoningEffort = reasoningEffort;
this.ResponseFormat = responseFormat;
this.Stop = stop;
this.Store = store;
this.Stream = stream;
this.StreamOptions = streamOptions;
this.ToolChoice = toolChoice;
this.Tools = tools;
this.TopLogprobs = topLogprobs;
this.Verbosity = verbosity;
this.WebSearchOptions = webSearchOptions;
}
/// <summary>
/// Initializes a new instance of the <see cref="CreateChatCompletionRequestVariant2" /> class.
/// </summary>
public CreateChatCompletionRequestVariant2()
{
}
}
}