Skip to content

Commit

Permalink
Merge pull request #90 from tryAGI/bot/update-openapi_202411271814
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Nov 27, 2024
2 parents 5daf716 + f04d2ef commit 9ec8118
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ namespace Anthropic
{
public sealed partial class AnthropicClient
{
/// <summary>
/// Authorize using ApiKey authentication.
/// </summary>
/// <param name="apiKey"></param>
/// <inheritdoc/>
public void AuthorizeUsingApiKeyInHeader(
string apiKey)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

#nullable enable

namespace Anthropic
{
public partial interface IAnthropicClient
{
/// <summary>
/// Authorize using ApiKey authentication.
/// </summary>
/// <param name="apiKey"></param>
public void AuthorizeUsingApiKeyInHeader(
string apiKey);
}
}

0 comments on commit 9ec8118

Please sign in to comment.