From f04d2eff0610b27b46d9dd4ab70f375dc80ff22d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 27 Nov 2024 18:14:32 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ropicClient.Authorizations.ApiKeyInHeader.g.cs | 5 +---- .../Anthropic.AnthropicClient.CreateMessage.g.cs | 4 ++++ ...hropic.AnthropicClient.CreateMessageBatch.g.cs | 4 ++++ ...opic.AnthropicClient.RetrieveMessageBatch.g.cs | 4 ++++ ...ropicClient.Authorizations.ApiKeyInHeader.g.cs | 15 +++++++++++++++ 5 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.Authorizations.ApiKeyInHeader.g.cs diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.Authorizations.ApiKeyInHeader.g.cs index 1a6e8cc..566c7ec 100644 --- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.Authorizations.ApiKeyInHeader.g.cs +++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.Authorizations.ApiKeyInHeader.g.cs @@ -5,10 +5,7 @@ namespace Anthropic { public sealed partial class AnthropicClient { - /// - /// Authorize using ApiKey authentication. - /// - /// + /// public void AuthorizeUsingApiKeyInHeader( string apiKey) { diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessage.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessage.g.cs index 50d04c2..0f95fc9 100644 --- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessage.g.cs +++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessage.g.cs @@ -50,6 +50,10 @@ partial void ProcessCreateMessageResponseContent( 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/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessageBatch.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessageBatch.g.cs index ea2b510..4235691 100644 --- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessageBatch.g.cs +++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.CreateMessageBatch.g.cs @@ -47,6 +47,10 @@ partial void ProcessCreateMessageBatchResponseContent( 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/Anthropic/Generated/Anthropic.AnthropicClient.RetrieveMessageBatch.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.RetrieveMessageBatch.g.cs index 655b11f..7dece9d 100644 --- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.RetrieveMessageBatch.g.cs +++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.RetrieveMessageBatch.g.cs @@ -47,6 +47,10 @@ partial void ProcessRetrieveMessageBatchResponseContent( 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/Anthropic/Generated/Anthropic.IAnthropicClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.Authorizations.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..2f9872f --- /dev/null +++ b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.Authorizations.ApiKeyInHeader.g.cs @@ -0,0 +1,15 @@ + +#nullable enable + +namespace Anthropic +{ + public partial interface IAnthropicClient + { + /// + /// Authorize using ApiKey authentication. + /// + /// + public void AuthorizeUsingApiKeyInHeader( + string apiKey); + } +} \ No newline at end of file