From d5fe2abe5757d758e4c4f087fefbf1e47ea86f88 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 17 Jul 2024 06:20:22 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...Converters.CreateUploadRequestPurpose.g.cs | 49 ++ ...rs.CreateUploadRequestPurposeNullable.g.cs | 56 ++ .../JsonConverters.UploadObject.g.cs | 49 ++ .../JsonConverters.UploadObjectNullable.g.cs | 56 ++ .../JsonConverters.UploadPartObject.g.cs | 49 ++ ...onConverters.UploadPartObjectNullable.g.cs | 56 ++ .../JsonConverters.UploadStatus.g.cs | 49 ++ .../JsonConverters.UploadStatusNullable.g.cs | 56 ++ .../Generated/JsonSerializerContext.g.cs | 8 + .../Generated/JsonSerializerContextTypes.g.cs | 678 +++++++++--------- .../OpenAI.Models.AddUploadPartRequest.g.cs | 24 + .../OpenAI.Models.CancelUploadRequest.g.cs | 18 + .../OpenAI.Models.CompleteUploadRequest.g.cs | 30 + .../OpenAI.Models.CreateUploadRequest.g.cs | 48 ++ ...nAI.Models.CreateUploadRequestPurpose.g.cs | 64 ++ .../Generated/OpenAI.Models.Upload.g.cs | 80 +++ .../Generated/OpenAI.Models.UploadObject.g.cs | 45 ++ .../Generated/OpenAI.Models.UploadPart.g.cs | 46 ++ .../OpenAI.Models.UploadPartObject.g.cs | 45 ++ .../Generated/OpenAI.Models.UploadStatus.g.cs | 63 ++ .../OpenAI/Generated/OpenAI.OpenAiApi.g.cs | 5 + .../OpenAI.UploadsClient.AddUploadPart.g.cs | 122 ++++ .../OpenAI.UploadsClient.CancelUpload.g.cs | 83 +++ .../OpenAI.UploadsClient.CompleteUpload.g.cs | 127 ++++ .../OpenAI.UploadsClient.CreateUpload.g.cs | 143 ++++ .../Generated/OpenAI.UploadsClient.g.cs | 56 ++ src/libs/OpenAI/openapi.yaml | 259 +++++++ 27 files changed, 2043 insertions(+), 321 deletions(-) create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurpose.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurposeNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.UploadObject.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.UploadObjectNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.UploadPartObject.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.UploadPartObjectNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.UploadStatus.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.UploadStatusNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CancelUploadRequest.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CompleteUploadRequest.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequest.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequestPurpose.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.Upload.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.UploadObject.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.UploadPart.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.UploadPartObject.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.UploadStatus.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.UploadsClient.AddUploadPart.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.UploadsClient.CancelUpload.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.UploadsClient.CompleteUpload.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.UploadsClient.CreateUpload.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.UploadsClient.g.cs diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurpose.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurpose.g.cs new file mode 100644 index 00000000..4880b338 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurpose.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class CreateUploadRequestPurposeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateUploadRequestPurpose Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.CreateUploadRequestPurposeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateUploadRequestPurpose)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateUploadRequestPurpose value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateUploadRequestPurposeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurposeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurposeNullable.g.cs new file mode 100644 index 00000000..819c7d28 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateUploadRequestPurposeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class CreateUploadRequestPurposeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateUploadRequestPurpose? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.CreateUploadRequestPurposeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateUploadRequestPurpose)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateUploadRequestPurpose? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenAI.CreateUploadRequestPurposeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.UploadObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UploadObject.g.cs new file mode 100644 index 00000000..95f290b8 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.UploadObject.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class UploadObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.UploadObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.UploadObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.UploadObject)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.UploadObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.UploadObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.UploadObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UploadObjectNullable.g.cs new file mode 100644 index 00000000..32c05176 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.UploadObjectNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class UploadObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.UploadObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.UploadObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.UploadObject)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.UploadObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenAI.UploadObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.UploadPartObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UploadPartObject.g.cs new file mode 100644 index 00000000..3b77e73a --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.UploadPartObject.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class UploadPartObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.UploadPartObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.UploadPartObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.UploadPartObject)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.UploadPartObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.UploadPartObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.UploadPartObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UploadPartObjectNullable.g.cs new file mode 100644 index 00000000..5f092d90 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.UploadPartObjectNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class UploadPartObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.UploadPartObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.UploadPartObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.UploadPartObject)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.UploadPartObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenAI.UploadPartObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.UploadStatus.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UploadStatus.g.cs new file mode 100644 index 00000000..306e0749 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.UploadStatus.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class UploadStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.UploadStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.UploadStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.UploadStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.UploadStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.UploadStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.UploadStatusNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UploadStatusNullable.g.cs new file mode 100644 index 00000000..20763f5f --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.UploadStatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class UploadStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.UploadStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenAI.UploadStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.UploadStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.UploadStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenAI.UploadStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs b/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs index d6a16e04..a91e9cf7 100644 --- a/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs +++ b/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs @@ -108,6 +108,8 @@ namespace OpenAI typeof(global::OpenApiGenerator.JsonConverters.CreateFileRequestPurposeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.DeleteFileResponseObjectJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.DeleteFileResponseObjectNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.CreateUploadRequestPurposeJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.CreateUploadRequestPurposeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierJsonConverter), @@ -150,6 +152,12 @@ namespace OpenAI typeof(global::OpenApiGenerator.JsonConverters.OpenAIFilePurposeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.OpenAIFileStatusJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.OpenAIFileStatusNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UploadStatusJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UploadStatusNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UploadObjectJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UploadObjectNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UploadPartObjectJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UploadPartObjectNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.EmbeddingObjectJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.EmbeddingObjectNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.FineTuningJobHyperparametersNEpochsJsonConverter), diff --git a/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs b/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs index 4c75f224..f8e4862d 100644 --- a/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs @@ -405,1286 +405,1322 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.AnyOf? Type98 { get; set; } + public global::OpenAI.CreateUploadRequestPurpose? Type98 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestHyperparameters? Type99 { get; set; } + public global::System.Collections.Generic.IList? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::System.AnyOf? Type100 { get; set; } /// /// /// - public global::System.OneOf? Type101 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestHyperparameters? Type101 { get; set; } /// /// /// - public global::System.OneOf? Type102 { get; set; } + public global::System.Collections.Generic.IList? Type102 { get; set; } /// /// /// - public global::System.OneOf? Type103 { get; set; } + public global::System.OneOf? Type103 { get; set; } /// /// /// - public global::System.OneOf? Type104 { get; set; } + public global::System.OneOf? Type104 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestIntegrationsWandb? Type105 { get; set; } + public global::System.OneOf? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::System.OneOf? Type106 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobEventsResponseObject? Type107 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestIntegrationsWandb? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::System.Collections.Generic.IList? Type108 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobCheckpointsResponseObject? Type109 { get; set; } + public global::OpenAI.ListFineTuningJobEventsResponseObject? Type109 { get; set; } /// /// /// - public global::System.AnyOf? Type110 { get; set; } + public global::System.Collections.Generic.IList? Type110 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingRequestEncodingFormat? Type111 { get; set; } + public global::OpenAI.ListFineTuningJobCheckpointsResponseObject? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::System.AnyOf? Type112 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingResponseObject? Type113 { get; set; } + public global::OpenAI.CreateEmbeddingRequestEncodingFormat? Type113 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingResponseUsage? Type114 { get; set; } + public global::System.Collections.Generic.IList? Type114 { get; set; } /// /// /// - public global::System.AnyOf? Type115 { get; set; } + public global::OpenAI.CreateEmbeddingResponseObject? Type115 { get; set; } /// /// /// - public global::OpenAI.CreateTranscriptionRequestResponseFormat? Type116 { get; set; } + public global::OpenAI.CreateEmbeddingResponseUsage? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public global::System.AnyOf? Type117 { get; set; } /// /// /// - public float? Type118 { get; set; } + public global::OpenAI.CreateTranscriptionRequestResponseFormat? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::System.Collections.Generic.IList? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type120 { get; set; } + public float? Type120 { get; set; } /// /// /// - public global::System.AnyOf? Type121 { get; set; } + public global::System.Collections.Generic.IList? Type121 { get; set; } /// /// /// - public global::System.AnyOf? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::OpenAI.CreateSpeechRequestVoice? Type123 { get; set; } + public global::System.AnyOf? Type123 { get; set; } /// /// /// - public global::OpenAI.CreateSpeechRequestResponseFormat? Type124 { get; set; } + public global::System.AnyOf? Type124 { get; set; } /// /// /// - public global::OpenAI.ModelObject? Type125 { get; set; } + public global::OpenAI.CreateSpeechRequestVoice? Type125 { get; set; } /// /// /// - public global::OpenAI.OpenAIFileObject? Type126 { get; set; } + public global::OpenAI.CreateSpeechRequestResponseFormat? Type126 { get; set; } /// /// /// - public global::OpenAI.OpenAIFilePurpose? Type127 { get; set; } + public global::OpenAI.ModelObject? Type127 { get; set; } /// /// /// - public global::OpenAI.OpenAIFileStatus? Type128 { get; set; } + public global::OpenAI.OpenAIFileObject? Type128 { get; set; } /// /// /// - public global::OpenAI.EmbeddingObject? Type129 { get; set; } + public global::OpenAI.OpenAIFilePurpose? Type129 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobError? Type130 { get; set; } + public global::OpenAI.OpenAIFileStatus? Type130 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobHyperparameters? Type131 { get; set; } + public global::OpenAI.UploadStatus? Type131 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobObject? Type132 { get; set; } + public global::OpenAI.UploadObject? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::OpenAI.UploadPartObject? Type133 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobStatus? Type134 { get; set; } + public global::OpenAI.EmbeddingObject? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type135 { get; set; } + public global::OpenAI.FineTuningJobError? Type135 { get; set; } /// /// /// - public global::System.OneOf? Type136 { get; set; } + public global::OpenAI.FineTuningJobHyperparameters? Type136 { get; set; } /// /// /// - public global::OpenAI.FineTuningIntegrationType? Type137 { get; set; } + public global::OpenAI.FineTuningJobObject? Type137 { get; set; } /// /// /// - public global::OpenAI.FineTuningIntegrationWandb? Type138 { get; set; } + public global::OpenAI.FineTuningJobStatus? Type138 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobEventLevel? Type139 { get; set; } + public global::System.Collections.Generic.IList?>? Type139 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobEventObject? Type140 { get; set; } + public global::System.OneOf? Type140 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobCheckpointMetrics? Type141 { get; set; } + public global::OpenAI.FineTuningIntegrationType? Type141 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobCheckpointObject? Type142 { get; set; } + public global::OpenAI.FineTuningIntegrationWandb? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type143 { get; set; } + public global::OpenAI.FineTuningJobEventLevel? Type143 { get; set; } /// /// /// - public global::OpenAI.AssistantsApiResponseFormatType? Type144 { get; set; } + public global::OpenAI.FineTuningJobEventObject? Type144 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectObject? Type145 { get; set; } + public global::OpenAI.FineTuningJobCheckpointMetrics? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type146 { get; set; } + public global::OpenAI.FineTuningJobCheckpointObject? Type146 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectToolResources? Type147 { get; set; } + public global::System.Collections.Generic.IList?>? Type147 { get; set; } /// /// /// - public global::System.OneOf? Type148 { get; set; } + public global::OpenAI.AssistantsApiResponseFormatType? Type148 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectToolResourcesCodeInterpreter? Type149 { get; set; } + public global::OpenAI.AssistantObjectObject? Type149 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectToolResourcesFileSearch? Type150 { get; set; } + public global::System.Collections.Generic.IList>? Type150 { get; set; } /// /// /// - public global::System.AnyOf? Type151 { get; set; } + public global::OpenAI.AssistantObjectToolResources? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type152 { get; set; } + public global::System.OneOf? Type152 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResources? Type153 { get; set; } + public global::OpenAI.AssistantObjectToolResourcesCodeInterpreter? Type153 { get; set; } /// /// /// - public global::System.OneOf? Type154 { get; set; } + public global::OpenAI.AssistantObjectToolResourcesFileSearch? Type154 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type155 { get; set; } + public global::System.AnyOf? Type155 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type156 { get; set; } + public global::System.Collections.Generic.IList?>? Type156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type157 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResources? Type157 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType? Type158 { get; set; } + public global::System.OneOf? Type158 { get; set; } /// /// /// - public global::System.AnyOf? Type159 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type159 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequestToolResources? Type160 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type160 { get; set; } /// /// /// - public global::System.OneOf? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type162 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType? Type162 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type163 { get; set; } + public global::System.AnyOf? Type163 { get; set; } /// /// /// - public global::OpenAI.DeleteAssistantResponseObject? Type164 { get; set; } + public global::OpenAI.ModifyAssistantRequestToolResources? Type164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type165 { get; set; } + public global::System.OneOf? Type165 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsCodeType? Type166 { get; set; } + public global::OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type166 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearchType? Type167 { get; set; } + public global::OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type167 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearchFileSearch? Type168 { get; set; } + public global::OpenAI.DeleteAssistantResponseObject? Type168 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearchTypeOnlyType? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFunctionType? Type170 { get; set; } + public global::OpenAI.AssistantToolsCodeType? Type170 { get; set; } /// /// /// - public global::OpenAI.TruncationObjectType? Type171 { get; set; } + public global::OpenAI.AssistantToolsFileSearchType? Type171 { get; set; } /// /// /// - public global::OpenAI.AssistantsNamedToolChoiceType? Type172 { get; set; } + public global::OpenAI.AssistantToolsFileSearchFileSearch? Type172 { get; set; } /// /// /// - public global::OpenAI.AssistantsNamedToolChoiceFunction? Type173 { get; set; } + public global::OpenAI.AssistantToolsFileSearchTypeOnlyType? Type173 { get; set; } /// /// /// - public global::OpenAI.RunObjectObject? Type174 { get; set; } + public global::OpenAI.AssistantToolsFunctionType? Type174 { get; set; } /// /// /// - public global::OpenAI.RunObjectStatus? Type175 { get; set; } + public global::OpenAI.TruncationObjectType? Type175 { get; set; } /// /// /// - public global::OpenAI.RunObjectRequiredAction? Type176 { get; set; } + public global::OpenAI.AssistantsNamedToolChoiceType? Type176 { get; set; } /// /// /// - public global::OpenAI.RunObjectLastError? Type177 { get; set; } + public global::OpenAI.AssistantsNamedToolChoiceFunction? Type177 { get; set; } /// /// /// - public global::OpenAI.RunObjectIncompleteDetails? Type178 { get; set; } + public global::OpenAI.RunObjectObject? Type178 { get; set; } /// /// /// - public global::OpenAI.RunCompletionUsage? Type179 { get; set; } + public global::OpenAI.RunObjectStatus? Type179 { get; set; } /// /// /// - public global::OpenAI.TruncationObject? Type180 { get; set; } + public global::OpenAI.RunObjectRequiredAction? Type180 { get; set; } /// /// /// - public global::System.OneOf? Type181 { get; set; } + public global::OpenAI.RunObjectLastError? Type181 { get; set; } /// /// /// - public global::System.OneOf? Type182 { get; set; } + public global::OpenAI.RunObjectIncompleteDetails? Type182 { get; set; } /// /// /// - public global::OpenAI.RunObjectRequiredActionType? Type183 { get; set; } + public global::OpenAI.RunCompletionUsage? Type183 { get; set; } /// /// /// - public global::OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type184 { get; set; } + public global::OpenAI.TruncationObject? Type184 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type185 { get; set; } + public global::System.OneOf? Type185 { get; set; } /// /// /// - public global::OpenAI.RunObjectLastErrorCode? Type186 { get; set; } + public global::System.OneOf? Type186 { get; set; } /// /// /// - public global::OpenAI.RunObjectIncompleteDetailsReason? Type187 { get; set; } + public global::OpenAI.RunObjectRequiredActionType? Type187 { get; set; } /// /// /// - public global::System.AnyOf? Type188 { get; set; } + public global::OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::System.OneOf? Type190 { get; set; } + public global::OpenAI.RunObjectLastErrorCode? Type190 { get; set; } /// /// /// - public global::System.OneOf? Type191 { get; set; } + public global::OpenAI.RunObjectIncompleteDetailsReason? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::System.AnyOf? Type192 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::OpenAI.RunToolCallObjectType? Type194 { get; set; } + public global::System.OneOf? Type194 { get; set; } /// /// /// - public global::OpenAI.RunToolCallObjectFunction? Type195 { get; set; } + public global::System.OneOf? Type195 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequest? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::System.AnyOf? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestToolResources? Type198 { get; set; } + public global::OpenAI.RunToolCallObjectType? Type198 { get; set; } /// /// /// - public global::System.OneOf? Type199 { get; set; } + public global::OpenAI.RunToolCallObjectFunction? Type199 { get; set; } /// /// /// - public global::System.OneOf? Type200 { get; set; } + public global::OpenAI.CreateThreadRequest? Type200 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type201 { get; set; } + public global::System.AnyOf? Type201 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type202 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestToolResources? Type202 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectObject? Type203 { get; set; } + public global::System.OneOf? Type203 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectToolResources? Type204 { get; set; } + public global::System.OneOf? Type204 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type205 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type205 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectToolResourcesFileSearch? Type206 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type206 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResources? Type207 { get; set; } + public global::OpenAI.ThreadObjectObject? Type207 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type208 { get; set; } + public global::OpenAI.ThreadObjectToolResources? Type208 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearch? Type209 { get; set; } + public global::OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::OpenAI.ThreadObjectToolResourcesFileSearch? Type210 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoresChunkingStrategyType? Type211 { get; set; } + public global::OpenAI.CreateThreadRequestToolResources? Type211 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequestToolResources? Type212 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type212 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type213 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearch? Type213 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type214 { get; set; } + public global::System.Collections.Generic.IList? Type214 { get; set; } /// /// /// - public global::OpenAI.DeleteThreadResponseObject? Type215 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoresChunkingStrategyType? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::OpenAI.ModifyThreadRequestToolResources? Type216 { get; set; } /// /// /// - public global::OpenAI.MessageObjectObject? Type217 { get; set; } + public global::OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type217 { get; set; } /// /// /// - public global::OpenAI.MessageObjectStatus? Type218 { get; set; } + public global::OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type218 { get; set; } /// /// /// - public global::OpenAI.MessageObjectIncompleteDetails? Type219 { get; set; } + public global::OpenAI.DeleteThreadResponseObject? Type219 { get; set; } /// /// /// - public global::OpenAI.MessageObjectRole? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type221 { get; set; } + public global::OpenAI.MessageObjectObject? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::OpenAI.MessageObjectStatus? Type222 { get; set; } /// /// /// - public global::OpenAI.MessageObjectIncompleteDetailsReason? Type223 { get; set; } + public global::OpenAI.MessageObjectIncompleteDetails? Type223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type224 { get; set; } + public global::OpenAI.MessageObjectRole? Type224 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObjectObject? Type225 { get; set; } + public global::System.Collections.Generic.IList>? Type225 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObjectDelta? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObjectDeltaRole? Type227 { get; set; } + public global::OpenAI.MessageObjectIncompleteDetailsReason? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type228 { get; set; } + public global::System.Collections.Generic.IList?>? Type228 { get; set; } /// /// /// - public global::OpenAI.CreateMessageRequestRole? Type229 { get; set; } + public global::OpenAI.MessageDeltaObjectObject? Type229 { get; set; } /// /// /// - public global::System.OneOf>>? Type230 { get; set; } + public global::OpenAI.MessageDeltaObjectDelta? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::OpenAI.MessageDeltaObjectDeltaRole? Type231 { get; set; } /// /// /// - public global::OpenAI.DeleteMessageResponseObject? Type232 { get; set; } + public global::System.Collections.Generic.IList?>? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::OpenAI.CreateMessageRequestRole? Type233 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageFileObjectType? Type234 { get; set; } + public global::System.OneOf>>? Type234 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageFileObjectImageFile? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageFileObjectImageFileDetail? Type236 { get; set; } + public global::OpenAI.DeleteMessageResponseObject? Type236 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageFileObjectType? Type237 { get; set; } + public global::System.Collections.Generic.IList? Type237 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageFileObjectImageFile? Type238 { get; set; } + public global::OpenAI.MessageContentImageFileObjectType? Type238 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type239 { get; set; } + public global::OpenAI.MessageContentImageFileObjectImageFile? Type239 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageUrlObjectType? Type240 { get; set; } + public global::OpenAI.MessageContentImageFileObjectImageFileDetail? Type240 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageUrlObjectImageUrl? Type241 { get; set; } + public global::OpenAI.MessageDeltaContentImageFileObjectType? Type241 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type242 { get; set; } + public global::OpenAI.MessageDeltaContentImageFileObjectImageFile? Type242 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageUrlObjectType? Type243 { get; set; } + public global::OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type243 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type244 { get; set; } + public global::OpenAI.MessageContentImageUrlObjectType? Type244 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type245 { get; set; } + public global::OpenAI.MessageContentImageUrlObjectImageUrl? Type245 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextObjectType? Type246 { get; set; } + public global::OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type246 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextObjectText? Type247 { get; set; } + public global::OpenAI.MessageDeltaContentImageUrlObjectType? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type248 { get; set; } + public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type248 { get; set; } /// /// /// - public global::OpenAI.MessageRequestContentTextObjectType? Type249 { get; set; } + public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type249 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type250 { get; set; } + public global::OpenAI.MessageContentTextObjectType? Type250 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type251 { get; set; } + public global::OpenAI.MessageContentTextObjectText? Type251 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type252 { get; set; } + public global::System.Collections.Generic.IList>? Type252 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type253 { get; set; } + public global::OpenAI.MessageRequestContentTextObjectType? Type253 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextObjectType? Type254 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type254 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextObjectText? Type255 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type256 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type256 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type257 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type257 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type258 { get; set; } + public global::OpenAI.MessageDeltaContentTextObjectType? Type258 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type259 { get; set; } + public global::OpenAI.MessageDeltaContentTextObjectText? Type259 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type260 { get; set; } + public global::System.Collections.Generic.IList?>? Type260 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectObject? Type261 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type261 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectType? Type262 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type262 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectStatus? Type263 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type263 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectLastError? Type264 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type264 { get; set; } /// /// /// - public global::OpenAI.RunStepCompletionUsage? Type265 { get; set; } + public global::OpenAI.RunStepObjectObject? Type265 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectLastErrorCode? Type266 { get; set; } + public global::OpenAI.RunStepObjectType? Type266 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaObjectObject? Type267 { get; set; } + public global::OpenAI.RunStepObjectStatus? Type267 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaObjectDelta? Type268 { get; set; } + public global::OpenAI.RunStepObjectLastError? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type269 { get; set; } + public global::OpenAI.RunStepCompletionUsage? Type269 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsMessageCreationObjectType? Type270 { get; set; } + public global::OpenAI.RunStepObjectLastErrorCode? Type270 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type271 { get; set; } + public global::OpenAI.RunStepDeltaObjectObject? Type271 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type272 { get; set; } + public global::OpenAI.RunStepDeltaObjectDelta? Type272 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsObjectType? Type274 { get; set; } + public global::OpenAI.RunStepDetailsMessageCreationObjectType? Type274 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type275 { get; set; } + public global::OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type275 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type276 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type277 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type277 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeObjectType? Type278 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsObjectType? Type278 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type279 { get; set; } + public global::System.Collections.Generic.IList>? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type280 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type281 { get; set; } + public global::System.Collections.Generic.IList?>? Type281 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type282 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeObjectType? Type282 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type283 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type283 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type284 { get; set; } + public global::System.Collections.Generic.IList? Type284 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type285 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type285 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type286 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type286 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type287 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type287 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type288 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type288 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type289 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type289 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type290 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type290 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type291 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type291 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type292 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type292 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type293 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type293 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type294 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type294 { get; set; } /// /// /// - public global::OpenAI.VectorStoreExpirationAfterAnchor? Type295 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type295 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObjectObject? Type296 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type296 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObjectFileCounts? Type297 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type297 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObjectStatus? Type298 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type298 { get; set; } /// /// /// - public global::OpenAI.VectorStoreExpirationAfter? Type299 { get; set; } + public global::OpenAI.VectorStoreExpirationAfterAnchor? Type299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type300 { get; set; } + public global::OpenAI.VectorStoreObjectObject? Type300 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreResponseObject? Type301 { get; set; } + public global::OpenAI.VectorStoreObjectFileCounts? Type301 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectObject? Type302 { get; set; } + public global::OpenAI.VectorStoreObjectStatus? Type302 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectStatus? Type303 { get; set; } + public global::OpenAI.VectorStoreExpirationAfter? Type303 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectLastError? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectLastErrorCode? Type305 { get; set; } + public global::OpenAI.DeleteVectorStoreResponseObject? Type305 { get; set; } /// /// /// - public global::OpenAI.OtherChunkingStrategyResponseParamType? Type306 { get; set; } + public global::OpenAI.VectorStoreFileObjectObject? Type306 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategyResponseParamType? Type307 { get; set; } + public global::OpenAI.VectorStoreFileObjectStatus? Type307 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategy? Type308 { get; set; } + public global::OpenAI.VectorStoreFileObjectLastError? Type308 { get; set; } /// /// /// - public global::OpenAI.AutoChunkingStrategyRequestParamType? Type309 { get; set; } + public global::OpenAI.VectorStoreFileObjectLastErrorCode? Type309 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategyRequestParamType? Type310 { get; set; } + public global::OpenAI.OtherChunkingStrategyResponseParamType? Type310 { get; set; } /// /// /// - public global::OpenAI.ChunkingStrategyRequestParam? Type311 { get; set; } + public global::OpenAI.StaticChunkingStrategyResponseParamType? Type311 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type312 { get; set; } + public global::OpenAI.StaticChunkingStrategy? Type312 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreFileResponseObject? Type313 { get; set; } + public global::OpenAI.AutoChunkingStrategyRequestParamType? Type313 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObjectObject? Type314 { get; set; } + public global::OpenAI.StaticChunkingStrategyRequestParamType? Type314 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObjectStatus? Type315 { get; set; } + public global::OpenAI.ChunkingStrategyRequestParam? Type315 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObjectFileCounts? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::OpenAI.ThreadStreamEventVariant1Event? Type317 { get; set; } + public global::OpenAI.DeleteVectorStoreFileResponseObject? Type317 { get; set; } /// /// /// - public global::OpenAI.ThreadObject? Type318 { get; set; } + public global::OpenAI.VectorStoreFileBatchObjectObject? Type318 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant1Event? Type319 { get; set; } + public global::OpenAI.VectorStoreFileBatchObjectStatus? Type319 { get; set; } /// /// /// - public global::OpenAI.RunObject? Type320 { get; set; } + public global::OpenAI.VectorStoreFileBatchObjectFileCounts? Type320 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant2Event? Type321 { get; set; } + public global::OpenAI.ThreadStreamEventVariant1Event? Type321 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant3Event? Type322 { get; set; } + public global::OpenAI.ThreadObject? Type322 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant4Event? Type323 { get; set; } + public global::OpenAI.RunStreamEventVariant1Event? Type323 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant5Event? Type324 { get; set; } + public global::OpenAI.RunObject? Type324 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant6Event? Type325 { get; set; } + public global::OpenAI.RunStreamEventVariant2Event? Type325 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant7Event? Type326 { get; set; } + public global::OpenAI.RunStreamEventVariant3Event? Type326 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant8Event? Type327 { get; set; } + public global::OpenAI.RunStreamEventVariant4Event? Type327 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant9Event? Type328 { get; set; } + public global::OpenAI.RunStreamEventVariant5Event? Type328 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant10Event? Type329 { get; set; } + public global::OpenAI.RunStreamEventVariant6Event? Type329 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant1Event? Type330 { get; set; } + public global::OpenAI.RunStreamEventVariant7Event? Type330 { get; set; } /// /// /// - public global::OpenAI.RunStepObject? Type331 { get; set; } + public global::OpenAI.RunStreamEventVariant8Event? Type331 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant2Event? Type332 { get; set; } + public global::OpenAI.RunStreamEventVariant9Event? Type332 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant3Event? Type333 { get; set; } + public global::OpenAI.RunStreamEventVariant10Event? Type333 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaObject? Type334 { get; set; } + public global::OpenAI.RunStepStreamEventVariant1Event? Type334 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant4Event? Type335 { get; set; } + public global::OpenAI.RunStepObject? Type335 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant5Event? Type336 { get; set; } + public global::OpenAI.RunStepStreamEventVariant2Event? Type336 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant6Event? Type337 { get; set; } + public global::OpenAI.RunStepStreamEventVariant3Event? Type337 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant7Event? Type338 { get; set; } + public global::OpenAI.RunStepDeltaObject? Type338 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant1Event? Type339 { get; set; } + public global::OpenAI.RunStepStreamEventVariant4Event? Type339 { get; set; } /// /// /// - public global::OpenAI.MessageObject? Type340 { get; set; } + public global::OpenAI.RunStepStreamEventVariant5Event? Type340 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant2Event? Type341 { get; set; } + public global::OpenAI.RunStepStreamEventVariant6Event? Type341 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant3Event? Type342 { get; set; } + public global::OpenAI.RunStepStreamEventVariant7Event? Type342 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObject? Type343 { get; set; } + public global::OpenAI.MessageStreamEventVariant1Event? Type343 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant4Event? Type344 { get; set; } + public global::OpenAI.MessageObject? Type344 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant5Event? Type345 { get; set; } + public global::OpenAI.MessageStreamEventVariant2Event? Type345 { get; set; } /// /// /// - public global::OpenAI.ErrorEventEvent? Type346 { get; set; } + public global::OpenAI.MessageStreamEventVariant3Event? Type346 { get; set; } /// /// /// - public global::OpenAI.DoneEventEvent? Type347 { get; set; } + public global::OpenAI.MessageDeltaObject? Type347 { get; set; } /// /// /// - public global::OpenAI.DoneEventData? Type348 { get; set; } + public global::OpenAI.MessageStreamEventVariant4Event? Type348 { get; set; } /// /// /// - public global::OpenAI.BatchObject? Type349 { get; set; } + public global::OpenAI.MessageStreamEventVariant5Event? Type349 { get; set; } /// /// /// - public global::OpenAI.BatchErrors? Type350 { get; set; } + public global::OpenAI.ErrorEventEvent? Type350 { get; set; } /// /// /// - public global::OpenAI.BatchStatus? Type351 { get; set; } + public global::OpenAI.DoneEventEvent? Type351 { get; set; } /// /// /// - public global::OpenAI.BatchRequestCounts? Type352 { get; set; } + public global::OpenAI.DoneEventData? Type352 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type353 { get; set; } + public global::OpenAI.BatchObject? Type353 { get; set; } /// /// /// - public global::OpenAI.BatchRequestInputMethod? Type354 { get; set; } + public global::OpenAI.BatchErrors? Type354 { get; set; } /// /// /// - public global::OpenAI.BatchRequestOutputResponse? Type355 { get; set; } + public global::OpenAI.BatchStatus? Type355 { get; set; } /// /// /// - public global::OpenAI.BatchRequestOutputError? Type356 { get; set; } + public global::OpenAI.BatchRequestCounts? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::OpenAI.ListBatchesResponseObject? Type358 { get; set; } + public global::OpenAI.BatchRequestInputMethod? Type358 { get; set; } /// /// /// - public global::OpenAI.CreateChatCompletionRequest? Type359 { get; set; } + public global::OpenAI.BatchRequestOutputResponse? Type359 { get; set; } /// /// /// - public global::OpenAI.CreateChatCompletionResponse? Type360 { get; set; } + public global::OpenAI.BatchRequestOutputError? Type360 { get; set; } /// /// /// - public global::OpenAI.CreateCompletionRequest? Type361 { get; set; } + public global::System.Collections.Generic.IList? Type361 { get; set; } /// /// /// - public global::OpenAI.CreateCompletionResponse? Type362 { get; set; } + public global::OpenAI.ListBatchesResponseObject? Type362 { get; set; } /// /// /// - public global::OpenAI.CreateImageRequest? Type363 { get; set; } + public global::OpenAI.CreateChatCompletionRequest? Type363 { get; set; } /// /// /// - public global::OpenAI.ImagesResponse? Type364 { get; set; } + public global::OpenAI.CreateChatCompletionResponse? Type364 { get; set; } /// /// /// - public global::OpenAI.CreateImageEditRequest? Type365 { get; set; } + public global::OpenAI.CreateCompletionRequest? Type365 { get; set; } /// /// /// - public global::OpenAI.CreateImageVariationRequest? Type366 { get; set; } + public global::OpenAI.CreateCompletionResponse? Type366 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingRequest? Type367 { get; set; } + public global::OpenAI.CreateImageRequest? Type367 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingResponse? Type368 { get; set; } + public global::OpenAI.ImagesResponse? Type368 { get; set; } /// /// /// - public global::OpenAI.CreateSpeechRequest? Type369 { get; set; } + public global::OpenAI.CreateImageEditRequest? Type369 { get; set; } /// /// /// - public global::OpenAI.CreateTranscriptionRequest? Type370 { get; set; } + public global::OpenAI.CreateImageVariationRequest? Type370 { get; set; } /// /// /// - public global::System.OneOf? Type371 { get; set; } + public global::OpenAI.CreateEmbeddingRequest? Type371 { get; set; } /// /// /// - public global::OpenAI.CreateTranslationRequest? Type372 { get; set; } + public global::OpenAI.CreateEmbeddingResponse? Type372 { get; set; } /// /// /// - public global::System.OneOf? Type373 { get; set; } + public global::OpenAI.CreateSpeechRequest? Type373 { get; set; } /// /// /// - public global::OpenAI.ListFilesResponse? Type374 { get; set; } + public global::OpenAI.CreateTranscriptionRequest? Type374 { get; set; } /// /// /// - public global::OpenAI.CreateFileRequest? Type375 { get; set; } + public global::System.OneOf? Type375 { get; set; } /// /// /// - public global::OpenAI.OpenAIFile? Type376 { get; set; } + public global::OpenAI.CreateTranslationRequest? Type376 { get; set; } /// /// /// - public global::OpenAI.DeleteFileResponse? Type377 { get; set; } + public global::System.OneOf? Type377 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequest? Type378 { get; set; } + public global::OpenAI.ListFilesResponse? Type378 { get; set; } /// /// /// - public global::OpenAI.FineTuningJob? Type379 { get; set; } + public global::OpenAI.CreateFileRequest? Type379 { get; set; } /// /// /// - public global::OpenAI.ListPaginatedFineTuningJobsResponse? Type380 { get; set; } + public global::OpenAI.OpenAIFile? Type380 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobEventsResponse? Type381 { get; set; } + public global::OpenAI.DeleteFileResponse? Type381 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobCheckpointsResponse? Type382 { get; set; } + public global::OpenAI.CreateUploadRequest? Type382 { get; set; } /// /// /// - public global::OpenAI.ListModelsResponse? Type383 { get; set; } + public global::OpenAI.Upload? Type383 { get; set; } /// /// /// - public global::OpenAI.Model? Type384 { get; set; } + public global::OpenAI.AddUploadPartRequest? Type384 { get; set; } /// /// /// - public global::OpenAI.DeleteModelResponse? Type385 { get; set; } + public global::OpenAI.UploadPart? Type385 { get; set; } /// /// /// - public global::OpenAI.CreateModerationRequest? Type386 { get; set; } + public global::OpenAI.CompleteUploadRequest? Type386 { get; set; } /// /// /// - public global::OpenAI.CreateModerationResponse? Type387 { get; set; } + public global::OpenAI.CreateFineTuningJobRequest? Type387 { get; set; } /// /// /// - public global::OpenAI.ListAssistantsResponse? Type388 { get; set; } + public global::OpenAI.FineTuningJob? Type388 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequest? Type389 { get; set; } + public global::OpenAI.ListPaginatedFineTuningJobsResponse? Type389 { get; set; } /// /// /// - public global::OpenAI.AssistantObject? Type390 { get; set; } + public global::OpenAI.ListFineTuningJobEventsResponse? Type390 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequest? Type391 { get; set; } + public global::OpenAI.ListFineTuningJobCheckpointsResponse? Type391 { get; set; } /// /// /// - public global::OpenAI.DeleteAssistantResponse? Type392 { get; set; } + public global::OpenAI.ListModelsResponse? Type392 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequest? Type393 { get; set; } + public global::OpenAI.Model? Type393 { get; set; } /// /// /// - public global::OpenAI.DeleteThreadResponse? Type394 { get; set; } + public global::OpenAI.DeleteModelResponse? Type394 { get; set; } /// /// /// - public global::OpenAI.ListMessagesResponse? Type395 { get; set; } + public global::OpenAI.CreateModerationRequest? Type395 { get; set; } /// /// /// - public global::OpenAI.CreateMessageRequest? Type396 { get; set; } + public global::OpenAI.CreateModerationResponse? Type396 { get; set; } /// /// /// - public global::OpenAI.ModifyMessageRequest? Type397 { get; set; } + public global::OpenAI.ListAssistantsResponse? Type397 { get; set; } /// /// /// - public global::OpenAI.DeleteMessageResponse? Type398 { get; set; } + public global::OpenAI.CreateAssistantRequest? Type398 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequest? Type399 { get; set; } + public global::OpenAI.AssistantObject? Type399 { get; set; } /// /// /// - public global::OpenAI.ListRunsResponse? Type400 { get; set; } + public global::OpenAI.ModifyAssistantRequest? Type400 { get; set; } /// /// /// - public global::OpenAI.CreateRunRequest? Type401 { get; set; } + public global::OpenAI.DeleteAssistantResponse? Type401 { get; set; } /// /// /// - public global::OpenAI.ModifyRunRequest? Type402 { get; set; } + public global::OpenAI.ModifyThreadRequest? Type402 { get; set; } /// /// /// - public global::OpenAI.SubmitToolOutputsRunRequest? Type403 { get; set; } + public global::OpenAI.DeleteThreadResponse? Type403 { get; set; } /// /// /// - public global::OpenAI.ListRunStepsResponse? Type404 { get; set; } + public global::OpenAI.ListMessagesResponse? Type404 { get; set; } /// /// /// - public global::OpenAI.ListVectorStoresResponse? Type405 { get; set; } + public global::OpenAI.CreateMessageRequest? Type405 { get; set; } /// /// /// - public global::OpenAI.CreateVectorStoreRequest? Type406 { get; set; } + public global::OpenAI.ModifyMessageRequest? Type406 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObject? Type407 { get; set; } + public global::OpenAI.DeleteMessageResponse? Type407 { get; set; } /// /// /// - public global::OpenAI.UpdateVectorStoreRequest? Type408 { get; set; } + public global::OpenAI.CreateThreadAndRunRequest? Type408 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreResponse? Type409 { get; set; } + public global::OpenAI.ListRunsResponse? Type409 { get; set; } /// /// /// - public global::OpenAI.ListVectorStoreFilesResponse? Type410 { get; set; } + public global::OpenAI.CreateRunRequest? Type410 { get; set; } /// /// /// - public global::OpenAI.CreateVectorStoreFileRequest? Type411 { get; set; } + public global::OpenAI.ModifyRunRequest? Type411 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObject? Type412 { get; set; } + public global::OpenAI.SubmitToolOutputsRunRequest? Type412 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreFileResponse? Type413 { get; set; } + public global::OpenAI.ListRunStepsResponse? Type413 { get; set; } /// /// /// - public global::OpenAI.CreateVectorStoreFileBatchRequest? Type414 { get; set; } + public global::OpenAI.ListVectorStoresResponse? Type414 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObject? Type415 { get; set; } + public global::OpenAI.CreateVectorStoreRequest? Type415 { get; set; } /// /// /// - public global::OpenAI.CreateBatchRequest? Type416 { get; set; } + public global::OpenAI.VectorStoreObject? Type416 { get; set; } /// /// /// - public global::OpenAI.Batch? Type417 { get; set; } + public global::OpenAI.UpdateVectorStoreRequest? Type417 { get; set; } /// /// /// - public global::OpenAI.ListBatchesResponse? Type418 { get; set; } + public global::OpenAI.DeleteVectorStoreResponse? Type418 { get; set; } + /// + /// + /// + public global::OpenAI.ListVectorStoreFilesResponse? Type419 { get; set; } + /// + /// + /// + public global::OpenAI.CreateVectorStoreFileRequest? Type420 { get; set; } + /// + /// + /// + public global::OpenAI.VectorStoreFileObject? Type421 { get; set; } + /// + /// + /// + public global::OpenAI.DeleteVectorStoreFileResponse? Type422 { get; set; } + /// + /// + /// + public global::OpenAI.CreateVectorStoreFileBatchRequest? Type423 { get; set; } + /// + /// + /// + public global::OpenAI.VectorStoreFileBatchObject? Type424 { get; set; } + /// + /// + /// + public global::OpenAI.CreateBatchRequest? Type425 { get; set; } + /// + /// + /// + public global::OpenAI.Batch? Type426 { get; set; } + /// + /// + /// + public global::OpenAI.ListBatchesResponse? Type427 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs new file mode 100644 index 00000000..72cfd0fb --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs @@ -0,0 +1,24 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public sealed partial class AddUploadPartRequest + { + /// + /// The chunk of bytes for this Part. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CancelUploadRequest.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CancelUploadRequest.g.cs new file mode 100644 index 00000000..9ae5b0f4 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CancelUploadRequest.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public sealed partial class CancelUploadRequest + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CompleteUploadRequest.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CompleteUploadRequest.g.cs new file mode 100644 index 00000000..55e4d6d9 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CompleteUploadRequest.g.cs @@ -0,0 +1,30 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public sealed partial class CompleteUploadRequest + { + /// + /// The ordered list of Part IDs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("part_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList PartIds { get; set; } + + /// + /// The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("md5")] + public string? Md5 { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequest.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequest.g.cs new file mode 100644 index 00000000..ee5ff99e --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequest.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public sealed partial class CreateUploadRequest + { + /// + /// The name of the file to upload. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + [global::System.Text.Json.Serialization.JsonRequired] + public required byte[] Filename { get; set; } + + /// + /// The intended purpose of the uploaded file.
+ /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("purpose")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateUploadRequestPurposeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenAI.CreateUploadRequestPurpose Purpose { get; set; } + + /// + /// The number of bytes in the file you are uploading. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bytes")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Bytes { get; set; } + + /// + /// The MIME type of the file.
+ /// This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string MimeType { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequestPurpose.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequestPurpose.g.cs new file mode 100644 index 00000000..6630a52b --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateUploadRequestPurpose.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// The intended purpose of the uploaded file.
+ /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + ///
+ public enum CreateUploadRequestPurpose + { + /// + /// + /// + Assistants, + /// + /// + /// + Batch, + /// + /// + /// + FineTune, + /// + /// + /// + Vision, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateUploadRequestPurposeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateUploadRequestPurpose value) + { + return value switch + { + CreateUploadRequestPurpose.Assistants => "assistants", + CreateUploadRequestPurpose.Batch => "batch", + CreateUploadRequestPurpose.FineTune => "fine-tune", + CreateUploadRequestPurpose.Vision => "vision", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateUploadRequestPurpose? ToEnum(string value) + { + return value switch + { + "assistants" => CreateUploadRequestPurpose.Assistants, + "batch" => CreateUploadRequestPurpose.Batch, + "fine-tune" => CreateUploadRequestPurpose.FineTune, + "vision" => CreateUploadRequestPurpose.Vision, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.Upload.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.Upload.g.cs new file mode 100644 index 00000000..7193975a --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.Upload.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// The Upload object can accept byte chunks in the form of Parts. + /// + public sealed partial class Upload + { + /// + /// The Upload unique identifier, which can be referenced in API endpoints. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// The Unix timestamp (in seconds) for when the Upload was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CreatedAt { get; set; } + + /// + /// The name of the file to be uploaded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Filename { get; set; } + + /// + /// The intended number of bytes to be uploaded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bytes")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Bytes { get; set; } + + /// + /// The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("purpose")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Purpose { get; set; } + + /// + /// The status of the Upload. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UploadStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenAI.UploadStatus Status { get; set; } + + /// + /// The Unix timestamp (in seconds) for when the Upload was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExpiresAt { get; set; } + + /// + /// The object type, which is always "upload". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UploadObjectJsonConverter))] + public global::OpenAI.UploadObject? Object { get; set; } + + /// + /// The ready File object after the Upload is completed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file")] + public object? File { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.UploadObject.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.UploadObject.g.cs new file mode 100644 index 00000000..c1a1be5c --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.UploadObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// The object type, which is always "upload". + /// + public enum UploadObject + { + /// + /// + /// + Upload, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UploadObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UploadObject value) + { + return value switch + { + UploadObject.Upload => "upload", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UploadObject? ToEnum(string value) + { + return value switch + { + "upload" => UploadObject.Upload, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.UploadPart.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.UploadPart.g.cs new file mode 100644 index 00000000..bedc7bd7 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.UploadPart.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// The upload Part represents a chunk of bytes we can add to an Upload object. + /// + public sealed partial class UploadPart + { + /// + /// The upload Part unique identifier, which can be referenced in API endpoints. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// The Unix timestamp (in seconds) for when the Part was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CreatedAt { get; set; } + + /// + /// The ID of the Upload object that this Part was added to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("upload_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UploadId { get; set; } + + /// + /// The object type, which is always `upload.part`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UploadPartObjectJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenAI.UploadPartObject Object { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.UploadPartObject.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.UploadPartObject.g.cs new file mode 100644 index 00000000..e70c5c1a --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.UploadPartObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// The object type, which is always `upload.part`. + /// + public enum UploadPartObject + { + /// + /// + /// + UploadPart, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UploadPartObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UploadPartObject value) + { + return value switch + { + UploadPartObject.UploadPart => "upload.part", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UploadPartObject? ToEnum(string value) + { + return value switch + { + "upload.part" => UploadPartObject.UploadPart, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.UploadStatus.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.UploadStatus.g.cs new file mode 100644 index 00000000..cfb08dfc --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.UploadStatus.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// The status of the Upload. + /// + public enum UploadStatus + { + /// + /// + /// + Pending, + /// + /// + /// + Completed, + /// + /// + /// + Cancelled, + /// + /// + /// + Expired, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UploadStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UploadStatus value) + { + return value switch + { + UploadStatus.Pending => "pending", + UploadStatus.Completed => "completed", + UploadStatus.Cancelled => "cancelled", + UploadStatus.Expired => "expired", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UploadStatus? ToEnum(string value) + { + return value switch + { + "pending" => UploadStatus.Pending, + "completed" => UploadStatus.Completed, + "cancelled" => UploadStatus.Cancelled, + "expired" => UploadStatus.Expired, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs b/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs index a5935aaa..22afb6b4 100644 --- a/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs @@ -58,6 +58,11 @@ public sealed partial class OpenAiApi : global::System.IDisposable /// public FilesClient Files => new FilesClient(_httpClient); + /// + /// Use Uploads to upload large files in multiple parts. + /// + public UploadsClient Uploads => new UploadsClient(_httpClient); + /// /// Given a prompt and/or an input image, the model will generate a new image. /// diff --git a/src/libs/OpenAI/Generated/OpenAI.UploadsClient.AddUploadPart.g.cs b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.AddUploadPart.g.cs new file mode 100644 index 00000000..6b24ce8d --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.AddUploadPart.g.cs @@ -0,0 +1,122 @@ + +#nullable enable + +namespace OpenAI +{ + public partial class UploadsClient + { + partial void PrepareAddUploadPartArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenAI.AddUploadPartRequest request); + partial void PrepareAddUploadPartRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenAI.AddUploadPartRequest request); + partial void ProcessAddUploadPartResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAddUploadPartResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
+ /// Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 10 GB.
+ /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete). + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AddUploadPartAsync( + global::OpenAI.AddUploadPartRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: _httpClient); + PrepareAddUploadPartArguments( + httpClient: _httpClient, + request: request); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/uploads/{upload_id}/part", global::System.UriKind.RelativeOrAbsolute)); + var __json = global::System.Text.Json.JsonSerializer.Serialize(request, global::OpenAI.SourceGenerationContext.Default.AddUploadPartRequest); + httpRequest.Content = new global::System.Net.Http.StringContent( + content: __json, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareAddUploadPartRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest, + request: request); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessAddUploadPartResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessAddUploadPartResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::OpenAI.SourceGenerationContext.Default.UploadPart) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + + /// + /// Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
+ /// Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 10 GB.
+ /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete). + ///
+ /// + /// The chunk of bytes for this Part. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AddUploadPartAsync( + string data, + global::System.Threading.CancellationToken cancellationToken = default) + { + var request = new global::OpenAI.AddUploadPartRequest + { + Data = data, + }; + + return await AddUploadPartAsync( + request: request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CancelUpload.g.cs b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CancelUpload.g.cs new file mode 100644 index 00000000..9b9b1dc3 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CancelUpload.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace OpenAI +{ + public partial class UploadsClient + { + partial void PrepareCancelUploadArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareCancelUploadRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessCancelUploadResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCancelUploadResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Cancels the Upload. No Parts may be added after an Upload is cancelled. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CancelUploadAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: _httpClient); + PrepareCancelUploadArguments( + httpClient: _httpClient); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/uploads/{upload_id}/cancel", global::System.UriKind.RelativeOrAbsolute)); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareCancelUploadRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessCancelUploadResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessCancelUploadResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::OpenAI.SourceGenerationContext.Default.Upload) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CompleteUpload.g.cs b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CompleteUpload.g.cs new file mode 100644 index 00000000..e14ecad3 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CompleteUpload.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenAI +{ + public partial class UploadsClient + { + partial void PrepareCompleteUploadArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenAI.CompleteUploadRequest request); + partial void PrepareCompleteUploadRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenAI.CompleteUploadRequest request); + partial void ProcessCompleteUploadResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCompleteUploadResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Completes the [Upload](/docs/api-reference/uploads/object) and returns a [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
+ /// You can specify the order of the Parts by passing in an ordered list of the Part IDs.
+ /// The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CompleteUploadAsync( + global::OpenAI.CompleteUploadRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: _httpClient); + PrepareCompleteUploadArguments( + httpClient: _httpClient, + request: request); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/uploads/{upload_id}/complete", global::System.UriKind.RelativeOrAbsolute)); + var __json = global::System.Text.Json.JsonSerializer.Serialize(request, global::OpenAI.SourceGenerationContext.Default.CompleteUploadRequest); + httpRequest.Content = new global::System.Net.Http.StringContent( + content: __json, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareCompleteUploadRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest, + request: request); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessCompleteUploadResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessCompleteUploadResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::OpenAI.SourceGenerationContext.Default.Upload) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + + /// + /// Completes the [Upload](/docs/api-reference/uploads/object) and returns a [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
+ /// You can specify the order of the Parts by passing in an ordered list of the Part IDs.
+ /// The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed. + ///
+ /// + /// The ordered list of Part IDs. + /// + /// + /// The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CompleteUploadAsync( + global::System.Collections.Generic.IList partIds, + string? md5 = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var request = new global::OpenAI.CompleteUploadRequest + { + PartIds = partIds, + Md5 = md5, + }; + + return await CompleteUploadAsync( + request: request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CreateUpload.g.cs b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CreateUpload.g.cs new file mode 100644 index 00000000..bb3dd19a --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.CreateUpload.g.cs @@ -0,0 +1,143 @@ + +#nullable enable + +namespace OpenAI +{ + public partial class UploadsClient + { + partial void PrepareCreateUploadArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenAI.CreateUploadRequest request); + partial void PrepareCreateUploadRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenAI.CreateUploadRequest request); + partial void ProcessCreateUploadResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateUploadResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 10 GB in total and expires after an hour after you create it.
+ /// Once you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.
+ /// For certain `purpose`s, the correct `mime_type` must be specified. Please refer to documentation for the supported MIME types for your use case:
+ /// - [Assistants](/docs/assistants/tools/file-search/supported-files)
+ /// For guidance on the proper filename extensions for each purpose, please follow the documentation on [creating a File](/docs/api-reference/files/create). + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateUploadAsync( + global::OpenAI.CreateUploadRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: _httpClient); + PrepareCreateUploadArguments( + httpClient: _httpClient, + request: request); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/uploads", global::System.UriKind.RelativeOrAbsolute)); + var __json = global::System.Text.Json.JsonSerializer.Serialize(request, global::OpenAI.SourceGenerationContext.Default.CreateUploadRequest); + httpRequest.Content = new global::System.Net.Http.StringContent( + content: __json, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareCreateUploadRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest, + request: request); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessCreateUploadResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessCreateUploadResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::OpenAI.SourceGenerationContext.Default.Upload) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + + /// + /// Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 10 GB in total and expires after an hour after you create it.
+ /// Once you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.
+ /// For certain `purpose`s, the correct `mime_type` must be specified. Please refer to documentation for the supported MIME types for your use case:
+ /// - [Assistants](/docs/assistants/tools/file-search/supported-files)
+ /// For guidance on the proper filename extensions for each purpose, please follow the documentation on [creating a File](/docs/api-reference/files/create). + ///
+ /// + /// The name of the file to upload. + /// + /// + /// The intended purpose of the uploaded file.
+ /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + /// + /// + /// The number of bytes in the file you are uploading. + /// + /// + /// The MIME type of the file.
+ /// This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateUploadAsync( + byte[] filename, + global::OpenAI.CreateUploadRequestPurpose purpose, + int bytes, + string mimeType, + global::System.Threading.CancellationToken cancellationToken = default) + { + var request = new global::OpenAI.CreateUploadRequest + { + Filename = filename, + Purpose = purpose, + Bytes = bytes, + MimeType = mimeType, + }; + + return await CreateUploadAsync( + request: request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.UploadsClient.g.cs b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.g.cs new file mode 100644 index 00000000..ec58e4aa --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.UploadsClient.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// Use Uploads to upload large files in multiple parts.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class UploadsClient : global::System.IDisposable + { + /// + /// + /// + public const string BaseUrl = "https://api.openai.com/v1"; + + private readonly global::System.Net.Http.HttpClient _httpClient; + + + /// + /// Creates a new instance of the UploadsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// + /// + public UploadsClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null + ) + { + _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + } + + /// + public void Dispose() + { + _httpClient.Dispose(); + } + + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/openapi.yaml b/src/libs/OpenAI/openapi.yaml index a31933c6..9977b5f0 100644 --- a/src/libs/OpenAI/openapi.yaml +++ b/src/libs/OpenAI/openapi.yaml @@ -475,6 +475,108 @@ paths: curl: "curl https://api.openai.com/v1/files/file-abc123/content \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" > file.jsonl\n" python: "from openai import OpenAI\nclient = OpenAI()\n\ncontent = client.files.content(\"file-abc123\")\n" node.js: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const file = await openai.files.content(\"file-abc123\");\n\n console.log(file);\n}\n\nmain();\n" + /uploads: + post: + tags: + - Uploads + summary: "Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 10 GB in total and expires after an hour after you create it.\n\nOnce you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.\n\nFor certain `purpose`s, the correct `mime_type` must be specified. Please refer to documentation for the supported MIME types for your use case:\n- [Assistants](/docs/assistants/tools/file-search/supported-files)\n\nFor guidance on the proper filename extensions for each purpose, please follow the documentation on [creating a File](/docs/api-reference/files/create).\n" + operationId: createUpload + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateUploadRequest' + required: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Upload' + x-oaiMeta: + name: Create upload + group: uploads + returns: 'The [Upload](/docs/api-reference/uploads/object) object with status `pending`.' + examples: + request: + curl: "curl https://api.openai.com/v1/uploads \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"purpose\": \"fine-tune\",\n \"filename\": \"training_examples.jsonl\",\n \"bytes\": 2147483648,\n \"mime_type\": \"text/jsonl\"\n }'\n" + response: "{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"pending\",\n \"expires_at\": 1719127296\n}\n" + '/uploads/{upload_id}/part': + post: + tags: + - Uploads + summary: "Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload. \n\nEach Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 10 GB.\n\nIt is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).\n" + operationId: addUploadPart + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/AddUploadPartRequest' + required: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UploadPart' + x-oaiMeta: + name: Add upload part + group: uploads + returns: 'The upload [Part](/docs/api-reference/uploads/part-object) object.' + examples: + request: + curl: "curl https://api.openai.com/v1/uploads/upload_abc123/parts\n -F data=\"aHR0cHM6Ly9hcGkub3BlbmFpLmNvbS92MS91cGxvYWRz...\"\n" + response: "{\n \"id\": \"part_def456\",\n \"object\": \"upload.part\",\n \"created_at\": 1719185911,\n \"upload_id\": \"upload_abc123\"\n}\n" + '/uploads/{upload_id}/complete': + post: + tags: + - Uploads + summary: "Completes the [Upload](/docs/api-reference/uploads/object) and returns a [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n\nYou can specify the order of the Parts by passing in an ordered list of the Part IDs.\n\nThe number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.\n" + operationId: completeUpload + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CompleteUploadRequest' + required: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Upload' + x-oaiMeta: + name: Complete upload + group: uploads + returns: 'The [Upload](/docs/api-reference/uploads/object) object with status `completed` with an additional `file` property containing the created usable File object.' + examples: + request: + curl: "curl https://api.openai.com/v1/uploads/upload_abc123/complete\n -d '{\n \"part_ids\": [\"part_def456\", \"part_ghi789\"]\n }'\n" + response: "{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"completed\",\n \"expires_at\": 1719127296,\n \"file\": {\n \"id\": \"file-xyz321\",\n \"object\": \"file\",\n \"bytes\": 2147483648,\n \"created_at\": 1719186911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n }\n}\n" + '/uploads/{upload_id}/cancel': + post: + tags: + - Uploads + summary: "Cancels the Upload. No Parts may be added after an Upload is cancelled.\n" + operationId: cancelUpload + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Upload' + x-oaiMeta: + name: Cancel upload + group: uploads + returns: 'The [Upload](/docs/api-reference/uploads/object) object with status `cancelled`.' + examples: + request: + curl: "curl https://api.openai.com/v1/uploads/upload_abc123/cancel\n" + response: "{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"cancelled\",\n \"expires_at\": 1719127296\n}\n" /fine_tuning/jobs: post: tags: @@ -4036,6 +4138,59 @@ components: type: string deleted: type: boolean + CreateUploadRequest: + required: + - filename + - purpose + - bytes + - mime_type + type: object + properties: + filename: + type: string + description: "The name of the file to upload.\n" + format: binary + purpose: + enum: + - assistants + - batch + - fine-tune + - vision + type: string + description: "The intended purpose of the uploaded file.\n\nSee the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose).\n" + bytes: + type: integer + description: "The number of bytes in the file you are uploading.\n" + mime_type: + type: string + description: "The MIME type of the file.\n\nThis must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.\n" + additionalProperties: false + AddUploadPartRequest: + required: + - data + type: object + properties: + data: + type: string + description: "The chunk of bytes for this Part.\n" + additionalProperties: false + CompleteUploadRequest: + required: + - part_ids + type: object + properties: + part_ids: + type: array + items: + type: string + description: "The ordered list of Part IDs.\n" + md5: + type: string + description: "The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.\n" + additionalProperties: false + CancelUploadRequest: + type: object + additionalProperties: false CreateFineTuningJobRequest: required: - model @@ -4648,6 +4803,85 @@ components: x-oaiMeta: name: The file object example: "{\n \"id\": \"file-abc123\",\n \"object\": \"file\",\n \"bytes\": 120000,\n \"created_at\": 1677610602,\n \"filename\": \"salesOverview.pdf\",\n \"purpose\": \"assistants\",\n}\n" + Upload: + title: Upload + required: + - bytes + - created_at + - expires_at + - filename + - id + - purpose + - status + - step_number + type: object + properties: + id: + type: string + description: 'The Upload unique identifier, which can be referenced in API endpoints.' + created_at: + type: integer + description: The Unix timestamp (in seconds) for when the Upload was created. + filename: + type: string + description: The name of the file to be uploaded. + bytes: + type: integer + description: The intended number of bytes to be uploaded. + purpose: + type: string + description: 'The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.' + status: + enum: + - pending + - completed + - cancelled + - expired + type: string + description: The status of the Upload. + expires_at: + type: integer + description: The Unix timestamp (in seconds) for when the Upload was created. + object: + enum: + - upload + type: string + description: 'The object type, which is always "upload".' + file: + type: object + description: The ready File object after the Upload is completed. + nullable: true + description: "The Upload object can accept byte chunks in the form of Parts.\n" + x-oaiMeta: + name: The upload object + example: "{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"completed\",\n \"expires_at\": 1719127296,\n \"file\": {\n \"id\": \"file-xyz321\",\n \"object\": \"file\",\n \"bytes\": 2147483648,\n \"created_at\": 1719186911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n }\n}\n" + UploadPart: + title: UploadPart + required: + - created_at + - id + - object + - upload_id + type: object + properties: + id: + type: string + description: 'The upload Part unique identifier, which can be referenced in API endpoints.' + created_at: + type: integer + description: The Unix timestamp (in seconds) for when the Part was created. + upload_id: + type: string + description: The ID of the Upload object that this Part was added to. + object: + enum: + - upload.part + type: string + description: 'The object type, which is always `upload.part`.' + description: "The upload Part represents a chunk of bytes we can add to an Upload object.\n" + x-oaiMeta: + name: The upload part object + example: "{\n \"id\": \"part_def456\",\n \"object\": \"upload.part\",\n \"created_at\": 1719186911,\n \"upload_id\": \"upload_abc123\"\n}\n" Embedding: required: - index @@ -8407,6 +8641,8 @@ tags: description: Create large batches of API requests to run asynchronously. - name: Files description: Files are used to upload documents that can be used with features like Assistants and Fine-tuning. + - name: Uploads + description: Use Uploads to upload large files in multiple parts. - name: Images description: 'Given a prompt and/or an input image, the model will generate a new image.' - name: Models @@ -8554,6 +8790,29 @@ x-oaiMeta: - type: object key: OpenAIFile path: object + - id: uploads + title: Uploads + description: "Allows you to upload large files in multiple parts.\n" + navigationGroup: endpoints + sections: + - type: endpoint + key: createUpload + path: create + - type: endpoint + key: addUploadPart + path: add-part + - type: endpoint + key: completeUpload + path: complete + - type: endpoint + key: cancelUpload + path: cancel + - type: object + key: Upload + path: object + - type: object + key: UploadPart + path: part-object - id: images title: Images description: "Given a prompt and/or an input image, the model will generate a new image.\n\nRelated guide: [Image generation](/docs/guides/images)\n"