Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:@coderabbitai #56

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@
accepts: ref accepts,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}
if (accepts != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Accepts", accepts);

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'string'

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'System.Collections.Generic.IEnumerable<string>'

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'System.Collections.Generic.IEnumerable<string?>'

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'System.Collections.Generic.IEnumerable<string?>'

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'string'

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'System.Collections.Generic.IEnumerable<string>'

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'System.Collections.Generic.IEnumerable<string?>'

Check failure on line 60 in src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Argument 2: cannot convert from 'Cohere.ChatAccepts?' to 'System.Collections.Generic.IEnumerable<string?>'
}

var __pathBuilder = new PathBuilder(
path: "/v1/chat",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ partial void ProcessCheckAPIKeyResponseContent(
httpClient: _httpClient,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/check-api-key",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ partial void ProcessClassifyResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/classify",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ partial void ProcessDetokenizeResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/detokenize",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ partial void ProcessEmbedResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/embed",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ partial void ProcessEmbedv2ResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v2/embed",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ partial void ProcessGenerateResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/generate",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ partial void ProcessRerankResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/rerank",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ partial void ProcessRerankv2ResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v2/rerank",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ partial void ProcessSummarizeResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/summarize",
baseUri: _httpClient.BaseAddress);
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ partial void ProcessTokenizeResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/tokenize",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ partial void ProcessCreateConnectorResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/connectors",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ partial void ProcessDeleteConnectorResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/connectors/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ partial void ProcessGetConnectorResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/connectors/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ partial void ProcessListConnectorsResponseContent(
offset: ref offset,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/connectors",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ partial void ProcessOAuthAuthorizeConnectorResponseContent(
afterTokenRedirect: ref afterTokenRedirect,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/connectors/{id}/oauth/authorize",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ partial void ProcessUpdateConnectorResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/connectors/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ partial void ProcessCreateDatasetResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/datasets",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ partial void ProcessDeleteDatasetResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/datasets/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ partial void ProcessGetDatasetResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/datasets/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ partial void ProcessGetDatasetUsageResponseContent(
httpClient: _httpClient,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/datasets/usage",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ partial void ProcessListDatasetsResponseContent(
validationStatus: ref validationStatus,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/datasets",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ partial void ProcessCancelEmbedJobResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/embed-jobs/{id}/cancel",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ partial void ProcessCreateEmbedJobResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/embed-jobs",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ partial void ProcessGetEmbedJobResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/embed-jobs/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ partial void ProcessListEmbedJobsResponseContent(
httpClient: _httpClient,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/embed-jobs",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ partial void ProcessCreateFinetunedModelResponseContent(
xClientName: ref xClientName,
request: request);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/finetuning/finetuned-models",
baseUri: _httpClient.BaseAddress);
Expand Down Expand Up @@ -133,7 +138,7 @@ partial void ProcessCreateFinetunedModelResponseContent(
string name,
global::Cohere.Settings settings,
string? xClientName = default,
global::Cohere.Status? status = global::Cohere.Status.STATUSUNSPECIFIED,
global::Cohere.Status? status = global::Cohere.Status.UNSPECIFIED,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Cohere.FinetunedModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ partial void ProcessDeleteFinetunedModelResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/finetuning/finetuned-models/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ partial void ProcessGetFinetunedModelResponseContent(
id: ref id,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/finetuning/finetuned-models/{id}",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ partial void ProcessListEventsResponseContent(
orderBy: ref orderBy,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/finetuning/finetuned-models/{finetunedModelId}/events",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ partial void ProcessListFinetunedModelsResponseContent(
orderBy: ref orderBy,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: "/v1/finetuning/finetuned-models",
baseUri: _httpClient.BaseAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ partial void ProcessListTrainingStepMetricsResponseContent(
pageToken: ref pageToken,
xClientName: ref xClientName);

if (xClientName != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
}

var __pathBuilder = new PathBuilder(
path: $"/v1/finetuning/finetuned-models/{finetunedModelId}/training-step-metrics",
baseUri: _httpClient.BaseAddress);
Expand Down
Loading
Loading