Skip to content

Commit

Permalink
Merge pull request #27 from tryAGI/bot/update-openapi_202408291238
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 29, 2024
2 parents 65a7028 + 2746ffc commit 9a6bc4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ public HuggingFaceApi(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null) : this(httpClient, baseUri)
{
Authorizing(_httpClient, ref apiKey);

AuthorizeUsingBearer(apiKey);

Authorized(_httpClient);
}

partial void Authorizing(
global::System.Net.Http.HttpClient client,
ref string apiKey);
partial void Authorized(
global::System.Net.Http.HttpClient client);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public HuggingFaceApi(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down

0 comments on commit 9a6bc4f

Please sign in to comment.