-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtryAGI.OpenAI.Models.ResponsePropertiesText.g.cs
More file actions
83 lines (77 loc) · 4.37 KB
/
tryAGI.OpenAI.Models.ResponsePropertiesText.g.cs
File metadata and controls
83 lines (77 loc) · 4.37 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
#nullable enable
namespace tryAGI.OpenAI
{
/// <summary>
/// Configuration options for a text response from the model. Can be plain<br/>
/// text or structured JSON data. Learn more:<br/>
/// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)<br/>
/// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
/// </summary>
public sealed partial class ResponsePropertiesText
{
/// <summary>
/// An object specifying the format that the model must output.<br/>
/// Configuring `{ "type": "json_schema" }` enables Structured Outputs, <br/>
/// which ensures the model will match your supplied JSON schema. Learn more in the <br/>
/// [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).<br/>
/// The default format is `{ "type": "text" }` with no additional options.<br/>
/// **Not recommended for gpt-4o and newer models:**<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("format")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter))]
public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Format { 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>
/// 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="ResponsePropertiesText" /> class.
/// </summary>
/// <param name="format">
/// An object specifying the format that the model must output.<br/>
/// Configuring `{ "type": "json_schema" }` enables Structured Outputs, <br/>
/// which ensures the model will match your supplied JSON schema. Learn more in the <br/>
/// [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).<br/>
/// The default format is `{ "type": "text" }` with no additional options.<br/>
/// **Not recommended for gpt-4o and newer models:**<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="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>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ResponsePropertiesText(
global::tryAGI.OpenAI.TextResponseFormatConfiguration? format,
global::tryAGI.OpenAI.Verbosity? verbosity)
{
this.Format = format;
this.Verbosity = verbosity;
}
/// <summary>
/// Initializes a new instance of the <see cref="ResponsePropertiesText" /> class.
/// </summary>
public ResponsePropertiesText()
{
}
}
}