diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs
index 498bb41..9932f81 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs
@@ -51,6 +51,15 @@ partial void ProcessChatResponseContent(
accepts: ref accepts,
request: request);
+ if (xClientName != default)
+ {
+ _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
+ }
+ if (accepts != default)
+ {
+ _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Accepts", accepts);
+ }
+
var __pathBuilder = new PathBuilder(
path: "/v1/chat",
baseUri: _httpClient.BaseAddress);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs
index 42161f2..c4b8bd8 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs
index 8c3663f..83b6d5a 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs
index e7eb27b..9eeedbd 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs
index 5c76788..62899d7 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs
index 87123ed..2c8bbc8 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs
index 94ac229..b83a68a 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs
index 75912a1..cdf6d01 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs
index 1305cc3..e2307fc 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs
index f990be1..8bf1830 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs
index efdbc94..81e1595 100644
--- a/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs
index 14ebd2e..036badd 100644
--- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs
index 59aca4b..eb26769 100644
--- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs
index 145add5..e653a1d 100644
--- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs
index be9ea9b..84417c0 100644
--- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs
index f6c6e5d..ecaf7c6 100644
--- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs
index 9f82bce..89c1aff 100644
--- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs
index d223f3b..f6e2851 100644
--- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.CreateDataset.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs
index cd65411..9b47004 100644
--- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.DeleteDataset.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs
index 0c3909e..04ca462 100644
--- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDataset.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs
index 4e20b7e..cb79665 100644
--- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.GetDatasetUsage.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs b/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs
index bff78e4..96cff32 100644
--- a/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.DatasetsClient.ListDatasets.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs
index 1e35d19..2aa913b 100644
--- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CancelEmbedJob.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs
index 0bf7802..d85399e 100644
--- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.CreateEmbedJob.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs
index daacfd1..d212538 100644
--- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.GetEmbedJob.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs
index 1f6fb98..b11b3b6 100644
--- a/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.EmbedJobsClient.ListEmbedJobs.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs
index 27d5dd5..f218302 100644
--- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.CreateFinetunedModel.g.cs
@@ -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);
@@ -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
diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs
index fc5fb64..046484c 100644
--- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.DeleteFinetunedModel.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs
index 6c65b4b..52dda1f 100644
--- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.GetFinetunedModel.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs
index 7718bb5..3e05999 100644
--- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListEvents.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs
index 5fa5f92..27c0e2a 100644
--- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListFinetunedModels.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs
index d1de740..e5b5cfa 100644
--- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.ListTrainingStepMetrics.g.cs
@@ -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);
diff --git a/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs
index 8db8198..bb6f912 100644
--- a/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.FinetuningClient.UpdateFinetunedModel.g.cs
@@ -49,6 +49,11 @@ partial void ProcessUpdateFinetunedModelResponseContent(
xClientName: ref xClientName,
request: request);
+ if (xClientName != default)
+ {
+ _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
+ }
+
var __pathBuilder = new PathBuilder(
path: $"/v1/finetuning/finetuned-models/{id}",
baseUri: _httpClient.BaseAddress);
@@ -141,7 +146,7 @@ partial void ProcessUpdateFinetunedModelResponseContent(
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.UpdateFinetunedModelRequest
diff --git a/src/libs/Cohere/Generated/Cohere.IFinetuningClient.CreateFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.IFinetuningClient.CreateFinetunedModel.g.cs
index 191e968..c4c1841 100644
--- a/src/libs/Cohere/Generated/Cohere.IFinetuningClient.CreateFinetunedModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.IFinetuningClient.CreateFinetunedModel.g.cs
@@ -45,7 +45,7 @@ public partial interface IFinetuningClient
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);
}
}
\ No newline at end of file
diff --git a/src/libs/Cohere/Generated/Cohere.IFinetuningClient.UpdateFinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.IFinetuningClient.UpdateFinetunedModel.g.cs
index 854ebe4..a2021eb 100644
--- a/src/libs/Cohere/Generated/Cohere.IFinetuningClient.UpdateFinetunedModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.IFinetuningClient.UpdateFinetunedModel.g.cs
@@ -49,7 +49,7 @@ public partial interface IFinetuningClient
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);
}
}
\ No newline at end of file
diff --git a/src/libs/Cohere/Generated/Cohere.Models.BaseModel.g.cs b/src/libs/Cohere/Generated/Cohere.Models.BaseModel.g.cs
index f99019f..f2f0b9f 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.BaseModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.BaseModel.g.cs
@@ -44,7 +44,7 @@ public sealed partial class BaseModel
///
[global::System.Text.Json.Serialization.JsonPropertyName("strategy")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Cohere.JsonConverters.StrategyJsonConverter))]
- public global::Cohere.Strategy? Strategy { get; set; } = global::Cohere.Strategy.STRATEGYUNSPECIFIED;
+ public global::Cohere.Strategy? Strategy { get; set; } = global::Cohere.Strategy.UNSPECIFIED;
///
/// Additional properties that are not explicitly defined in the schema
diff --git a/src/libs/Cohere/Generated/Cohere.Models.BaseType.g.cs b/src/libs/Cohere/Generated/Cohere.Models.BaseType.g.cs
index e5a160a..fd700bb 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.BaseType.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.BaseType.g.cs
@@ -15,25 +15,25 @@ namespace Cohere
public enum BaseType
{
///
- ///
+ /// Unspecified model.
///
- BASETYPEUNSPECIFIED,
+ UNSPECIFIED,
///
- ///
+ /// Deprecated: Generative model.
///
- BASETYPEGENERATIVE,
+ GENERATIVE,
///
- ///
+ /// Classification model.
///
- BASETYPECLASSIFICATION,
+ CLASSIFICATION,
///
- ///
+ /// Rerank model.
///
- BASETYPERERANK,
+ RERANK,
///
- ///
+ /// Chat model.
///
- BASETYPECHAT,
+ CHAT,
}
///
@@ -48,11 +48,11 @@ public static string ToValueString(this BaseType value)
{
return value switch
{
- BaseType.BASETYPEUNSPECIFIED => "BASE_TYPE_UNSPECIFIED",
- BaseType.BASETYPEGENERATIVE => "BASE_TYPE_GENERATIVE",
- BaseType.BASETYPECLASSIFICATION => "BASE_TYPE_CLASSIFICATION",
- BaseType.BASETYPERERANK => "BASE_TYPE_RERANK",
- BaseType.BASETYPECHAT => "BASE_TYPE_CHAT",
+ BaseType.UNSPECIFIED => "BASE_TYPE_UNSPECIFIED",
+ BaseType.GENERATIVE => "BASE_TYPE_GENERATIVE",
+ BaseType.CLASSIFICATION => "BASE_TYPE_CLASSIFICATION",
+ BaseType.RERANK => "BASE_TYPE_RERANK",
+ BaseType.CHAT => "BASE_TYPE_CHAT",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -63,11 +63,11 @@ public static string ToValueString(this BaseType value)
{
return value switch
{
- "BASE_TYPE_UNSPECIFIED" => BaseType.BASETYPEUNSPECIFIED,
- "BASE_TYPE_GENERATIVE" => BaseType.BASETYPEGENERATIVE,
- "BASE_TYPE_CLASSIFICATION" => BaseType.BASETYPECLASSIFICATION,
- "BASE_TYPE_RERANK" => BaseType.BASETYPERERANK,
- "BASE_TYPE_CHAT" => BaseType.BASETYPECHAT,
+ "BASE_TYPE_UNSPECIFIED" => BaseType.UNSPECIFIED,
+ "BASE_TYPE_GENERATIVE" => BaseType.GENERATIVE,
+ "BASE_TYPE_CLASSIFICATION" => BaseType.CLASSIFICATION,
+ "BASE_TYPE_RERANK" => BaseType.RERANK,
+ "BASE_TYPE_CHAT" => BaseType.CHAT,
_ => null,
};
}
diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatRequestPromptTruncation.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatRequestPromptTruncation.g.cs
index de16fb7..ccc64a3 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.ChatRequestPromptTruncation.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.ChatRequestPromptTruncation.g.cs
@@ -20,11 +20,11 @@ public enum ChatRequestPromptTruncation
///
OFF,
///
- ///
+ /// Cohere Platform Only
///
AUTO,
///
- ///
+ /// Azure, AWS Sagemaker/Bedrock, Private Deployments
///
AUTOPRESERVEORDER,
}
diff --git a/src/libs/Cohere/Generated/Cohere.Models.EmbedInputType.g.cs b/src/libs/Cohere/Generated/Cohere.Models.EmbedInputType.g.cs
index b025b53..27bd79a 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.EmbedInputType.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.EmbedInputType.g.cs
@@ -14,23 +14,23 @@ namespace Cohere
public enum EmbedInputType
{
///
- ///
+ /// Used for embeddings stored in a vector database for search use-cases.
///
SearchDocument,
///
- ///
+ /// Used for embeddings of search queries run against a vector DB to find relevant documents.
///
SearchQuery,
///
- ///
+ /// Used for embeddings passed through a text classifier.
///
Classification,
///
- ///
+ /// Used for the embeddings run through a clustering algorithm.
///
Clustering,
///
- ///
+ /// Used for embeddings with image input.
///
Image,
}
diff --git a/src/libs/Cohere/Generated/Cohere.Models.Event.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Event.g.cs
index 8b07202..79a55d6 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.Event.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.Event.g.cs
@@ -29,7 +29,7 @@ public sealed partial class Event
///
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Cohere.JsonConverters.StatusJsonConverter))]
- public global::Cohere.Status? Status { get; set; } = global::Cohere.Status.STATUSUNSPECIFIED;
+ public global::Cohere.Status? Status { get; set; } = global::Cohere.Status.UNSPECIFIED;
///
/// Timestamp when the event happened.
diff --git a/src/libs/Cohere/Generated/Cohere.Models.FinetunedModel.g.cs b/src/libs/Cohere/Generated/Cohere.Models.FinetunedModel.g.cs
index f46bcde..08141d5 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.FinetunedModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.FinetunedModel.g.cs
@@ -58,7 +58,7 @@ public sealed partial class FinetunedModel
///
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Cohere.JsonConverters.StatusJsonConverter))]
- public global::Cohere.Status? Status { get; set; } = global::Cohere.Status.STATUSUNSPECIFIED;
+ public global::Cohere.Status? Status { get; set; } = global::Cohere.Status.UNSPECIFIED;
///
/// read-only. Creation timestamp.
diff --git a/src/libs/Cohere/Generated/Cohere.Models.Hyperparameters.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Hyperparameters.g.cs
index 0a6eaa8..c404397 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.Hyperparameters.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.Hyperparameters.g.cs
@@ -64,7 +64,7 @@ public sealed partial class Hyperparameters
///
[global::System.Text.Json.Serialization.JsonPropertyName("lora_target_modules")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Cohere.JsonConverters.LoraTargetModulesJsonConverter))]
- public global::Cohere.LoraTargetModules? LoraTargetModules { get; set; } = global::Cohere.LoraTargetModules.LORATARGETMODULESUNSPECIFIED;
+ public global::Cohere.LoraTargetModules? LoraTargetModules { get; set; } = global::Cohere.LoraTargetModules.UNSPECIFIED;
///
/// Additional properties that are not explicitly defined in the schema
diff --git a/src/libs/Cohere/Generated/Cohere.Models.LoraTargetModules.g.cs b/src/libs/Cohere/Generated/Cohere.Models.LoraTargetModules.g.cs
index a14f7a4..3451a93 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.LoraTargetModules.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.LoraTargetModules.g.cs
@@ -14,21 +14,21 @@ namespace Cohere
public enum LoraTargetModules
{
///
- ///
+ /// Unspecified LoRA target modules.
///
- LORATARGETMODULESUNSPECIFIED,
+ UNSPECIFIED,
///
- ///
+ /// LoRA adapts the query and value matrices in transformer attention layers.
///
- LORATARGETMODULESQV,
+ QV,
///
- ///
+ /// LoRA adapts query, key, value, and output matrices in attention layers.
///
- LORATARGETMODULESQKVO,
+ QKVO,
///
- ///
+ /// LoRA adapts attention projection matrices and feed-forward networks (FFN).
///
- LORATARGETMODULESQKVOFFN,
+ QKVOFFN,
}
///
@@ -43,10 +43,10 @@ public static string ToValueString(this LoraTargetModules value)
{
return value switch
{
- LoraTargetModules.LORATARGETMODULESUNSPECIFIED => "LORA_TARGET_MODULES_UNSPECIFIED",
- LoraTargetModules.LORATARGETMODULESQV => "LORA_TARGET_MODULES_QV",
- LoraTargetModules.LORATARGETMODULESQKVO => "LORA_TARGET_MODULES_QKVO",
- LoraTargetModules.LORATARGETMODULESQKVOFFN => "LORA_TARGET_MODULES_QKVO_FFN",
+ LoraTargetModules.UNSPECIFIED => "LORA_TARGET_MODULES_UNSPECIFIED",
+ LoraTargetModules.QV => "LORA_TARGET_MODULES_QV",
+ LoraTargetModules.QKVO => "LORA_TARGET_MODULES_QKVO",
+ LoraTargetModules.QKVOFFN => "LORA_TARGET_MODULES_QKVO_FFN",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -57,10 +57,10 @@ public static string ToValueString(this LoraTargetModules value)
{
return value switch
{
- "LORA_TARGET_MODULES_UNSPECIFIED" => LoraTargetModules.LORATARGETMODULESUNSPECIFIED,
- "LORA_TARGET_MODULES_QV" => LoraTargetModules.LORATARGETMODULESQV,
- "LORA_TARGET_MODULES_QKVO" => LoraTargetModules.LORATARGETMODULESQKVO,
- "LORA_TARGET_MODULES_QKVO_FFN" => LoraTargetModules.LORATARGETMODULESQKVOFFN,
+ "LORA_TARGET_MODULES_UNSPECIFIED" => LoraTargetModules.UNSPECIFIED,
+ "LORA_TARGET_MODULES_QV" => LoraTargetModules.QV,
+ "LORA_TARGET_MODULES_QKVO" => LoraTargetModules.QKVO,
+ "LORA_TARGET_MODULES_QKVO_FFN" => LoraTargetModules.QKVOFFN,
_ => null,
};
}
diff --git a/src/libs/Cohere/Generated/Cohere.Models.Status.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Status.g.cs
index 8aaa9c5..92ea4fc 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.Status.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.Status.g.cs
@@ -19,41 +19,41 @@ namespace Cohere
public enum Status
{
///
- ///
+ /// Unspecified status.
///
- STATUSUNSPECIFIED,
+ UNSPECIFIED,
///
- ///
+ /// The fine-tuned model is being fine-tuned.
///
- STATUSFINETUNING,
+ FINETUNING,
///
- ///
+ /// The fine-tuned model is being deployed.
///
- STATUSDEPLOYINGAPI,
+ DEPLOYINGAPI,
///
- ///
+ /// The fine-tuned model is ready to receive requests.
///
- STATUSREADY,
+ READY,
///
- ///
+ /// The fine-tuned model failed.
///
- STATUSFAILED,
+ FAILED,
///
- ///
+ /// The fine-tuned model was deleted.
///
- STATUSDELETED,
+ DELETED,
///
- ///
+ /// The fine-tuned model is temporarily unavailable.
///
- STATUSTEMPORARILYOFFLINE,
+ TEMPORARILYOFFLINE,
///
- ///
+ /// The fine-tuned model is paused (Vanilla only).
///
- STATUSPAUSED,
+ PAUSED,
///
- ///
+ /// The fine-tuned model is queued for training.
///
- STATUSQUEUED,
+ QUEUED,
}
///
@@ -68,15 +68,15 @@ public static string ToValueString(this Status value)
{
return value switch
{
- Status.STATUSUNSPECIFIED => "STATUS_UNSPECIFIED",
- Status.STATUSFINETUNING => "STATUS_FINETUNING",
- Status.STATUSDEPLOYINGAPI => "STATUS_DEPLOYING_API",
- Status.STATUSREADY => "STATUS_READY",
- Status.STATUSFAILED => "STATUS_FAILED",
- Status.STATUSDELETED => "STATUS_DELETED",
- Status.STATUSTEMPORARILYOFFLINE => "STATUS_TEMPORARILY_OFFLINE",
- Status.STATUSPAUSED => "STATUS_PAUSED",
- Status.STATUSQUEUED => "STATUS_QUEUED",
+ Status.UNSPECIFIED => "STATUS_UNSPECIFIED",
+ Status.FINETUNING => "STATUS_FINETUNING",
+ Status.DEPLOYINGAPI => "STATUS_DEPLOYING_API",
+ Status.READY => "STATUS_READY",
+ Status.FAILED => "STATUS_FAILED",
+ Status.DELETED => "STATUS_DELETED",
+ Status.TEMPORARILYOFFLINE => "STATUS_TEMPORARILY_OFFLINE",
+ Status.PAUSED => "STATUS_PAUSED",
+ Status.QUEUED => "STATUS_QUEUED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -87,15 +87,15 @@ public static string ToValueString(this Status value)
{
return value switch
{
- "STATUS_UNSPECIFIED" => Status.STATUSUNSPECIFIED,
- "STATUS_FINETUNING" => Status.STATUSFINETUNING,
- "STATUS_DEPLOYING_API" => Status.STATUSDEPLOYINGAPI,
- "STATUS_READY" => Status.STATUSREADY,
- "STATUS_FAILED" => Status.STATUSFAILED,
- "STATUS_DELETED" => Status.STATUSDELETED,
- "STATUS_TEMPORARILY_OFFLINE" => Status.STATUSTEMPORARILYOFFLINE,
- "STATUS_PAUSED" => Status.STATUSPAUSED,
- "STATUS_QUEUED" => Status.STATUSQUEUED,
+ "STATUS_UNSPECIFIED" => Status.UNSPECIFIED,
+ "STATUS_FINETUNING" => Status.FINETUNING,
+ "STATUS_DEPLOYING_API" => Status.DEPLOYINGAPI,
+ "STATUS_READY" => Status.READY,
+ "STATUS_FAILED" => Status.FAILED,
+ "STATUS_DELETED" => Status.DELETED,
+ "STATUS_TEMPORARILY_OFFLINE" => Status.TEMPORARILYOFFLINE,
+ "STATUS_PAUSED" => Status.PAUSED,
+ "STATUS_QUEUED" => Status.QUEUED,
_ => null,
};
}
diff --git a/src/libs/Cohere/Generated/Cohere.Models.Strategy.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Strategy.g.cs
index f21f9a7..e562f39 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.Strategy.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.Strategy.g.cs
@@ -13,17 +13,17 @@ namespace Cohere
public enum Strategy
{
///
- ///
+ /// Unspecified strategy.
///
- STRATEGYUNSPECIFIED,
+ UNSPECIFIED,
///
- ///
+ /// Deprecated: Serve the fine-tuned model on a dedicated GPU.
///
- STRATEGYVANILLA,
+ VANILLA,
///
- ///
+ /// Serve the fine-tuned model on a shared GPU.
///
- STRATEGYTFEW,
+ TFEW,
}
///
@@ -38,9 +38,9 @@ public static string ToValueString(this Strategy value)
{
return value switch
{
- Strategy.STRATEGYUNSPECIFIED => "STRATEGY_UNSPECIFIED",
- Strategy.STRATEGYVANILLA => "STRATEGY_VANILLA",
- Strategy.STRATEGYTFEW => "STRATEGY_TFEW",
+ Strategy.UNSPECIFIED => "STRATEGY_UNSPECIFIED",
+ Strategy.VANILLA => "STRATEGY_VANILLA",
+ Strategy.TFEW => "STRATEGY_TFEW",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -51,9 +51,9 @@ public static string ToValueString(this Strategy value)
{
return value switch
{
- "STRATEGY_UNSPECIFIED" => Strategy.STRATEGYUNSPECIFIED,
- "STRATEGY_VANILLA" => Strategy.STRATEGYVANILLA,
- "STRATEGY_TFEW" => Strategy.STRATEGYTFEW,
+ "STRATEGY_UNSPECIFIED" => Strategy.UNSPECIFIED,
+ "STRATEGY_VANILLA" => Strategy.VANILLA,
+ "STRATEGY_TFEW" => Strategy.TFEW,
_ => null,
};
}
diff --git a/src/libs/Cohere/Generated/Cohere.Models.UpdateFinetunedModelRequest.g.cs b/src/libs/Cohere/Generated/Cohere.Models.UpdateFinetunedModelRequest.g.cs
index ba351bc..e7ef75d 100644
--- a/src/libs/Cohere/Generated/Cohere.Models.UpdateFinetunedModelRequest.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.Models.UpdateFinetunedModelRequest.g.cs
@@ -51,7 +51,7 @@ public sealed partial class UpdateFinetunedModelRequest
///
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Cohere.JsonConverters.StatusJsonConverter))]
- public global::Cohere.Status? Status { get; set; } = global::Cohere.Status.STATUSUNSPECIFIED;
+ public global::Cohere.Status? Status { get; set; } = global::Cohere.Status.UNSPECIFIED;
///
/// Creation timestamp.
diff --git a/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs b/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs
index d1e1ccc..ef8f11c 100644
--- a/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs
+++ b/src/libs/Cohere/Generated/Cohere.ModelsClient.GetModel.g.cs
@@ -45,6 +45,11 @@ partial void ProcessGetModelResponseContent(
model: ref model,
xClientName: ref xClientName);
+ if (xClientName != default)
+ {
+ _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-Client-Name", xClientName);
+ }
+
var __pathBuilder = new PathBuilder(
path: $"/v1/models/{model}",
baseUri: _httpClient.BaseAddress);