Skip to content

Commit

Permalink
Merge pull request #27 from tryAGI/bot/update-openapi_202408291234
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 29, 2024
2 parents 6399e0c + 86bf7d4 commit c094559
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ public CohereApi(
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);
}
}
4 changes: 4 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public CohereApi(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -67,6 +69,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
4 changes: 4 additions & 0 deletions src/libs/Cohere/Generated/Cohere.ConnectorsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public ConnectorsClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/Cohere/Generated/Cohere.DatasetsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public DatasetsClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/Cohere/Generated/Cohere.EmbedJobsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public EmbedJobsClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/Cohere/Generated/Cohere.FinetuningClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public FinetuningClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/Cohere/Generated/Cohere.ModelsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public ModelsClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -39,6 +41,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 c094559

Please sign in to comment.