Skip to content

Commit 1da0ad5

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#263)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent 09a01e2 commit 1da0ad5

24 files changed

Lines changed: 2045 additions & 2037 deletions

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.UpdateProjectRateLimits.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public partial interface IProjectsClient
5050
int? maxRequestsPer1Minute = default,
5151
int? maxTokensPer1Minute = default,
5252
int? maxImagesPer1Minute = default,
53-
int? maxAudioMegabytesPer1Minute = default,
53+
long? maxAudioMegabytesPer1Minute = default,
5454
int? maxRequestsPer1Day = default,
5555
int? batch1DayMaxInputTokens = default,
5656
global::System.Threading.CancellationToken cancellationToken = default);

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CreateUpload.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public partial interface IUploadsClient
7070
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.Upload> CreateUploadAsync(
7171
string filename,
7272
global::tryAGI.OpenAI.CreateUploadRequestPurpose purpose,
73-
int bytes,
73+
long bytes,
7474
string mimeType,
7575
global::tryAGI.OpenAI.FileExpirationAfter? expiresAfter = default,
7676
global::System.Threading.CancellationToken cancellationToken = default);

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs

Lines changed: 2003 additions & 1995 deletions
Large diffs are not rendered by default.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AuditLogRateLimitUpdatedChangesRequested.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public sealed partial class AuditLogRateLimitUpdatedChangesRequested
3030
/// The maximum audio megabytes per minute. Only relevant for certain models.
3131
/// </summary>
3232
[global::System.Text.Json.Serialization.JsonPropertyName("max_audio_megabytes_per_1_minute")]
33-
public int? MaxAudioMegabytesPer1Minute { get; set; }
33+
public long? MaxAudioMegabytesPer1Minute { get; set; }
3434

3535
/// <summary>
3636
/// The maximum requests per day. Only relevant for certain models.
@@ -78,7 +78,7 @@ public AuditLogRateLimitUpdatedChangesRequested(
7878
int? maxRequestsPer1Minute,
7979
int? maxTokensPer1Minute,
8080
int? maxImagesPer1Minute,
81-
int? maxAudioMegabytesPer1Minute,
81+
long? maxAudioMegabytesPer1Minute,
8282
int? maxRequestsPer1Day,
8383
int? batch1DayMaxInputTokens)
8484
{

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionTokenLogprob.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public sealed partial class ChatCompletionTokenLogprob
2626
///
2727
/// </summary>
2828
[global::System.Text.Json.Serialization.JsonPropertyName("bytes")]
29-
public global::System.Collections.Generic.IList<int>? Bytes { get; set; }
29+
public global::System.Collections.Generic.IList<long>? Bytes { get; set; }
3030

3131
/// <summary>
3232
/// List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.
@@ -61,7 +61,7 @@ public ChatCompletionTokenLogprob(
6161
string token,
6262
double logprob,
6363
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob> topLogprobs,
64-
global::System.Collections.Generic.IList<int>? bytes)
64+
global::System.Collections.Generic.IList<long>? bytes)
6565
{
6666
this.Token = token ?? throw new global::System.ArgumentNullException(nameof(token));
6767
this.Logprob = logprob;

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionTokenLogprobTopLogprob.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public sealed partial class ChatCompletionTokenLogprobTopLogprob
2626
///
2727
/// </summary>
2828
[global::System.Text.Json.Serialization.JsonPropertyName("bytes")]
29-
public global::System.Collections.Generic.IList<int>? Bytes { get; set; }
29+
public global::System.Collections.Generic.IList<long>? Bytes { get; set; }
3030

3131
/// <summary>
3232
/// Additional properties that are not explicitly defined in the schema
@@ -50,7 +50,7 @@ public sealed partial class ChatCompletionTokenLogprobTopLogprob
5050
public ChatCompletionTokenLogprobTopLogprob(
5151
string token,
5252
double logprob,
53-
global::System.Collections.Generic.IList<int>? bytes)
53+
global::System.Collections.Generic.IList<long>? bytes)
5454
{
5555
this.Token = token ?? throw new global::System.ArgumentNullException(nameof(token));
5656
this.Logprob = logprob;

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatSessionFileUpload.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public sealed partial class ChatSessionFileUpload
1919
///
2020
/// </summary>
2121
[global::System.Text.Json.Serialization.JsonPropertyName("max_file_size")]
22-
public int? MaxFileSize { get; set; }
22+
public long? MaxFileSize { get; set; }
2323

2424
/// <summary>
2525
///
@@ -46,7 +46,7 @@ public sealed partial class ChatSessionFileUpload
4646
#endif
4747
public ChatSessionFileUpload(
4848
bool enabled,
49-
int? maxFileSize,
49+
long? maxFileSize,
5050
int? maxFiles)
5151
{
5252
this.Enabled = enabled;

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResource.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public sealed partial class ContainerFileResource
4242
/// </summary>
4343
[global::System.Text.Json.Serialization.JsonPropertyName("bytes")]
4444
[global::System.Text.Json.Serialization.JsonRequired]
45-
public required int Bytes { get; set; }
45+
public required long Bytes { get; set; }
4646

4747
/// <summary>
4848
/// Path of the file in the container.
@@ -96,7 +96,7 @@ public ContainerFileResource(
9696
string @object,
9797
string containerId,
9898
global::System.DateTimeOffset createdAt,
99-
int bytes,
99+
long bytes,
100100
string path,
101101
string source)
102102
{

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public sealed partial class CreateUploadRequest
3030
/// </summary>
3131
[global::System.Text.Json.Serialization.JsonPropertyName("bytes")]
3232
[global::System.Text.Json.Serialization.JsonRequired]
33-
public required int Bytes { get; set; }
33+
public required long Bytes { get; set; }
3434

3535
/// <summary>
3636
/// The MIME type of the file.<br/>
@@ -81,7 +81,7 @@ public sealed partial class CreateUploadRequest
8181
public CreateUploadRequest(
8282
string filename,
8383
global::tryAGI.OpenAI.CreateUploadRequestPurpose purpose,
84-
int bytes,
84+
long bytes,
8585
string mimeType,
8686
global::tryAGI.OpenAI.FileExpirationAfter? expiresAfter)
8787
{

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileUploadParam.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public sealed partial class FileUploadParam
1818
/// Maximum size in megabytes for each uploaded file. Defaults to 512 MB, which is the maximum allowable size.
1919
/// </summary>
2020
[global::System.Text.Json.Serialization.JsonPropertyName("max_file_size")]
21-
public int? MaxFileSize { get; set; }
21+
public long? MaxFileSize { get; set; }
2222

2323
/// <summary>
2424
/// Maximum number of files that can be uploaded to the session. Defaults to 10.
@@ -49,7 +49,7 @@ public sealed partial class FileUploadParam
4949
#endif
5050
public FileUploadParam(
5151
bool? enabled,
52-
int? maxFileSize,
52+
long? maxFileSize,
5353
int? maxFiles)
5454
{
5555
this.Enabled = enabled;

0 commit comments

Comments
 (0)