diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Authorizations.Bearer.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Authorizations.Bearer.g.cs index 7ef0c35..c571987 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Authorizations.Bearer.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Authorizations.Bearer.g.cs @@ -5,10 +5,7 @@ namespace Cohere { public sealed partial class CohereApi { - /// - /// Authorize using bearer authentication. - /// - /// + /// public void AuthorizeUsingBearer( string apiKey) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs index 47a24d7..05188d7 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs @@ -58,6 +58,10 @@ partial void ProcessChatResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs index 289d41a..17e6c84 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs @@ -53,6 +53,10 @@ partial void ProcessChatv2ResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs index d127132..53cb51b 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs @@ -45,6 +45,10 @@ partial void ProcessCheckAPIKeyResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs index 31ee30d..5624c6f 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs @@ -53,6 +53,10 @@ partial void ProcessClassifyResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs index e851855..cdedbd2 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs @@ -52,6 +52,10 @@ partial void ProcessDetokenizeResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs index 4454b77..1be940b 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs @@ -54,6 +54,10 @@ partial void ProcessEmbedResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs index 0250b56..6dbe3ef 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs @@ -54,6 +54,10 @@ partial void ProcessEmbedv2ResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs index bdd4ab2..90e64ac 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs @@ -55,6 +55,10 @@ partial void ProcessGenerateResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs index 2db9937..88fc26f 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs @@ -52,6 +52,10 @@ partial void ProcessRerankResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs index 8e00ddb..513cb3d 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs @@ -52,6 +52,10 @@ partial void ProcessRerankv2ResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs index ca3de6e..c4b09d7 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs @@ -55,6 +55,10 @@ partial void ProcessSummarizeResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs index b123ca1..4aaee97 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs @@ -52,6 +52,10 @@ partial void ProcessTokenizeResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs index 92f7f21..525fbea 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs @@ -52,6 +52,10 @@ partial void ProcessCreateConnectorResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs index db505da..6545e7e 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs @@ -50,6 +50,10 @@ partial void ProcessDeleteConnectorResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs index ed149fa..8030414 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs @@ -50,6 +50,10 @@ partial void ProcessGetConnectorResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs index 186ae81..88a96d6 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs @@ -63,6 +63,10 @@ partial void ProcessListConnectorsResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs index c524102..7f8bee3 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs @@ -58,6 +58,10 @@ partial void ProcessOAuthAuthorizeConnectorResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs index b4d64ec..2545b6e 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs @@ -57,6 +57,10 @@ partial void ProcessUpdateConnectorResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs index 2b19633..e6a181b 100644 --- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs +++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs @@ -104,6 +104,10 @@ partial void ProcessCreateDatasetResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs index 86d76e4..07b9366 100644 --- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs +++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs @@ -50,6 +50,10 @@ partial void ProcessDeleteDatasetResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs index 92c06fc..a499081 100644 --- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs +++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs @@ -50,6 +50,10 @@ partial void ProcessGetDatasetResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs index 1d10e8e..6a5ba95 100644 --- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs +++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs @@ -45,6 +45,10 @@ partial void ProcessGetDatasetUsageResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs index 4f1de1a..94192f1 100644 --- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs +++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs @@ -85,6 +85,10 @@ partial void ProcessListDatasetsResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs index a532823..e0df9a7 100644 --- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs +++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs @@ -45,6 +45,10 @@ partial void ProcessCancelEmbedJobResponse( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs index 916f153..43adcd8 100644 --- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs +++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs @@ -52,6 +52,10 @@ partial void ProcessCreateEmbedJobResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs index e440041..98a8c37 100644 --- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs +++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs @@ -50,6 +50,10 @@ partial void ProcessGetEmbedJobResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs index f932362..56b90b7 100644 --- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs +++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs @@ -45,6 +45,10 @@ partial void ProcessListEmbedJobsResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs index 15c3b14..59334f1 100644 --- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs +++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs @@ -51,6 +51,10 @@ partial void ProcessCreateFinetunedModelResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs index cd111dd..0172974 100644 --- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs +++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs @@ -49,6 +49,10 @@ partial void ProcessDeleteFinetunedModelResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs index dad6f92..d610be5 100644 --- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs +++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs @@ -49,6 +49,10 @@ partial void ProcessGetFinetunedModelResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs index 9182a98..120820f 100644 --- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs +++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs @@ -69,6 +69,10 @@ partial void ProcessListEventsResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs index 19491e7..4349e63 100644 --- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs +++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs @@ -64,6 +64,10 @@ partial void ProcessListFinetunedModelsResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs index 766c5e3..878cec7 100644 --- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs +++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs @@ -63,6 +63,10 @@ partial void ProcessListTrainingStepMetricsResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs index 5d35b5c..a723311 100644 --- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs +++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs @@ -56,6 +56,10 @@ partial void ProcessUpdateFinetunedModelResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ICohereApi.Authorizations.Bearer.g.cs b/src/libs/Cohere/Generated/Cohere.ICohereApi.Authorizations.Bearer.g.cs new file mode 100644 index 0000000..eac701b --- /dev/null +++ b/src/libs/Cohere/Generated/Cohere.ICohereApi.Authorizations.Bearer.g.cs @@ -0,0 +1,15 @@ + +#nullable enable + +namespace Cohere +{ + public partial interface ICohereApi + { + /// + /// Authorize using bearer authentication. + /// + /// + public void AuthorizeUsingBearer( + string apiKey); + } +} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs b/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs index 431d699..3be09b8 100644 --- a/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs @@ -52,6 +52,10 @@ partial void ProcessGetModelResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) { diff --git a/src/libs/Cohere/Generated/Cohere.ModelsClient.ListModels.g.cs b/src/libs/Cohere/Generated/Cohere.ModelsClient.ListModels.g.cs index 90aadfe..1860698 100644 --- a/src/libs/Cohere/Generated/Cohere.ModelsClient.ListModels.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ModelsClient.ListModels.g.cs @@ -68,6 +68,10 @@ partial void ProcessListModelsResponseContent( using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif foreach (var __authorization in Authorizations) {