Skip to content

Commit

Permalink
Merge pull request #26 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 155ab92 + 1d50037 commit a7e88ba
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libs/AI21/Generated/AI21.Ai21Api.Constructors.Bearer.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ public Ai21Api(
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/AI21/Generated/AI21.Ai21Api.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public Ai21Api(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -100,6 +102,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/AI21/Generated/AI21.ChatClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public ChatClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.CompletionClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public CompletionClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.CustomModelsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public CustomModelsClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.DatasetsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public DatasetsClient(
{
_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
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public GrammaticalErrorCorrectionsClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.JambaCompleteClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public JambaCompleteClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.LibraryManagementClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public LibraryManagementClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.ParaphraseClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public ParaphraseClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public RAGEngineClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.SegmentationClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public SegmentationClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.SummarizeClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public SummarizeClient(
{
_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
4 changes: 4 additions & 0 deletions src/libs/AI21/Generated/AI21.TokenizeClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public TokenizeClient(
{
_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 a7e88ba

Please sign in to comment.