-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtryAGI.OpenAI.Models.ProjectRateLimit.g.cs
More file actions
138 lines (125 loc) · 5.77 KB
/
tryAGI.OpenAI.Models.ProjectRateLimit.g.cs
File metadata and controls
138 lines (125 loc) · 5.77 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
#nullable enable
namespace tryAGI.OpenAI
{
/// <summary>
/// Represents a project rate limit config.
/// </summary>
public sealed partial class ProjectRateLimit
{
/// <summary>
/// The object type, which is always `project.rate_limit`
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("object")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectJsonConverter))]
public global::tryAGI.OpenAI.ProjectRateLimitObject Object { get; set; }
/// <summary>
/// The identifier, which can be referenced in API endpoints.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Id { get; set; }
/// <summary>
/// The model this rate limit applies to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; }
/// <summary>
/// The maximum requests per minute.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_requests_per_1_minute")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int MaxRequestsPer1Minute { get; set; }
/// <summary>
/// The maximum tokens per minute.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_tokens_per_1_minute")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int MaxTokensPer1Minute { get; set; }
/// <summary>
/// The maximum images per minute. Only present for relevant models.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_images_per_1_minute")]
public int? MaxImagesPer1Minute { get; set; }
/// <summary>
/// The maximum audio megabytes per minute. Only present for relevant models.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_audio_megabytes_per_1_minute")]
public long? MaxAudioMegabytesPer1Minute { get; set; }
/// <summary>
/// The maximum requests per day. Only present for relevant models.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_requests_per_1_day")]
public int? MaxRequestsPer1Day { get; set; }
/// <summary>
/// The maximum batch input tokens per day. Only present for relevant models.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("batch_1_day_max_input_tokens")]
public int? Batch1DayMaxInputTokens { 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="ProjectRateLimit" /> class.
/// </summary>
/// <param name="object">
/// The object type, which is always `project.rate_limit`
/// </param>
/// <param name="id">
/// The identifier, which can be referenced in API endpoints.
/// </param>
/// <param name="model">
/// The model this rate limit applies to.
/// </param>
/// <param name="maxRequestsPer1Minute">
/// The maximum requests per minute.
/// </param>
/// <param name="maxTokensPer1Minute">
/// The maximum tokens per minute.
/// </param>
/// <param name="maxImagesPer1Minute">
/// The maximum images per minute. Only present for relevant models.
/// </param>
/// <param name="maxAudioMegabytesPer1Minute">
/// The maximum audio megabytes per minute. Only present for relevant models.
/// </param>
/// <param name="maxRequestsPer1Day">
/// The maximum requests per day. Only present for relevant models.
/// </param>
/// <param name="batch1DayMaxInputTokens">
/// The maximum batch input tokens per day. Only present for relevant models.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ProjectRateLimit(
string id,
string model,
int maxRequestsPer1Minute,
int maxTokensPer1Minute,
global::tryAGI.OpenAI.ProjectRateLimitObject @object,
int? maxImagesPer1Minute,
long? maxAudioMegabytesPer1Minute,
int? maxRequestsPer1Day,
int? batch1DayMaxInputTokens)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.MaxRequestsPer1Minute = maxRequestsPer1Minute;
this.MaxTokensPer1Minute = maxTokensPer1Minute;
this.Object = @object;
this.MaxImagesPer1Minute = maxImagesPer1Minute;
this.MaxAudioMegabytesPer1Minute = maxAudioMegabytesPer1Minute;
this.MaxRequestsPer1Day = maxRequestsPer1Day;
this.Batch1DayMaxInputTokens = batch1DayMaxInputTokens;
}
/// <summary>
/// Initializes a new instance of the <see cref="ProjectRateLimit" /> class.
/// </summary>
public ProjectRateLimit()
{
}
}
}