From 1b976e09e5c599025aade4674367b93a068e3638 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 21 Jul 2025 18:38:00 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../AI21..JsonSerializerContext.g.cs | 1 - ...1.IJambaCompleteClient.V1ChatComplete.g.cs | 4 - ...21.JambaCompleteClient.V1ChatComplete.g.cs | 6 - .../AI21.JsonSerializerContextTypes.g.cs | 184 +++++++++--------- .../Generated/AI21.Models.ChatRequest.g.cs | 21 +- ...I21.Models.ChatRequestGuidedJson.Json.g.cs | 92 --------- .../AI21.Models.ChatRequestGuidedJson.g.cs | 18 -- src/libs/AI21/openapi.yaml | 8 - 8 files changed, 91 insertions(+), 243 deletions(-) delete mode 100644 src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.Json.g.cs delete mode 100644 src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.g.cs diff --git a/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs b/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs index c5521e8e..0adace50 100644 --- a/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs +++ b/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs @@ -72,7 +72,6 @@ namespace AI21 typeof(global::AI21.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), typeof(global::AI21.JsonConverters.AnyOfJsonConverter), typeof(global::AI21.JsonConverters.AnyOfJsonConverter>), - typeof(global::AI21.JsonConverters.AnyOfJsonConverter), typeof(global::AI21.JsonConverters.AnyOfJsonConverter, string>), typeof(global::AI21.JsonConverters.AnyOfJsonConverter), typeof(global::AI21.JsonConverters.AnyOfJsonConverter>), diff --git a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs index df0fdc20..764f1e55 100644 --- a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs +++ b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs @@ -81,8 +81,6 @@ public partial interface IJambaCompleteClient /// /// /// - /// - /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task>> V1ChatCompleteAsync( @@ -98,8 +96,6 @@ public partial interface IJambaCompleteClient global::AI21.MockResponseConfig? mockResponse = default, global::System.Collections.Generic.IList? documents = default, global::AI21.ResponseFormat? responseFormat = default, - global::AI21.AnyOf? guidedJson = default, - string? guidedDecodingBackend = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs index 59b7af68..068ad939 100644 --- a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs +++ b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs @@ -269,8 +269,6 @@ partial void ProcessV1ChatCompleteResponseContent( /// /// /// - /// - /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task>> V1ChatCompleteAsync( @@ -286,8 +284,6 @@ partial void ProcessV1ChatCompleteResponseContent( global::AI21.MockResponseConfig? mockResponse = default, global::System.Collections.Generic.IList? documents = default, global::AI21.ResponseFormat? responseFormat = default, - global::AI21.AnyOf? guidedJson = default, - string? guidedDecodingBackend = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::AI21.ChatRequest @@ -304,8 +300,6 @@ partial void ProcessV1ChatCompleteResponseContent( MockResponse = mockResponse, Documents = documents, ResponseFormat = responseFormat, - GuidedJson = guidedJson, - GuidedDecodingBackend = guidedDecodingBackend, }; return await V1ChatCompleteAsync( diff --git a/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs b/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs index d9f2ebfc..7e1c7b61 100644 --- a/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs @@ -346,366 +346,362 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AI21.AnyOf? Type80 { get; set; } + public global::AI21.CompareTextRequest? Type80 { get; set; } /// /// /// - public global::AI21.CompareTextRequest? Type81 { get; set; } + public global::AI21.ConnectorsDataSources? Type81 { get; set; } /// /// /// - public global::AI21.ConnectorsDataSources? Type82 { get; set; } + public global::System.Collections.Generic.IList? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::AI21.DataSourceMetadata? Type83 { get; set; } /// /// /// - public global::AI21.DataSourceMetadata? Type84 { get; set; } + public global::AI21.ConnectorsStatus? Type84 { get; set; } /// /// /// - public global::AI21.ConnectorsStatus? Type85 { get; set; } + public global::AI21.ConnectorsWorkflowStatus? Type85 { get; set; } /// /// /// - public global::AI21.ConnectorsWorkflowStatus? Type86 { get; set; } + public global::AI21.ConnectorsToken? Type86 { get; set; } /// /// /// - public global::AI21.ConnectorsToken? Type87 { get; set; } + public global::AI21.ConvRagExecuteRequest? Type87 { get; set; } /// /// /// - public global::AI21.ConvRagExecuteRequest? Type88 { get; set; } + public global::AI21.ConversationalRagConfig? Type88 { get; set; } /// /// /// - public global::AI21.ConversationalRagConfig? Type89 { get; set; } + public global::System.Collections.Generic.IList? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type90 { get; set; } + public global::AI21.Message? Type90 { get; set; } /// /// /// - public global::AI21.Message? Type91 { get; set; } + public global::AI21.MessageRole? Type91 { get; set; } /// /// /// - public global::AI21.MessageRole? Type92 { get; set; } + public global::AI21.ConversationalRagConfigRetrievalStrategy? Type92 { get; set; } /// /// /// - public global::AI21.ConversationalRagConfigRetrievalStrategy? Type93 { get; set; } + public global::AI21.ConversationalRagConfigResponseLanguage? Type93 { get; set; } /// /// /// - public global::AI21.ConversationalRagConfigResponseLanguage? Type94 { get; set; } + public global::AI21.ConversationalRagResult? Type94 { get; set; } /// /// /// - public global::AI21.ConversationalRagResult? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::AI21.ConversationalRagSource? Type96 { get; set; } /// /// /// - public global::AI21.ConversationalRagSource? Type97 { get; set; } + public global::AI21.CreateMaestroRunsPayload? Type97 { get; set; } /// /// /// - public global::AI21.CreateMaestroRunsPayload? Type98 { get; set; } + public global::AI21.AnyOf, string>? Type98 { get; set; } /// /// /// - public global::AI21.AnyOf, string>? Type99 { get; set; } + public global::System.Collections.Generic.IList>? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type100 { get; set; } + public global::System.Collections.Generic.Dictionary? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type101 { get; set; } + public global::AI21.CreateMaestroRunsPayloadTool2? Type101 { get; set; } /// /// /// - public global::AI21.CreateMaestroRunsPayloadTool2? Type102 { get; set; } + public global::AI21.ToolResources? Type102 { get; set; } /// /// /// - public global::AI21.ToolResources? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::AI21.Requirement? Type104 { get; set; } /// /// /// - public global::AI21.Requirement? Type105 { get; set; } + public global::AI21.CreateMaestroRunsPayloadBudget? Type105 { get; set; } /// /// /// - public global::AI21.CreateMaestroRunsPayloadBudget? Type106 { get; set; } + public global::AI21.MaestroPayloadType? Type106 { get; set; } /// /// /// - public global::AI21.MaestroPayloadType? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::AI21.CreatePlanPayload? Type108 { get; set; } /// /// /// - public global::AI21.CreatePlanPayload? Type109 { get; set; } + public global::AI21.CreateRoutePayload? Type109 { get; set; } /// /// /// - public global::AI21.CreateRoutePayload? Type110 { get; set; } + public global::AI21.CreateSecretPayload? Type110 { get; set; } /// /// /// - public global::AI21.CreateSecretPayload? Type111 { get; set; } + public global::AI21.DeleteAssistantResponse? Type111 { get; set; } /// /// /// - public global::AI21.DeleteAssistantResponse? Type112 { get; set; } + public global::AI21.Demo? Type112 { get; set; } /// /// /// - public global::AI21.Demo? Type113 { get; set; } + public global::AI21.DemoVisibility? Type113 { get; set; } /// /// /// - public global::AI21.DemoVisibility? Type114 { get; set; } + public global::AI21.DemoStatus? Type114 { get; set; } /// /// /// - public global::AI21.DemoStatus? Type115 { get; set; } + public global::AI21.DemoCreate? Type115 { get; set; } /// /// /// - public global::AI21.DemoCreate? Type116 { get; set; } + public global::AI21.DemoUpdate? Type116 { get; set; } /// /// /// - public global::AI21.DemoUpdate? Type117 { get; set; } + public global::AI21.DownloadModifiedDocumentRequest? Type117 { get; set; } /// /// /// - public global::AI21.DownloadModifiedDocumentRequest? Type118 { get; set; } + public global::AI21.FileResponse? Type118 { get; set; } /// /// /// - public global::AI21.FileResponse? Type119 { get; set; } + public global::AI21.FileStatus? Type119 { get; set; } /// /// /// - public global::AI21.FileStatus? Type120 { get; set; } + public global::AI21.FilesUpdateRequest? Type120 { get; set; } /// /// /// - public global::AI21.FilesUpdateRequest? Type121 { get; set; } + public global::AI21.HTTPValidationError? Type121 { get; set; } /// /// /// - public global::AI21.HTTPValidationError? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type123 { get; set; } + public global::AI21.ValidationError? Type123 { get; set; } /// /// /// - public global::AI21.ValidationError? Type124 { get; set; } + public global::System.Collections.Generic.IList>? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type125 { get; set; } + public global::AI21.AnyOf? Type125 { get; set; } /// /// /// - public global::AI21.AnyOf? Type126 { get; set; } + public global::AI21.IgnestionBatchStatusCount? Type126 { get; set; } /// /// /// - public global::AI21.IgnestionBatchStatusCount? Type127 { get; set; } + public global::AI21.IngestionBatchStatusResponse? Type127 { get; set; } /// /// /// - public global::AI21.IngestionBatchStatusResponse? Type128 { get; set; } + public global::System.Collections.Generic.IList? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::AI21.JambaExecuteRequest? Type129 { get; set; } /// /// /// - public global::AI21.JambaExecuteRequest? Type130 { get; set; } + public global::AI21.LibrarySearchRequest? Type130 { get; set; } /// /// /// - public global::AI21.LibrarySearchRequest? Type131 { get; set; } + public global::AI21.QueryFilter? Type131 { get; set; } /// /// /// - public global::AI21.QueryFilter? Type132 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type133 { get; set; } + public global::System.Collections.Generic.Dictionary? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type134 { get; set; } + public global::AI21.LibrarySearchRequestLabelsFilterMode? Type134 { get; set; } /// /// /// - public global::AI21.LibrarySearchRequestLabelsFilterMode? Type135 { get; set; } + public global::AI21.RetrievalStrategy? Type135 { get; set; } /// /// /// - public global::AI21.RetrievalStrategy? Type136 { get; set; } + public global::AI21.ListAssistantsResponse? Type136 { get; set; } /// /// /// - public global::AI21.ListAssistantsResponse? Type137 { get; set; } + public global::System.Collections.Generic.IList? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type138 { get; set; } + public global::AI21.ListPlansResponse? Type138 { get; set; } /// /// /// - public global::AI21.ListPlansResponse? Type139 { get; set; } + public global::System.Collections.Generic.IList? Type139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type140 { get; set; } + public global::AI21.Plan? Type140 { get; set; } /// /// /// - public global::AI21.Plan? Type141 { get; set; } + public global::AI21.ListRoutesResponse? Type141 { get; set; } /// /// /// - public global::AI21.ListRoutesResponse? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::AI21.MaestroRunResult? Type143 { get; set; } /// /// /// - public global::AI21.MaestroRunResult? Type144 { get; set; } + public global::AI21.MaestroRunResultStatus? Type144 { get; set; } /// /// /// - public global::AI21.MaestroRunResultStatus? Type145 { get; set; } + public global::AI21.MarkdownRequest? Type145 { get; set; } /// /// /// - public global::AI21.MarkdownRequest? Type146 { get; set; } + public global::AI21.RFIResponseSection? Type146 { get; set; } /// /// /// - public global::AI21.RFIResponseSection? Type147 { get; set; } + public global::AI21.RequirementItem? Type147 { get; set; } /// /// /// - public global::AI21.RequirementItem? Type148 { get; set; } + public global::AI21.RequirementsGenerationRequest? Type148 { get; set; } /// /// /// - public global::AI21.RequirementsGenerationRequest? Type149 { get; set; } + public global::AI21.RequirementsGenerationResponse? Type149 { get; set; } /// /// /// - public global::AI21.RequirementsGenerationResponse? Type150 { get; set; } + public global::System.Collections.Generic.IList? Type150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type151 { get; set; } + public global::AI21.SecretResponse? Type151 { get; set; } /// /// /// - public global::AI21.SecretResponse? Type152 { get; set; } + public global::AI21.ThreadNameGenerationRequest? Type152 { get; set; } /// /// /// - public global::AI21.ThreadNameGenerationRequest? Type153 { get; set; } + public global::AI21.ThreadNameGenerationResponse? Type153 { get; set; } /// /// /// - public global::AI21.ThreadNameGenerationResponse? Type154 { get; set; } + public global::AI21.UpdateRoutePayload? Type154 { get; set; } /// /// /// - public global::AI21.UpdateRoutePayload? Type155 { get; set; } + public global::AI21.UpdateSecretPayload? Type155 { get; set; } /// /// /// - public global::AI21.UpdateSecretPayload? Type156 { get; set; } + public global::AI21.ValidationResult? Type156 { get; set; } /// /// /// - public global::AI21.ValidationResult? Type157 { get; set; } + public global::AI21.WebsiteConnectorCreateConfigPayload? Type157 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorCreateConfigPayload? Type158 { get; set; } + public global::AI21.WebsiteConnectorIngestUrlPayload? Type158 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorIngestUrlPayload? Type159 { get; set; } + public global::AI21.WebsiteConnectorIngestWebsitePayload? Type159 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorIngestWebsitePayload? Type160 { get; set; } + public global::AI21.WebsiteConnectorRetryIngestWebsitePayload? Type160 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorRetryIngestWebsitePayload? Type161 { get; set; } + public global::AI21.WorkspaceModelResponse? Type161 { get; set; } /// /// /// - public global::AI21.WorkspaceModelResponse? Type162 { get; set; } + public global::AI21.WorkspaceModelUpdate? Type162 { get; set; } /// /// /// - public global::AI21.WorkspaceModelUpdate? Type163 { get; set; } + public global::AI21.WorkspaceModelsResponse? Type163 { get; set; } /// /// /// - public global::AI21.WorkspaceModelsResponse? Type164 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type165 { get; set; } + public global::AI21.AnyOf>? Type165 { get; set; } /// /// /// - public global::AI21.AnyOf>? Type166 { get; set; } + public global::System.Collections.Generic.IList? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::System.Collections.Generic.IList? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::System.Collections.Generic.IList? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs index b6d72ff9..5f3bd5c5 100644 --- a/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs @@ -112,19 +112,6 @@ public sealed partial class ChatRequest [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] public global::AI21.ResponseFormat? ResponseFormat { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("guided_json")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AnyOfJsonConverter))] - public global::AI21.AnyOf? GuidedJson { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("guided_decoding_backend")] - public string? GuidedDecodingBackend { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -188,8 +175,6 @@ public sealed partial class ChatRequest /// /// /// - /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -205,9 +190,7 @@ public ChatRequest( bool? stream, global::AI21.MockResponseConfig? mockResponse, global::System.Collections.Generic.IList? documents, - global::AI21.ResponseFormat? responseFormat, - global::AI21.AnyOf? guidedJson, - string? guidedDecodingBackend) + global::AI21.ResponseFormat? responseFormat) { this.Model = model; this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); @@ -221,8 +204,6 @@ public ChatRequest( this.MockResponse = mockResponse; this.Documents = documents; this.ResponseFormat = responseFormat; - this.GuidedJson = guidedJson; - this.GuidedDecodingBackend = guidedDecodingBackend; } /// diff --git a/src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.Json.g.cs deleted file mode 100644 index 5accba40..00000000 --- a/src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace AI21 -{ - public sealed partial class ChatRequestGuidedJson - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::AI21.ChatRequestGuidedJson? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::AI21.ChatRequestGuidedJson), - jsonSerializerContext) as global::AI21.ChatRequestGuidedJson; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::AI21.ChatRequestGuidedJson? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::AI21.ChatRequestGuidedJson), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ChatRequestGuidedJson; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.g.cs b/src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.g.cs deleted file mode 100644 index 0bef720a..00000000 --- a/src/libs/AI21/Generated/AI21.Models.ChatRequestGuidedJson.g.cs +++ /dev/null @@ -1,18 +0,0 @@ - -#nullable enable - -namespace AI21 -{ - /// - /// - /// - public sealed partial class ChatRequestGuidedJson - { - - /// - /// 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/AI21/openapi.yaml b/src/libs/AI21/openapi.yaml index 94cffdc4..b61a51db 100644 --- a/src/libs/AI21/openapi.yaml +++ b/src/libs/AI21/openapi.yaml @@ -2050,14 +2050,6 @@ components: - $ref: '#/components/schemas/ResponseFormat' default: type: text - guided_json: - title: Guided Json - anyOf: - - type: string - - type: object - guided_decoding_backend: - title: Guided Decoding Backend - type: string ChatStreamingContentDelta: title: ChatStreamingContentDelta required: