diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Authorizations.ApiKeyInHeader.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Authorizations.ApiKeyInHeader.g.cs
index 8192fb9..670e483 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Authorizations.ApiKeyInHeader.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Authorizations.ApiKeyInHeader.g.cs
@@ -14,11 +14,14 @@ public void AuthorizeUsingApiKeyInHeader(
{
apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
- _authorization = new global::Anthropic.EndPointAuthorization
+ _authorizations.Clear();
+ _authorizations.Add(new global::Anthropic.EndPointAuthorization
{
+ Type = "ApiKey",
+ Location = "Header",
Name = "x-api-key",
Value = apiKey,
- };
+ });
}
}
}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Constructors..g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Constructors..g.cs
index 11c1346..1441385 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Constructors..g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.Constructors..g.cs
@@ -5,12 +5,12 @@ namespace Anthropic
{
public sealed partial class AnthropicApi
{
- ///
+ ///
public AnthropicApi(
string apiKey,
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
- global::Anthropic.EndPointAuthorization? authorization = null) : this(httpClient, baseUri, authorization)
+ global::System.Collections.Generic.List? authorizations = null) : this(httpClient, baseUri, authorizations)
{
Authorizing(_httpClient, ref apiKey);
diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.CreateMessage.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.CreateMessage.g.cs
index 8bb6bf8..9880374 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.CreateMessage.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.CreateMessage.g.cs
@@ -51,12 +51,21 @@ partial void ProcessCreateMessageResponseContent(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
- if (_authorization != null)
- {{
- httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: _authorization.Name,
- parameter: _authorization.Value);
- }}
+ foreach (var _authorization in _authorizations)
+ {
+ if (_authorization.Type == "Http" ||
+ _authorization.Type == "OAuth2")
+ {
+ httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: _authorization.Name,
+ parameter: _authorization.Value);
+ }
+ else if (_authorization.Type == "ApiKey" &&
+ _authorization.Location == "Header")
+ {
+ httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
+ }
+ }
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.g.cs
index be8297e..216eed0 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicApi.g.cs
@@ -16,7 +16,7 @@ public sealed partial class AnthropicApi : global::Anthropic.IAnthropicApi, glob
public const string BaseUrl = "https://api.anthropic.com/v1";
private readonly global::System.Net.Http.HttpClient _httpClient;
- private global::Anthropic.EndPointAuthorization? _authorization;
+ private global::System.Collections.Generic.List _authorizations;
///
///
@@ -31,15 +31,15 @@ public sealed partial class AnthropicApi : global::Anthropic.IAnthropicApi, glob
///
///
///
- ///
+ ///
public AnthropicApi(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
- global::Anthropic.EndPointAuthorization? authorization = null)
+ global::System.Collections.Generic.List? authorizations = null)
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);
- _authorization = authorization;
+ _authorizations = authorizations ?? new global::System.Collections.Generic.List();
Initialized(_httpClient);
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.PathBuilder.g.cs b/src/libs/Anthropic/Generated/Anthropic.PathBuilder.g.cs
index a3990a7..6ad2690 100644
--- a/src/libs/Anthropic/Generated/Anthropic.PathBuilder.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.PathBuilder.g.cs
@@ -230,6 +230,16 @@ public PathBuilder AddOptionalParameter(
///
public class EndPointAuthorization
{
+ ///
+ ///
+ ///
+ public string Type { get; set; } = string.Empty;
+
+ ///
+ ///
+ ///
+ public string Location { get; set; } = string.Empty;
+
///
///
///
diff --git a/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs
index f4c400e..ec629a8 100644
--- a/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs
@@ -10,6 +10,11 @@ namespace Anthropic
///
public sealed partial class JsonSerializerContextTypes
{
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; }
+
///
///
///