From 587ce510dde68bc703d244310ae0606de9753d88 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 29 Aug 2024 01:20:53 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs | 2 +- src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs | 2 +- src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs | 2 +- .../Cohere/Generated/Cohere.Models.AssistantMessage.g.cs | 2 +- .../Cohere/Generated/Cohere.Models.RerankRequest.g.cs | 2 +- .../Cohere/Generated/Cohere.Models.SystemMessage.g.cs | 2 +- src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs | 2 +- src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs | 8 ++++---- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs index b4f1abc..c7606ad 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs @@ -98,7 +98,7 @@ partial void ProcessChatResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponseStreamedChatResponse) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponseNullableStreamedChatResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs index 5bf8e7f..8fe3188 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs @@ -91,7 +91,7 @@ partial void ProcessChatv2ResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponse2StreamedChatResponse2) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponse2NullableStreamedChatResponse2) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs index 8b6bd30..43c7bbc 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs @@ -137,7 +137,7 @@ partial void ProcessRerankResponseContent( /// public async global::System.Threading.Tasks.Task RerankAsync( string query, - global::System.Collections.Generic.IList> documents, + global::System.Collections.Generic.IList> documents, string? xClientName = default, string? model = default, int topN = default, diff --git a/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs index 68c9796..7a3c6ae 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs @@ -34,7 +34,7 @@ public sealed partial class AssistantMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf>>? Content { get; set; } + public global::System.OneOf>>? Content { get; set; } /// /// diff --git a/src/libs/Cohere/Generated/Cohere.Models.RerankRequest.g.cs b/src/libs/Cohere/Generated/Cohere.Models.RerankRequest.g.cs index 3fd66fb..0d3f9a4 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.RerankRequest.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.RerankRequest.g.cs @@ -31,7 +31,7 @@ public sealed partial class RerankRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("documents")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Documents { get; set; } + public required global::System.Collections.Generic.IList> Documents { get; set; } /// /// The number of most relevant documents or indices to return, defaults to the length of the documents diff --git a/src/libs/Cohere/Generated/Cohere.Models.SystemMessage.g.cs b/src/libs/Cohere/Generated/Cohere.Models.SystemMessage.g.cs index 9f3871b..31fd968 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.SystemMessage.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.SystemMessage.g.cs @@ -23,7 +23,7 @@ public sealed partial class SystemMessage [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf>> Content { get; set; } + public required global::System.OneOf>> Content { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs b/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs index 026200c..0edc19c 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs @@ -24,7 +24,7 @@ public sealed partial class UserMessage [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf> Content { get; set; } + public required global::System.OneOf> Content { get; set; } /// /// Documents seen by the model when generating the reply. diff --git a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs index 8371f8a..ab8fab6 100644 --- a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs @@ -281,7 +281,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf>? Type67 { get; set; } + public global::System.OneOf>? Type67 { get; set; } /// /// /// @@ -341,7 +341,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf>>? Type82 { get; set; } + public global::System.OneOf>>? Type82 { get; set; } /// /// /// @@ -1157,11 +1157,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type286 { get; set; } + public global::System.Collections.Generic.IList>? Type286 { get; set; } /// /// /// - public global::System.OneOf? Type287 { get; set; } + public global::System.OneOf? Type287 { get; set; } /// /// ///