From 215062c7fb52496902f74fd447348ceb8325640c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Sep 2024 09:20:31 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Cohere.CohereApi.Embedv2.g.cs | 2 +- .../Generated/Cohere.ICohereApi.Embedv2.g.cs | 2 +- .../Cohere.Models.Embedv2Request.g.cs | 3 +- .../Cohere.Models.FeedbackResponse.g.cs | 18 + .../Generated/JsonSerializerContextTypes.g.cs | 914 +++++++++--------- src/libs/Cohere/openapi.yaml | 84 +- 6 files changed, 525 insertions(+), 498 deletions(-) create mode 100644 src/libs/Cohere/Generated/Cohere.Models.FeedbackResponse.g.cs diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs index 2c8bbc8..b850bec 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs @@ -165,10 +165,10 @@ partial void ProcessEmbedv2ResponseContent( public async global::System.Threading.Tasks.Task Embedv2Async( global::System.Collections.Generic.IList texts, string model, + global::Cohere.EmbedInputType inputType, global::System.Collections.Generic.IList embeddingTypes, global::Cohere.Embedv2RequestTruncate truncate, string? xClientName = default, - global::Cohere.EmbedInputType? inputType = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::Cohere.Embedv2Request diff --git a/src/libs/Cohere/Generated/Cohere.ICohereApi.Embedv2.g.cs b/src/libs/Cohere/Generated/Cohere.ICohereApi.Embedv2.g.cs index e13c77c..5698528 100644 --- a/src/libs/Cohere/Generated/Cohere.ICohereApi.Embedv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ICohereApi.Embedv2.g.cs @@ -72,10 +72,10 @@ public partial interface ICohereApi global::System.Threading.Tasks.Task Embedv2Async( global::System.Collections.Generic.IList texts, string model, + global::Cohere.EmbedInputType inputType, global::System.Collections.Generic.IList embeddingTypes, global::Cohere.Embedv2RequestTruncate truncate, string? xClientName = default, - global::Cohere.EmbedInputType? inputType = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Cohere/Generated/Cohere.Models.Embedv2Request.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Embedv2Request.g.cs index b4ab575..9126b99 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Embedv2Request.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Embedv2Request.g.cs @@ -41,7 +41,8 @@ public sealed partial class Embedv2Request /// [global::System.Text.Json.Serialization.JsonPropertyName("input_type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Cohere.JsonConverters.EmbedInputTypeJsonConverter))] - public global::Cohere.EmbedInputType? InputType { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Cohere.EmbedInputType InputType { get; set; } /// /// Specifies the types of embeddings you want to get back. Not required and default is None, which returns the Embed Floats response type. Can be one or more of the following types.
diff --git a/src/libs/Cohere/Generated/Cohere.Models.FeedbackResponse.g.cs b/src/libs/Cohere/Generated/Cohere.Models.FeedbackResponse.g.cs new file mode 100644 index 0000000..5246b29 --- /dev/null +++ b/src/libs/Cohere/Generated/Cohere.Models.FeedbackResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Cohere +{ + /// + /// + /// + public sealed partial class FeedbackResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs index 8326685..e7dc526 100644 --- a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs @@ -953,1822 +953,1826 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Cohere.TokenLikelihood? Type235 { get; set; } + public global::Cohere.FeedbackResponse? Type235 { get; set; } /// /// /// - public global::Cohere.LogLikelihoodResponse? Type236 { get; set; } + public global::Cohere.TokenLikelihood? Type236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::Cohere.LogLikelihoodResponse? Type237 { get; set; } /// /// /// - public global::Cohere.Cluster? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::Cohere.GetClusterJobResponse? Type239 { get; set; } + public global::Cohere.Cluster? Type239 { get; set; } /// /// /// - public global::Cohere.GetClusterJobResponseStatus? Type240 { get; set; } + public global::Cohere.GetClusterJobResponse? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::Cohere.GetClusterJobResponseStatus? Type241 { get; set; } /// /// /// - public global::Cohere.ListClusterJobsResponse? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::Cohere.ListClusterJobsResponse? Type243 { get; set; } /// /// /// - public global::Cohere.CreateClusterJobRequest? Type244 { get; set; } + public global::System.Collections.Generic.IList? Type244 { get; set; } /// /// /// - public global::Cohere.CreateClusterJobResponse? Type245 { get; set; } + public global::Cohere.CreateClusterJobRequest? Type245 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequest? Type246 { get; set; } + public global::Cohere.CreateClusterJobResponse? Type246 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequestStatus? Type247 { get; set; } + public global::Cohere.UpdateClusterJobRequest? Type247 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequestInputTrackingMetrics? Type248 { get; set; } + public global::Cohere.UpdateClusterJobRequestStatus? Type248 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequestOutputTrackingMetrics? Type249 { get; set; } + public global::Cohere.UpdateClusterJobRequestInputTrackingMetrics? Type249 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobResponse? Type250 { get; set; } + public global::Cohere.UpdateClusterJobRequestOutputTrackingMetrics? Type250 { get; set; } /// /// /// - public global::Cohere.CompatibleEndpoint? Type251 { get; set; } + public global::Cohere.UpdateClusterJobResponse? Type251 { get; set; } /// /// /// - public global::Cohere.GetModelResponse? Type252 { get; set; } + public global::Cohere.CompatibleEndpoint? Type252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type253 { get; set; } + public global::Cohere.GetModelResponse? Type253 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type255 { get; set; } + public global::Cohere.ListModelsResponse? Type255 { get; set; } /// /// /// - public global::Cohere.BaseType? Type256 { get; set; } + public global::System.Collections.Generic.IList? Type256 { get; set; } /// /// /// - public global::Cohere.Strategy? Type257 { get; set; } + public global::Cohere.BaseType? Type257 { get; set; } /// /// /// - public global::Cohere.BaseModel? Type258 { get; set; } + public global::Cohere.Strategy? Type258 { get; set; } /// /// /// - public global::Cohere.LoraTargetModules? Type259 { get; set; } + public global::Cohere.BaseModel? Type259 { get; set; } /// /// /// - public global::Cohere.Hyperparameters? Type260 { get; set; } + public global::Cohere.LoraTargetModules? Type260 { get; set; } /// /// /// - public global::Cohere.WandbConfig? Type261 { get; set; } + public global::Cohere.Hyperparameters? Type261 { get; set; } /// /// /// - public global::Cohere.Settings? Type262 { get; set; } + public global::Cohere.WandbConfig? Type262 { get; set; } /// /// /// - public global::Cohere.Status? Type263 { get; set; } + public global::Cohere.Settings? Type263 { get; set; } /// /// /// - public global::Cohere.FinetunedModel? Type264 { get; set; } + public global::Cohere.Status? Type264 { get; set; } /// /// /// - public global::Cohere.ListFinetunedModelsResponse? Type265 { get; set; } + public global::Cohere.FinetunedModel? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::Cohere.ListFinetunedModelsResponse? Type266 { get; set; } /// /// /// - public global::Cohere.Error? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } /// /// /// - public global::Cohere.CreateFinetunedModelResponse? Type268 { get; set; } + public global::Cohere.Error? Type268 { get; set; } /// /// /// - public global::Cohere.GetFinetunedModelResponse? Type269 { get; set; } + public global::Cohere.CreateFinetunedModelResponse? Type269 { get; set; } /// /// /// - public global::Cohere.DeleteFinetunedModelResponse? Type270 { get; set; } + public global::Cohere.GetFinetunedModelResponse? Type270 { get; set; } /// /// /// - public global::Cohere.UpdateFinetunedModelResponse? Type271 { get; set; } + public global::Cohere.DeleteFinetunedModelResponse? Type271 { get; set; } /// /// /// - public global::Cohere.Event? Type272 { get; set; } + public global::Cohere.UpdateFinetunedModelResponse? Type272 { get; set; } /// /// /// - public global::Cohere.ListEventsResponse? Type273 { get; set; } + public global::Cohere.Event? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::Cohere.ListEventsResponse? Type274 { get; set; } /// /// /// - public global::Cohere.TrainingStepMetrics? Type275 { get; set; } + public global::System.Collections.Generic.IList? Type275 { get; set; } /// /// /// - public global::Cohere.TrainingStepMetricsMetrics? Type276 { get; set; } + public global::Cohere.TrainingStepMetrics? Type276 { get; set; } /// /// /// - public global::Cohere.ListTrainingStepMetricsResponse? Type277 { get; set; } + public global::Cohere.TrainingStepMetricsMetrics? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::Cohere.ListTrainingStepMetricsResponse? Type278 { get; set; } /// /// /// - public global::Cohere.ChatRequest? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// /// /// - public global::Cohere.ChatRequestPromptTruncation? Type280 { get; set; } + public global::Cohere.ChatRequest? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::Cohere.ChatRequestPromptTruncation? Type281 { get; set; } /// /// /// - public global::Cohere.ChatRequestCitationQuality? Type282 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// /// - public float? Type283 { get; set; } + public global::Cohere.ChatRequestCitationQuality? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public float? Type284 { get; set; } /// /// /// - public global::Cohere.ChatRequestSafetyMode? Type285 { get; set; } + public global::System.Collections.Generic.IList? Type285 { get; set; } /// /// /// - public global::Cohere.Chatv2Request? Type286 { get; set; } + public global::Cohere.ChatRequestSafetyMode? Type286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type287 { get; set; } + public global::Cohere.Chatv2Request? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type288 { get; set; } + public global::System.Collections.Generic.IList? Type288 { get; set; } /// /// /// - public global::Cohere.OneOf? Type289 { get; set; } + public global::System.Collections.Generic.IList>? Type289 { get; set; } /// /// /// - public global::Cohere.Chatv2RequestSafetyMode? Type290 { get; set; } + public global::Cohere.OneOf? Type290 { get; set; } /// /// /// - public global::Cohere.GenerateRequest? Type291 { get; set; } + public global::Cohere.Chatv2RequestSafetyMode? Type291 { get; set; } /// /// /// - public global::Cohere.GenerateRequestTruncate? Type292 { get; set; } + public global::Cohere.GenerateRequest? Type292 { get; set; } /// /// /// - public global::Cohere.GenerateRequestReturnLikelihoods? Type293 { get; set; } + public global::Cohere.GenerateRequestTruncate? Type293 { get; set; } /// /// /// - public global::Cohere.EmbedRequest? Type294 { get; set; } + public global::Cohere.GenerateRequestReturnLikelihoods? Type294 { get; set; } /// /// /// - public global::Cohere.EmbedRequestTruncate? Type295 { get; set; } + public global::Cohere.EmbedRequest? Type295 { get; set; } /// /// /// - public global::Cohere.Embedv2Request? Type296 { get; set; } + public global::Cohere.EmbedRequestTruncate? Type296 { get; set; } /// /// /// - public global::Cohere.Embedv2RequestTruncate? Type297 { get; set; } + public global::Cohere.Embedv2Request? Type297 { get; set; } /// /// /// - public global::Cohere.RerankRequest? Type298 { get; set; } + public global::Cohere.Embedv2RequestTruncate? Type298 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type299 { get; set; } + public global::Cohere.RerankRequest? Type299 { get; set; } /// /// /// - public global::Cohere.OneOf? Type300 { get; set; } + public global::System.Collections.Generic.IList>? Type300 { get; set; } /// /// /// - public global::Cohere.Rerankv2Request? Type301 { get; set; } + public global::Cohere.OneOf? Type301 { get; set; } /// /// /// - public global::Cohere.ClassifyRequest? Type302 { get; set; } + public global::Cohere.Rerankv2Request? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::Cohere.ClassifyRequest? Type303 { get; set; } /// /// /// - public global::Cohere.ClassifyRequestTruncate? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::Cohere.CreateDatasetRequest? Type305 { get; set; } + public global::Cohere.ClassifyRequestTruncate? Type305 { get; set; } /// /// /// - public byte[]? Type306 { get; set; } + public global::Cohere.CreateDatasetRequest? Type306 { get; set; } /// /// /// - public global::Cohere.SummarizeRequest? Type307 { get; set; } + public byte[]? Type307 { get; set; } /// /// /// - public global::Cohere.SummarizeRequestLength? Type308 { get; set; } + public global::Cohere.SummarizeRequest? Type308 { get; set; } /// /// /// - public global::Cohere.SummarizeRequestFormat? Type309 { get; set; } + public global::Cohere.SummarizeRequestLength? Type309 { get; set; } /// /// /// - public global::Cohere.SummarizeRequestExtractiveness? Type310 { get; set; } + public global::Cohere.SummarizeRequestFormat? Type310 { get; set; } /// /// /// - public global::Cohere.TokenizeRequest? Type311 { get; set; } + public global::Cohere.SummarizeRequestExtractiveness? Type311 { get; set; } /// /// /// - public global::Cohere.DetokenizeRequest? Type312 { get; set; } + public global::Cohere.TokenizeRequest? Type312 { get; set; } /// /// /// - public global::Cohere.UpdateFinetunedModelRequest? Type313 { get; set; } + public global::Cohere.DetokenizeRequest? Type313 { get; set; } /// /// /// - public global::Cohere.ChatAccepts? Type314 { get; set; } + public global::Cohere.UpdateFinetunedModelRequest? Type314 { get; set; } /// /// /// - public global::Cohere.OneOf? Type315 { get; set; } + public global::Cohere.ChatAccepts? Type315 { get; set; } /// /// /// - public global::Cohere.ChatResponse3? Type316 { get; set; } + public global::Cohere.OneOf? Type316 { get; set; } /// /// /// - public global::Cohere.ChatResponse4? Type317 { get; set; } + public global::Cohere.ChatResponse3? Type317 { get; set; } /// /// /// - public global::Cohere.ChatResponse5? Type318 { get; set; } + public global::Cohere.ChatResponse4? Type318 { get; set; } /// /// /// - public global::Cohere.ChatResponse6? Type319 { get; set; } + public global::Cohere.ChatResponse5? Type319 { get; set; } /// /// /// - public global::Cohere.ChatResponse7? Type320 { get; set; } + public global::Cohere.ChatResponse6? Type320 { get; set; } /// /// /// - public global::Cohere.ChatResponse8? Type321 { get; set; } + public global::Cohere.ChatResponse7? Type321 { get; set; } /// /// /// - public global::Cohere.ChatResponse9? Type322 { get; set; } + public global::Cohere.ChatResponse8? Type322 { get; set; } /// /// /// - public global::Cohere.ChatResponse10? Type323 { get; set; } + public global::Cohere.ChatResponse9? Type323 { get; set; } /// /// /// - public global::Cohere.ChatResponse11? Type324 { get; set; } + public global::Cohere.ChatResponse10? Type324 { get; set; } /// /// /// - public global::Cohere.ChatResponse12? Type325 { get; set; } + public global::Cohere.ChatResponse11? Type325 { get; set; } /// /// /// - public global::Cohere.ChatResponse13? Type326 { get; set; } + public global::Cohere.ChatResponse12? Type326 { get; set; } /// /// /// - public global::Cohere.ChatResponse14? Type327 { get; set; } + public global::Cohere.ChatResponse13? Type327 { get; set; } /// /// /// - public global::Cohere.OneOf? Type328 { get; set; } + public global::Cohere.ChatResponse14? Type328 { get; set; } /// /// /// - public global::Cohere.Chatv2Response2? Type329 { get; set; } + public global::Cohere.OneOf? Type329 { get; set; } /// /// /// - public global::Cohere.Chatv2Response3? Type330 { get; set; } + public global::Cohere.Chatv2Response2? Type330 { get; set; } /// /// /// - public global::Cohere.Chatv2Response4? Type331 { get; set; } + public global::Cohere.Chatv2Response3? Type331 { get; set; } /// /// /// - public global::Cohere.Chatv2Response5? Type332 { get; set; } + public global::Cohere.Chatv2Response4? Type332 { get; set; } /// /// /// - public global::Cohere.Chatv2Response6? Type333 { get; set; } + public global::Cohere.Chatv2Response5? Type333 { get; set; } /// /// /// - public global::Cohere.Chatv2Response7? Type334 { get; set; } + public global::Cohere.Chatv2Response6? Type334 { get; set; } /// /// /// - public global::Cohere.Chatv2Response8? Type335 { get; set; } + public global::Cohere.Chatv2Response7? Type335 { get; set; } /// /// /// - public global::Cohere.Chatv2Response9? Type336 { get; set; } + public global::Cohere.Chatv2Response8? Type336 { get; set; } /// /// /// - public global::Cohere.Chatv2Response10? Type337 { get; set; } + public global::Cohere.Chatv2Response9? Type337 { get; set; } /// /// /// - public global::Cohere.Chatv2Response11? Type338 { get; set; } + public global::Cohere.Chatv2Response10? Type338 { get; set; } /// /// /// - public global::Cohere.Chatv2Response12? Type339 { get; set; } + public global::Cohere.Chatv2Response11? Type339 { get; set; } /// /// /// - public global::Cohere.Chatv2Response13? Type340 { get; set; } + public global::Cohere.Chatv2Response12? Type340 { get; set; } /// /// /// - public global::Cohere.GenerateResponse? Type341 { get; set; } + public global::Cohere.Chatv2Response13? Type341 { get; set; } /// /// /// - public global::Cohere.GenerateResponse2? Type342 { get; set; } + public global::Cohere.GenerateResponse? Type342 { get; set; } /// /// /// - public global::Cohere.GenerateResponse3? Type343 { get; set; } + public global::Cohere.GenerateResponse2? Type343 { get; set; } /// /// /// - public global::Cohere.GenerateResponse4? Type344 { get; set; } + public global::Cohere.GenerateResponse3? Type344 { get; set; } /// /// /// - public global::Cohere.GenerateResponse5? Type345 { get; set; } + public global::Cohere.GenerateResponse4? Type345 { get; set; } /// /// /// - public global::Cohere.GenerateResponse6? Type346 { get; set; } + public global::Cohere.GenerateResponse5? Type346 { get; set; } /// /// /// - public global::Cohere.GenerateResponse7? Type347 { get; set; } + public global::Cohere.GenerateResponse6? Type347 { get; set; } /// /// /// - public global::Cohere.GenerateResponse8? Type348 { get; set; } + public global::Cohere.GenerateResponse7? Type348 { get; set; } /// /// /// - public global::Cohere.GenerateResponse9? Type349 { get; set; } + public global::Cohere.GenerateResponse8? Type349 { get; set; } /// /// /// - public global::Cohere.GenerateResponse10? Type350 { get; set; } + public global::Cohere.GenerateResponse9? Type350 { get; set; } /// /// /// - public global::Cohere.GenerateResponse11? Type351 { get; set; } + public global::Cohere.GenerateResponse10? Type351 { get; set; } /// /// /// - public global::Cohere.GenerateResponse12? Type352 { get; set; } + public global::Cohere.GenerateResponse11? Type352 { get; set; } /// /// /// - public global::Cohere.OneOf? Type353 { get; set; } + public global::Cohere.GenerateResponse12? Type353 { get; set; } /// /// /// - public global::Cohere.EmbedResponse2? Type354 { get; set; } + public global::Cohere.OneOf? Type354 { get; set; } /// /// /// - public global::Cohere.EmbedResponse3? Type355 { get; set; } + public global::Cohere.EmbedResponse2? Type355 { get; set; } /// /// /// - public global::Cohere.EmbedResponse4? Type356 { get; set; } + public global::Cohere.EmbedResponse3? Type356 { get; set; } /// /// /// - public global::Cohere.EmbedResponse5? Type357 { get; set; } + public global::Cohere.EmbedResponse4? Type357 { get; set; } /// /// /// - public global::Cohere.EmbedResponse6? Type358 { get; set; } + public global::Cohere.EmbedResponse5? Type358 { get; set; } /// /// /// - public global::Cohere.EmbedResponse7? Type359 { get; set; } + public global::Cohere.EmbedResponse6? Type359 { get; set; } /// /// /// - public global::Cohere.EmbedResponse8? Type360 { get; set; } + public global::Cohere.EmbedResponse7? Type360 { get; set; } /// /// /// - public global::Cohere.EmbedResponse9? Type361 { get; set; } + public global::Cohere.EmbedResponse8? Type361 { get; set; } /// /// /// - public global::Cohere.EmbedResponse10? Type362 { get; set; } + public global::Cohere.EmbedResponse9? Type362 { get; set; } /// /// /// - public global::Cohere.EmbedResponse11? Type363 { get; set; } + public global::Cohere.EmbedResponse10? Type363 { get; set; } /// /// /// - public global::Cohere.EmbedResponse12? Type364 { get; set; } + public global::Cohere.EmbedResponse11? Type364 { get; set; } /// /// /// - public global::Cohere.EmbedResponse13? Type365 { get; set; } + public global::Cohere.EmbedResponse12? Type365 { get; set; } /// /// /// - public global::Cohere.Embedv2Response? Type366 { get; set; } + public global::Cohere.EmbedResponse13? Type366 { get; set; } /// /// /// - public global::Cohere.Embedv2Response2? Type367 { get; set; } + public global::Cohere.Embedv2Response? Type367 { get; set; } /// /// /// - public global::Cohere.Embedv2Response3? Type368 { get; set; } + public global::Cohere.Embedv2Response2? Type368 { get; set; } /// /// /// - public global::Cohere.Embedv2Response4? Type369 { get; set; } + public global::Cohere.Embedv2Response3? Type369 { get; set; } /// /// /// - public global::Cohere.Embedv2Response5? Type370 { get; set; } + public global::Cohere.Embedv2Response4? Type370 { get; set; } /// /// /// - public global::Cohere.Embedv2Response6? Type371 { get; set; } + public global::Cohere.Embedv2Response5? Type371 { get; set; } /// /// /// - public global::Cohere.Embedv2Response7? Type372 { get; set; } + public global::Cohere.Embedv2Response6? Type372 { get; set; } /// /// /// - public global::Cohere.Embedv2Response8? Type373 { get; set; } + public global::Cohere.Embedv2Response7? Type373 { get; set; } /// /// /// - public global::Cohere.Embedv2Response9? Type374 { get; set; } + public global::Cohere.Embedv2Response8? Type374 { get; set; } /// /// /// - public global::Cohere.Embedv2Response10? Type375 { get; set; } + public global::Cohere.Embedv2Response9? Type375 { get; set; } /// /// /// - public global::Cohere.Embedv2Response11? Type376 { get; set; } + public global::Cohere.Embedv2Response10? Type376 { get; set; } /// /// /// - public global::Cohere.Embedv2Response12? Type377 { get; set; } + public global::Cohere.Embedv2Response11? Type377 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse2? Type378 { get; set; } + public global::Cohere.Embedv2Response12? Type378 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse3? Type379 { get; set; } + public global::Cohere.CreateEmbedJobResponse2? Type379 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse4? Type380 { get; set; } + public global::Cohere.CreateEmbedJobResponse3? Type380 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse5? Type381 { get; set; } + public global::Cohere.CreateEmbedJobResponse4? Type381 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse6? Type382 { get; set; } + public global::Cohere.CreateEmbedJobResponse5? Type382 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse7? Type383 { get; set; } + public global::Cohere.CreateEmbedJobResponse6? Type383 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse8? Type384 { get; set; } + public global::Cohere.CreateEmbedJobResponse7? Type384 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse9? Type385 { get; set; } + public global::Cohere.CreateEmbedJobResponse8? Type385 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse10? Type386 { get; set; } + public global::Cohere.CreateEmbedJobResponse9? Type386 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse11? Type387 { get; set; } + public global::Cohere.CreateEmbedJobResponse10? Type387 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse12? Type388 { get; set; } + public global::Cohere.CreateEmbedJobResponse11? Type388 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse13? Type389 { get; set; } + public global::Cohere.CreateEmbedJobResponse12? Type389 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse? Type390 { get; set; } + public global::Cohere.CreateEmbedJobResponse13? Type390 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse2? Type391 { get; set; } + public global::Cohere.ListEmbedJobsResponse? Type391 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse3? Type392 { get; set; } + public global::Cohere.ListEmbedJobsResponse2? Type392 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse4? Type393 { get; set; } + public global::Cohere.ListEmbedJobsResponse3? Type393 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse5? Type394 { get; set; } + public global::Cohere.ListEmbedJobsResponse4? Type394 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse6? Type395 { get; set; } + public global::Cohere.ListEmbedJobsResponse5? Type395 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse7? Type396 { get; set; } + public global::Cohere.ListEmbedJobsResponse6? Type396 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse8? Type397 { get; set; } + public global::Cohere.ListEmbedJobsResponse7? Type397 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse9? Type398 { get; set; } + public global::Cohere.ListEmbedJobsResponse8? Type398 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse10? Type399 { get; set; } + public global::Cohere.ListEmbedJobsResponse9? Type399 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse11? Type400 { get; set; } + public global::Cohere.ListEmbedJobsResponse10? Type400 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse12? Type401 { get; set; } + public global::Cohere.ListEmbedJobsResponse11? Type401 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse? Type402 { get; set; } + public global::Cohere.ListEmbedJobsResponse12? Type402 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse2? Type403 { get; set; } + public global::Cohere.GetEmbedJobResponse? Type403 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse3? Type404 { get; set; } + public global::Cohere.GetEmbedJobResponse2? Type404 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse4? Type405 { get; set; } + public global::Cohere.GetEmbedJobResponse3? Type405 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse5? Type406 { get; set; } + public global::Cohere.GetEmbedJobResponse4? Type406 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse6? Type407 { get; set; } + public global::Cohere.GetEmbedJobResponse5? Type407 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse7? Type408 { get; set; } + public global::Cohere.GetEmbedJobResponse6? Type408 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse8? Type409 { get; set; } + public global::Cohere.GetEmbedJobResponse7? Type409 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse9? Type410 { get; set; } + public global::Cohere.GetEmbedJobResponse8? Type410 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse10? Type411 { get; set; } + public global::Cohere.GetEmbedJobResponse9? Type411 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse11? Type412 { get; set; } + public global::Cohere.GetEmbedJobResponse10? Type412 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse12? Type413 { get; set; } + public global::Cohere.GetEmbedJobResponse11? Type413 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse? Type414 { get; set; } + public global::Cohere.GetEmbedJobResponse12? Type414 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse2? Type415 { get; set; } + public global::Cohere.CancelEmbedJobResponse? Type415 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse3? Type416 { get; set; } + public global::Cohere.CancelEmbedJobResponse2? Type416 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse4? Type417 { get; set; } + public global::Cohere.CancelEmbedJobResponse3? Type417 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse5? Type418 { get; set; } + public global::Cohere.CancelEmbedJobResponse4? Type418 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse6? Type419 { get; set; } + public global::Cohere.CancelEmbedJobResponse5? Type419 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse7? Type420 { get; set; } + public global::Cohere.CancelEmbedJobResponse6? Type420 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse8? Type421 { get; set; } + public global::Cohere.CancelEmbedJobResponse7? Type421 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse9? Type422 { get; set; } + public global::Cohere.CancelEmbedJobResponse8? Type422 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse10? Type423 { get; set; } + public global::Cohere.CancelEmbedJobResponse9? Type423 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse11? Type424 { get; set; } + public global::Cohere.CancelEmbedJobResponse10? Type424 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse12? Type425 { get; set; } + public global::Cohere.CancelEmbedJobResponse11? Type425 { get; set; } /// /// /// - public global::Cohere.RerankResponse? Type426 { get; set; } + public global::Cohere.CancelEmbedJobResponse12? Type426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type427 { get; set; } + public global::Cohere.RerankResponse? Type427 { get; set; } /// /// /// - public global::Cohere.RerankResponseResult? Type428 { get; set; } + public global::System.Collections.Generic.IList? Type428 { get; set; } /// /// /// - public global::Cohere.RerankResponseResultDocument? Type429 { get; set; } + public global::Cohere.RerankResponseResult? Type429 { get; set; } /// /// /// - public global::Cohere.RerankResponse2? Type430 { get; set; } + public global::Cohere.RerankResponseResultDocument? Type430 { get; set; } /// /// /// - public global::Cohere.RerankResponse3? Type431 { get; set; } + public global::Cohere.RerankResponse2? Type431 { get; set; } /// /// /// - public global::Cohere.RerankResponse4? Type432 { get; set; } + public global::Cohere.RerankResponse3? Type432 { get; set; } /// /// /// - public global::Cohere.RerankResponse5? Type433 { get; set; } + public global::Cohere.RerankResponse4? Type433 { get; set; } /// /// /// - public global::Cohere.RerankResponse6? Type434 { get; set; } + public global::Cohere.RerankResponse5? Type434 { get; set; } /// /// /// - public global::Cohere.RerankResponse7? Type435 { get; set; } + public global::Cohere.RerankResponse6? Type435 { get; set; } /// /// /// - public global::Cohere.RerankResponse8? Type436 { get; set; } + public global::Cohere.RerankResponse7? Type436 { get; set; } /// /// /// - public global::Cohere.RerankResponse9? Type437 { get; set; } + public global::Cohere.RerankResponse8? Type437 { get; set; } /// /// /// - public global::Cohere.RerankResponse10? Type438 { get; set; } + public global::Cohere.RerankResponse9? Type438 { get; set; } /// /// /// - public global::Cohere.RerankResponse11? Type439 { get; set; } + public global::Cohere.RerankResponse10? Type439 { get; set; } /// /// /// - public global::Cohere.RerankResponse12? Type440 { get; set; } + public global::Cohere.RerankResponse11? Type440 { get; set; } /// /// /// - public global::Cohere.RerankResponse13? Type441 { get; set; } + public global::Cohere.RerankResponse12? Type441 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response? Type442 { get; set; } + public global::Cohere.RerankResponse13? Type442 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type443 { get; set; } + public global::Cohere.Rerankv2Response? Type443 { get; set; } /// /// /// - public global::Cohere.Rerankv2ResponseResult? Type444 { get; set; } + public global::System.Collections.Generic.IList? Type444 { get; set; } /// /// /// - public global::Cohere.Rerankv2ResponseResultDocument? Type445 { get; set; } + public global::Cohere.Rerankv2ResponseResult? Type445 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response2? Type446 { get; set; } + public global::Cohere.Rerankv2ResponseResultDocument? Type446 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response3? Type447 { get; set; } + public global::Cohere.Rerankv2Response2? Type447 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response4? Type448 { get; set; } + public global::Cohere.Rerankv2Response3? Type448 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response5? Type449 { get; set; } + public global::Cohere.Rerankv2Response4? Type449 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response6? Type450 { get; set; } + public global::Cohere.Rerankv2Response5? Type450 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response7? Type451 { get; set; } + public global::Cohere.Rerankv2Response6? Type451 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response8? Type452 { get; set; } + public global::Cohere.Rerankv2Response7? Type452 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response9? Type453 { get; set; } + public global::Cohere.Rerankv2Response8? Type453 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response10? Type454 { get; set; } + public global::Cohere.Rerankv2Response9? Type454 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response11? Type455 { get; set; } + public global::Cohere.Rerankv2Response10? Type455 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response12? Type456 { get; set; } + public global::Cohere.Rerankv2Response11? Type456 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response13? Type457 { get; set; } + public global::Cohere.Rerankv2Response12? Type457 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse? Type458 { get; set; } + public global::Cohere.Rerankv2Response13? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::Cohere.ClassifyResponse? Type459 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassification? Type460 { get; set; } + public global::System.Collections.Generic.IList? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::Cohere.ClassifyResponseClassification? Type461 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassificationLabels? Type462 { get; set; } + public global::System.Collections.Generic.IList? Type462 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassificationClassificationType? Type463 { get; set; } + public global::Cohere.ClassifyResponseClassificationLabels? Type463 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse2? Type464 { get; set; } + public global::Cohere.ClassifyResponseClassificationClassificationType? Type464 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse3? Type465 { get; set; } + public global::Cohere.ClassifyResponse2? Type465 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse4? Type466 { get; set; } + public global::Cohere.ClassifyResponse3? Type466 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse5? Type467 { get; set; } + public global::Cohere.ClassifyResponse4? Type467 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse6? Type468 { get; set; } + public global::Cohere.ClassifyResponse5? Type468 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse7? Type469 { get; set; } + public global::Cohere.ClassifyResponse6? Type469 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse8? Type470 { get; set; } + public global::Cohere.ClassifyResponse7? Type470 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse9? Type471 { get; set; } + public global::Cohere.ClassifyResponse8? Type471 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse10? Type472 { get; set; } + public global::Cohere.ClassifyResponse9? Type472 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse11? Type473 { get; set; } + public global::Cohere.ClassifyResponse10? Type473 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse12? Type474 { get; set; } + public global::Cohere.ClassifyResponse11? Type474 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse13? Type475 { get; set; } + public global::Cohere.ClassifyResponse12? Type475 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse? Type476 { get; set; } + public global::Cohere.ClassifyResponse13? Type476 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse2? Type477 { get; set; } + public global::Cohere.CreateDatasetResponse? Type477 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse3? Type478 { get; set; } + public global::Cohere.CreateDatasetResponse2? Type478 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse4? Type479 { get; set; } + public global::Cohere.CreateDatasetResponse3? Type479 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse5? Type480 { get; set; } + public global::Cohere.CreateDatasetResponse4? Type480 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse6? Type481 { get; set; } + public global::Cohere.CreateDatasetResponse5? Type481 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse7? Type482 { get; set; } + public global::Cohere.CreateDatasetResponse6? Type482 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse8? Type483 { get; set; } + public global::Cohere.CreateDatasetResponse7? Type483 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse9? Type484 { get; set; } + public global::Cohere.CreateDatasetResponse8? Type484 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse10? Type485 { get; set; } + public global::Cohere.CreateDatasetResponse9? Type485 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse11? Type486 { get; set; } + public global::Cohere.CreateDatasetResponse10? Type486 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse12? Type487 { get; set; } + public global::Cohere.CreateDatasetResponse11? Type487 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse13? Type488 { get; set; } + public global::Cohere.CreateDatasetResponse12? Type488 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse? Type489 { get; set; } + public global::Cohere.CreateDatasetResponse13? Type489 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type490 { get; set; } + public global::Cohere.ListDatasetsResponse? Type490 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse2? Type491 { get; set; } + public global::System.Collections.Generic.IList? Type491 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse3? Type492 { get; set; } + public global::Cohere.ListDatasetsResponse2? Type492 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse4? Type493 { get; set; } + public global::Cohere.ListDatasetsResponse3? Type493 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse5? Type494 { get; set; } + public global::Cohere.ListDatasetsResponse4? Type494 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse6? Type495 { get; set; } + public global::Cohere.ListDatasetsResponse5? Type495 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse7? Type496 { get; set; } + public global::Cohere.ListDatasetsResponse6? Type496 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse8? Type497 { get; set; } + public global::Cohere.ListDatasetsResponse7? Type497 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse9? Type498 { get; set; } + public global::Cohere.ListDatasetsResponse8? Type498 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse10? Type499 { get; set; } + public global::Cohere.ListDatasetsResponse9? Type499 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse11? Type500 { get; set; } + public global::Cohere.ListDatasetsResponse10? Type500 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse12? Type501 { get; set; } + public global::Cohere.ListDatasetsResponse11? Type501 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse13? Type502 { get; set; } + public global::Cohere.ListDatasetsResponse12? Type502 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse? Type503 { get; set; } + public global::Cohere.ListDatasetsResponse13? Type503 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse2? Type504 { get; set; } + public global::Cohere.GetDatasetUsageResponse? Type504 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse3? Type505 { get; set; } + public global::Cohere.GetDatasetUsageResponse2? Type505 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse4? Type506 { get; set; } + public global::Cohere.GetDatasetUsageResponse3? Type506 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse5? Type507 { get; set; } + public global::Cohere.GetDatasetUsageResponse4? Type507 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse6? Type508 { get; set; } + public global::Cohere.GetDatasetUsageResponse5? Type508 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse7? Type509 { get; set; } + public global::Cohere.GetDatasetUsageResponse6? Type509 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse8? Type510 { get; set; } + public global::Cohere.GetDatasetUsageResponse7? Type510 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse9? Type511 { get; set; } + public global::Cohere.GetDatasetUsageResponse8? Type511 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse10? Type512 { get; set; } + public global::Cohere.GetDatasetUsageResponse9? Type512 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse11? Type513 { get; set; } + public global::Cohere.GetDatasetUsageResponse10? Type513 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse12? Type514 { get; set; } + public global::Cohere.GetDatasetUsageResponse11? Type514 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse13? Type515 { get; set; } + public global::Cohere.GetDatasetUsageResponse12? Type515 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse? Type516 { get; set; } + public global::Cohere.GetDatasetUsageResponse13? Type516 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse2? Type517 { get; set; } + public global::Cohere.GetDatasetResponse? Type517 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse3? Type518 { get; set; } + public global::Cohere.GetDatasetResponse2? Type518 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse4? Type519 { get; set; } + public global::Cohere.GetDatasetResponse3? Type519 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse5? Type520 { get; set; } + public global::Cohere.GetDatasetResponse4? Type520 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse6? Type521 { get; set; } + public global::Cohere.GetDatasetResponse5? Type521 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse7? Type522 { get; set; } + public global::Cohere.GetDatasetResponse6? Type522 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse8? Type523 { get; set; } + public global::Cohere.GetDatasetResponse7? Type523 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse9? Type524 { get; set; } + public global::Cohere.GetDatasetResponse8? Type524 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse10? Type525 { get; set; } + public global::Cohere.GetDatasetResponse9? Type525 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse11? Type526 { get; set; } + public global::Cohere.GetDatasetResponse10? Type526 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse12? Type527 { get; set; } + public global::Cohere.GetDatasetResponse11? Type527 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse13? Type528 { get; set; } + public global::Cohere.GetDatasetResponse12? Type528 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse? Type529 { get; set; } + public global::Cohere.GetDatasetResponse13? Type529 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse2? Type530 { get; set; } + public global::Cohere.DeleteDatasetResponse? Type530 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse3? Type531 { get; set; } + public global::Cohere.DeleteDatasetResponse2? Type531 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse4? Type532 { get; set; } + public global::Cohere.DeleteDatasetResponse3? Type532 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse5? Type533 { get; set; } + public global::Cohere.DeleteDatasetResponse4? Type533 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse6? Type534 { get; set; } + public global::Cohere.DeleteDatasetResponse5? Type534 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse7? Type535 { get; set; } + public global::Cohere.DeleteDatasetResponse6? Type535 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse8? Type536 { get; set; } + public global::Cohere.DeleteDatasetResponse7? Type536 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse9? Type537 { get; set; } + public global::Cohere.DeleteDatasetResponse8? Type537 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse10? Type538 { get; set; } + public global::Cohere.DeleteDatasetResponse9? Type538 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse11? Type539 { get; set; } + public global::Cohere.DeleteDatasetResponse10? Type539 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse12? Type540 { get; set; } + public global::Cohere.DeleteDatasetResponse11? Type540 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse13? Type541 { get; set; } + public global::Cohere.DeleteDatasetResponse12? Type541 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse? Type542 { get; set; } + public global::Cohere.DeleteDatasetResponse13? Type542 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse2? Type543 { get; set; } + public global::Cohere.SummarizeResponse? Type543 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse3? Type544 { get; set; } + public global::Cohere.SummarizeResponse2? Type544 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse4? Type545 { get; set; } + public global::Cohere.SummarizeResponse3? Type545 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse5? Type546 { get; set; } + public global::Cohere.SummarizeResponse4? Type546 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse6? Type547 { get; set; } + public global::Cohere.SummarizeResponse5? Type547 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse7? Type548 { get; set; } + public global::Cohere.SummarizeResponse6? Type548 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse8? Type549 { get; set; } + public global::Cohere.SummarizeResponse7? Type549 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse9? Type550 { get; set; } + public global::Cohere.SummarizeResponse8? Type550 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse10? Type551 { get; set; } + public global::Cohere.SummarizeResponse9? Type551 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse11? Type552 { get; set; } + public global::Cohere.SummarizeResponse10? Type552 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse12? Type553 { get; set; } + public global::Cohere.SummarizeResponse11? Type553 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse13? Type554 { get; set; } + public global::Cohere.SummarizeResponse12? Type554 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse? Type555 { get; set; } + public global::Cohere.SummarizeResponse13? Type555 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse2? Type556 { get; set; } + public global::Cohere.TokenizeResponse? Type556 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse3? Type557 { get; set; } + public global::Cohere.TokenizeResponse2? Type557 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse4? Type558 { get; set; } + public global::Cohere.TokenizeResponse3? Type558 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse5? Type559 { get; set; } + public global::Cohere.TokenizeResponse4? Type559 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse6? Type560 { get; set; } + public global::Cohere.TokenizeResponse5? Type560 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse7? Type561 { get; set; } + public global::Cohere.TokenizeResponse6? Type561 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse8? Type562 { get; set; } + public global::Cohere.TokenizeResponse7? Type562 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse9? Type563 { get; set; } + public global::Cohere.TokenizeResponse8? Type563 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse10? Type564 { get; set; } + public global::Cohere.TokenizeResponse9? Type564 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse11? Type565 { get; set; } + public global::Cohere.TokenizeResponse10? Type565 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse12? Type566 { get; set; } + public global::Cohere.TokenizeResponse11? Type566 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse13? Type567 { get; set; } + public global::Cohere.TokenizeResponse12? Type567 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse? Type568 { get; set; } + public global::Cohere.TokenizeResponse13? Type568 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse2? Type569 { get; set; } + public global::Cohere.DetokenizeResponse? Type569 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse3? Type570 { get; set; } + public global::Cohere.DetokenizeResponse2? Type570 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse4? Type571 { get; set; } + public global::Cohere.DetokenizeResponse3? Type571 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse5? Type572 { get; set; } + public global::Cohere.DetokenizeResponse4? Type572 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse6? Type573 { get; set; } + public global::Cohere.DetokenizeResponse5? Type573 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse7? Type574 { get; set; } + public global::Cohere.DetokenizeResponse6? Type574 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse8? Type575 { get; set; } + public global::Cohere.DetokenizeResponse7? Type575 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse9? Type576 { get; set; } + public global::Cohere.DetokenizeResponse8? Type576 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse10? Type577 { get; set; } + public global::Cohere.DetokenizeResponse9? Type577 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse11? Type578 { get; set; } + public global::Cohere.DetokenizeResponse10? Type578 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse12? Type579 { get; set; } + public global::Cohere.DetokenizeResponse11? Type579 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse13? Type580 { get; set; } + public global::Cohere.DetokenizeResponse12? Type580 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse2? Type581 { get; set; } + public global::Cohere.DetokenizeResponse13? Type581 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse3? Type582 { get; set; } + public global::Cohere.ListConnectorsResponse2? Type582 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse4? Type583 { get; set; } + public global::Cohere.ListConnectorsResponse3? Type583 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse5? Type584 { get; set; } + public global::Cohere.ListConnectorsResponse4? Type584 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse6? Type585 { get; set; } + public global::Cohere.ListConnectorsResponse5? Type585 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse7? Type586 { get; set; } + public global::Cohere.ListConnectorsResponse6? Type586 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse8? Type587 { get; set; } + public global::Cohere.ListConnectorsResponse7? Type587 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse9? Type588 { get; set; } + public global::Cohere.ListConnectorsResponse8? Type588 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse10? Type589 { get; set; } + public global::Cohere.ListConnectorsResponse9? Type589 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse11? Type590 { get; set; } + public global::Cohere.ListConnectorsResponse10? Type590 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse12? Type591 { get; set; } + public global::Cohere.ListConnectorsResponse11? Type591 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse13? Type592 { get; set; } + public global::Cohere.ListConnectorsResponse12? Type592 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse2? Type593 { get; set; } + public global::Cohere.ListConnectorsResponse13? Type593 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse3? Type594 { get; set; } + public global::Cohere.CreateConnectorResponse2? Type594 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse4? Type595 { get; set; } + public global::Cohere.CreateConnectorResponse3? Type595 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse5? Type596 { get; set; } + public global::Cohere.CreateConnectorResponse4? Type596 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse6? Type597 { get; set; } + public global::Cohere.CreateConnectorResponse5? Type597 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse7? Type598 { get; set; } + public global::Cohere.CreateConnectorResponse6? Type598 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse8? Type599 { get; set; } + public global::Cohere.CreateConnectorResponse7? Type599 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse9? Type600 { get; set; } + public global::Cohere.CreateConnectorResponse8? Type600 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse10? Type601 { get; set; } + public global::Cohere.CreateConnectorResponse9? Type601 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse11? Type602 { get; set; } + public global::Cohere.CreateConnectorResponse10? Type602 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse12? Type603 { get; set; } + public global::Cohere.CreateConnectorResponse11? Type603 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse13? Type604 { get; set; } + public global::Cohere.CreateConnectorResponse12? Type604 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse2? Type605 { get; set; } + public global::Cohere.CreateConnectorResponse13? Type605 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse3? Type606 { get; set; } + public global::Cohere.GetConnectorResponse2? Type606 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse4? Type607 { get; set; } + public global::Cohere.GetConnectorResponse3? Type607 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse5? Type608 { get; set; } + public global::Cohere.GetConnectorResponse4? Type608 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse6? Type609 { get; set; } + public global::Cohere.GetConnectorResponse5? Type609 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse7? Type610 { get; set; } + public global::Cohere.GetConnectorResponse6? Type610 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse8? Type611 { get; set; } + public global::Cohere.GetConnectorResponse7? Type611 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse9? Type612 { get; set; } + public global::Cohere.GetConnectorResponse8? Type612 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse10? Type613 { get; set; } + public global::Cohere.GetConnectorResponse9? Type613 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse11? Type614 { get; set; } + public global::Cohere.GetConnectorResponse10? Type614 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse12? Type615 { get; set; } + public global::Cohere.GetConnectorResponse11? Type615 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse13? Type616 { get; set; } + public global::Cohere.GetConnectorResponse12? Type616 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse2? Type617 { get; set; } + public global::Cohere.GetConnectorResponse13? Type617 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse3? Type618 { get; set; } + public global::Cohere.UpdateConnectorResponse2? Type618 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse4? Type619 { get; set; } + public global::Cohere.UpdateConnectorResponse3? Type619 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse5? Type620 { get; set; } + public global::Cohere.UpdateConnectorResponse4? Type620 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse6? Type621 { get; set; } + public global::Cohere.UpdateConnectorResponse5? Type621 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse7? Type622 { get; set; } + public global::Cohere.UpdateConnectorResponse6? Type622 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse8? Type623 { get; set; } + public global::Cohere.UpdateConnectorResponse7? Type623 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse9? Type624 { get; set; } + public global::Cohere.UpdateConnectorResponse8? Type624 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse10? Type625 { get; set; } + public global::Cohere.UpdateConnectorResponse9? Type625 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse11? Type626 { get; set; } + public global::Cohere.UpdateConnectorResponse10? Type626 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse12? Type627 { get; set; } + public global::Cohere.UpdateConnectorResponse11? Type627 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse13? Type628 { get; set; } + public global::Cohere.UpdateConnectorResponse12? Type628 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse2? Type629 { get; set; } + public global::Cohere.UpdateConnectorResponse13? Type629 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse3? Type630 { get; set; } + public global::Cohere.DeleteConnectorResponse2? Type630 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse4? Type631 { get; set; } + public global::Cohere.DeleteConnectorResponse3? Type631 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse5? Type632 { get; set; } + public global::Cohere.DeleteConnectorResponse4? Type632 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse6? Type633 { get; set; } + public global::Cohere.DeleteConnectorResponse5? Type633 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse7? Type634 { get; set; } + public global::Cohere.DeleteConnectorResponse6? Type634 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse8? Type635 { get; set; } + public global::Cohere.DeleteConnectorResponse7? Type635 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse9? Type636 { get; set; } + public global::Cohere.DeleteConnectorResponse8? Type636 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse10? Type637 { get; set; } + public global::Cohere.DeleteConnectorResponse9? Type637 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse11? Type638 { get; set; } + public global::Cohere.DeleteConnectorResponse10? Type638 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse12? Type639 { get; set; } + public global::Cohere.DeleteConnectorResponse11? Type639 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse13? Type640 { get; set; } + public global::Cohere.DeleteConnectorResponse12? Type640 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse? Type641 { get; set; } + public global::Cohere.DeleteConnectorResponse13? Type641 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse2? Type642 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse? Type642 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse3? Type643 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse2? Type643 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse4? Type644 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse3? Type644 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse5? Type645 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse4? Type645 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse6? Type646 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse5? Type646 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse7? Type647 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse6? Type647 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse8? Type648 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse7? Type648 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse9? Type649 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse8? Type649 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse10? Type650 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse9? Type650 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse11? Type651 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse10? Type651 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse12? Type652 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse11? Type652 { get; set; } /// /// /// - public global::Cohere.GetModelResponse2? Type653 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse12? Type653 { get; set; } /// /// /// - public global::Cohere.GetModelResponse3? Type654 { get; set; } + public global::Cohere.GetModelResponse2? Type654 { get; set; } /// /// /// - public global::Cohere.GetModelResponse4? Type655 { get; set; } + public global::Cohere.GetModelResponse3? Type655 { get; set; } /// /// /// - public global::Cohere.GetModelResponse5? Type656 { get; set; } + public global::Cohere.GetModelResponse4? Type656 { get; set; } /// /// /// - public global::Cohere.GetModelResponse6? Type657 { get; set; } + public global::Cohere.GetModelResponse5? Type657 { get; set; } /// /// /// - public global::Cohere.GetModelResponse7? Type658 { get; set; } + public global::Cohere.GetModelResponse6? Type658 { get; set; } /// /// /// - public global::Cohere.GetModelResponse8? Type659 { get; set; } + public global::Cohere.GetModelResponse7? Type659 { get; set; } /// /// /// - public global::Cohere.GetModelResponse9? Type660 { get; set; } + public global::Cohere.GetModelResponse8? Type660 { get; set; } /// /// /// - public global::Cohere.GetModelResponse10? Type661 { get; set; } + public global::Cohere.GetModelResponse9? Type661 { get; set; } /// /// /// - public global::Cohere.GetModelResponse11? Type662 { get; set; } + public global::Cohere.GetModelResponse10? Type662 { get; set; } /// /// /// - public global::Cohere.GetModelResponse12? Type663 { get; set; } + public global::Cohere.GetModelResponse11? Type663 { get; set; } /// /// /// - public global::Cohere.GetModelResponse13? Type664 { get; set; } + public global::Cohere.GetModelResponse12? Type664 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse2? Type665 { get; set; } + public global::Cohere.GetModelResponse13? Type665 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse3? Type666 { get; set; } + public global::Cohere.ListModelsResponse2? Type666 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse4? Type667 { get; set; } + public global::Cohere.ListModelsResponse3? Type667 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse5? Type668 { get; set; } + public global::Cohere.ListModelsResponse4? Type668 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse6? Type669 { get; set; } + public global::Cohere.ListModelsResponse5? Type669 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse7? Type670 { get; set; } + public global::Cohere.ListModelsResponse6? Type670 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse8? Type671 { get; set; } + public global::Cohere.ListModelsResponse7? Type671 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse9? Type672 { get; set; } + public global::Cohere.ListModelsResponse8? Type672 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse10? Type673 { get; set; } + public global::Cohere.ListModelsResponse9? Type673 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse11? Type674 { get; set; } + public global::Cohere.ListModelsResponse10? Type674 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse12? Type675 { get; set; } + public global::Cohere.ListModelsResponse11? Type675 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse13? Type676 { get; set; } + public global::Cohere.ListModelsResponse12? Type676 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse? Type677 { get; set; } + public global::Cohere.ListModelsResponse13? Type677 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse2? Type678 { get; set; } + public global::Cohere.CheckAPIKeyResponse? Type678 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse3? Type679 { get; set; } + public global::Cohere.CheckAPIKeyResponse2? Type679 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse4? Type680 { get; set; } + public global::Cohere.CheckAPIKeyResponse3? Type680 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse5? Type681 { get; set; } + public global::Cohere.CheckAPIKeyResponse4? Type681 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse6? Type682 { get; set; } + public global::Cohere.CheckAPIKeyResponse5? Type682 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse7? Type683 { get; set; } + public global::Cohere.CheckAPIKeyResponse6? Type683 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse8? Type684 { get; set; } + public global::Cohere.CheckAPIKeyResponse7? Type684 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse9? Type685 { get; set; } + public global::Cohere.CheckAPIKeyResponse8? Type685 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse10? Type686 { get; set; } + public global::Cohere.CheckAPIKeyResponse9? Type686 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse11? Type687 { get; set; } + public global::Cohere.CheckAPIKeyResponse10? Type687 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse12? Type688 { get; set; } + public global::Cohere.CheckAPIKeyResponse11? Type688 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse13? Type689 { get; set; } + public global::Cohere.CheckAPIKeyResponse12? Type689 { get; set; } + /// + /// + /// + public global::Cohere.CheckAPIKeyResponse13? Type690 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Cohere/openapi.yaml b/src/libs/Cohere/openapi.yaml index 49e0705..d4c3aa1 100644 --- a/src/libs/Cohere/openapi.yaml +++ b/src/libs/Cohere/openapi.yaml @@ -372,7 +372,7 @@ paths: code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const response = await cohere.chat({\n chatHistory: [\n { role: 'USER', message: 'Who discovered gravity?' },\n {\n role: 'CHATBOT',\n message: 'The man who is widely credited with discovering gravity is Sir Isaac Newton',\n },\n ],\n message: 'What year was he born?',\n // perform web search before answering the question. You can also use your own custom connector.\n connectors: [{ id: 'web-search' }],\n });\n\n console.log(response);\n})();\n" - sdk: java name: Default - code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatRequest;\nimport com.cohere.api.types.ChatMessage;\nimport com.cohere.api.types.Message;\nimport com.cohere.api.types.NonStreamedChatResponse;\nimport java.util.List;\n\npublic class Default {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n NonStreamedChatResponse response =\n cohere.chat(\n ChatRequest.builder()\n .message(\"What year was he born?\")\n .chatHistory(\n List.of(\n Message.user(\n ChatMessage.builder()\n .message(\"Who discovered gravity?\")\n .build()),\n Message.chatbot(\n ChatMessage.builder()\n .message(\n \"The man who is widely\"\n + \" credited with\"\n + \" discovering gravity\"\n + \" is Sir Isaac\"\n + \" Newton\")\n .build())))\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatRequest;\nimport com.cohere.api.types.ChatMessage;\nimport com.cohere.api.types.Message;\nimport com.cohere.api.types.NonStreamedChatResponse;\nimport java.util.List;\n\npublic class Default {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n NonStreamedChatResponse response =\n cohere.chat(\n ChatRequest.builder()\n .message(\"What year was he born?\")\n .chatHistory(\n List.of(\n Message.user(\n ChatMessage.builder().message(\"Who discovered gravity?\").build()),\n Message.chatbot(\n ChatMessage.builder()\n .message(\n \"The man who is widely\"\n + \" credited with\"\n + \" discovering gravity\"\n + \" is Sir Isaac\"\n + \" Newton\")\n .build())))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: python name: Sync code: "import cohere\n\nco = cohere.Client(\"<>\")\n\nresponse = co.chat(\n chat_history=[\n {\"role\": \"USER\", \"message\": \"Who discovered gravity?\"},\n {\n \"role\": \"CHATBOT\",\n \"message\": \"The man who is widely credited with discovering gravity is Sir Isaac Newton\",\n },\n ],\n message=\"What year was he born?\",\n # perform web search before answering the question. You can also use your own custom connector.\n connectors=[{\"id\": \"web-search\"}],\n)\n\nprint(response)\n" @@ -507,7 +507,7 @@ paths: code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const response = await cohere.chat({\n message: 'Who is more popular: Nsync or Backstreet Boys?',\n documents: [\n {\n title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters',\n snippet:\n '↓ Skip to Main Content\\n\\nMusic industry – One step closer to being accurate\\n\\nCSPC: Backstreet Boys Popularity Analysis\\n\\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\\n\\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\\n\\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak.',\n },\n {\n title: 'CSPC: NSYNC Popularity Analysis - ChartMasters',\n snippet:\n \"↓ Skip to Main Content\\n\\nMusic industry – One step closer to being accurate\\n\\nCSPC: NSYNC Popularity Analysis\\n\\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\\n\\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\\n\\nIt wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold.\",\n },\n {\n title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters',\n snippet:\n ' 1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\\n\\nYet the way many music consumers – especially teenagers and young women’s – embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\\n\\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers.',\n },\n {\n title: 'CSPC: NSYNC Popularity Analysis - ChartMasters',\n snippet:\n ' Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?\\n\\nAs usual, I’ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC‘s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures.',\n },\n ],\n });\n\n console.log(response);\n})();\n" - sdk: java name: Documents - code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatRequest;\nimport com.cohere.api.types.NonStreamedChatResponse;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Documents {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n NonStreamedChatResponse response =\n cohere.chat(\n ChatRequest.builder()\n .message(\"What year was he born?\")\n .documents(\n List.of(\n Map.of(\n \"title\",\n \"CSPC: Backstreet Boys Popularity\"\n + \" Analysis - ChartMasters\",\n \"snippet\",\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: Backstreet Boys\"\n + \" Popularity Analysis\\n\\n\"\n + \"Hernán Lopez Posted on\"\n + \" February 9, 2017 Posted in\"\n + \" CSPC 72 Comments Tagged\"\n + \" with Backstreet Boys, Boy\"\n + \" band\\n\\n\"\n + \"At one point, Backstreet\"\n + \" Boys defined success:\"\n + \" massive albums sales across\"\n + \" the globe, great singles\"\n + \" sales, plenty of chart\"\n + \" topping releases, hugely\"\n + \" hyped tours and tremendous\"\n + \" media coverage.\\n\\n\"\n + \"It is true that they\"\n + \" benefited from\"\n + \" extraordinarily good market\"\n + \" conditions in all markets.\"\n + \" After all, the all-time\"\n + \" record year for the music\"\n + \" business, as far as\"\n + \" revenues in billion dollars\"\n + \" are concerned, was actually\"\n + \" 1999. That is, back when\"\n + \" this five men group was at\"\n + \" its peak.\"),\n Map.of(\n \"title\",\n \"CSPC: NSYNC Popularity Analysis -\"\n + \" ChartMasters\",\n \"snippet\",\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: NSYNC Popularity\"\n + \" Analysis\\n\\n\"\n + \"MJD Posted on February 9,\"\n + \" 2018 Posted in CSPC 27\"\n + \" Comments Tagged with Boy\"\n + \" band, N'Sync\\n\\n\"\n + \"At the turn of the\"\n + \" millennium three teen acts\"\n + \" were huge in the US, the\"\n + \" Backstreet Boys, Britney\"\n + \" Spears and NSYNC. The\"\n + \" latter is the only one we\"\n + \" haven’t study so far. It\"\n + \" took 15 years and Adele to\"\n + \" break their record of 2,4\"\n + \" million units sold of No\"\n + \" Strings Attached in its\"\n + \" first week alone.\\n\\n\"\n + \"It wasn’t a fluke, as the\"\n + \" second fastest selling\"\n + \" album of the Soundscan era\"\n + \" prior 2015, was also theirs\"\n + \" since Celebrity debuted\"\n + \" with 1,88 million units\"\n + \" sold.\"),\n Map.of(\n \"title\",\n \"CSPC: Backstreet Boys Popularity\"\n + \" Analysis - ChartMasters\",\n \"snippet\",\n \" 1997, 1998, 2000 and 2001 also\"\n + \" rank amongst some of the\"\n + \" very best years.\\n\\n\"\n + \"Yet the way many music\"\n + \" consumers – especially\"\n + \" teenagers and young women’s\"\n + \" – embraced their output\"\n + \" deserves its own chapter.\"\n + \" If Jonas Brothers and more\"\n + \" recently One Direction\"\n + \" reached a great level of\"\n + \" popularity during the past\"\n + \" decade, the type of success\"\n + \" achieved by Backstreet Boys\"\n + \" is in a completely\"\n + \" different level as they\"\n + \" really dominated the\"\n + \" business for a few years\"\n + \" all over the world,\"\n + \" including in some countries\"\n + \" that were traditionally\"\n + \" hard to penetrate for\"\n + \" Western artists.\\n\\n\"\n + \"We will try to analyze the\"\n + \" extent of that hegemony\"\n + \" with this new article with\"\n + \" final results which will\"\n + \" more than surprise many\"\n + \" readers.\"),\n Map.of(\n \"title\",\n \"CSPC: NSYNC Popularity Analysis -\"\n + \" ChartMasters\",\n \"snippet\",\n \" Was the teen group led by Justin\"\n + \" Timberlake really that big? Was it\"\n + \" only in the US where they found\"\n + \" success? Or were they a global\"\n + \" phenomenon?\\n\\n\"\n + \"As usual, I’ll be using the\"\n + \" Commensurate Sales to Popularity\"\n + \" Concept in order to relevantly\"\n + \" gauge their results. This concept\"\n + \" will not only bring you sales\"\n + \" information for all NSYNC‘s albums,\"\n + \" physical and download singles, as\"\n + \" well as audio and video streaming,\"\n + \" but it will also determine their\"\n + \" true popularity. If you are not yet\"\n + \" familiar with the CSPC method, the\"\n + \" next page explains it with a short\"\n + \" video. I fully recommend watching\"\n + \" the video before getting into the\"\n + \" sales figures.\")))\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatRequest;\nimport com.cohere.api.types.NonStreamedChatResponse;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Documents {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n NonStreamedChatResponse response =\n cohere.chat(\n ChatRequest.builder()\n .message(\"What year was he born?\")\n .documents(\n List.of(\n Map.of(\n \"title\",\n \"CSPC: Backstreet Boys Popularity\" + \" Analysis - ChartMasters\",\n \"snippet\",\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: Backstreet Boys\"\n + \" Popularity Analysis\\n\\n\"\n + \"Hernán Lopez Posted on\"\n + \" February 9, 2017 Posted in\"\n + \" CSPC 72 Comments Tagged\"\n + \" with Backstreet Boys, Boy\"\n + \" band\\n\\n\"\n + \"At one point, Backstreet\"\n + \" Boys defined success:\"\n + \" massive albums sales across\"\n + \" the globe, great singles\"\n + \" sales, plenty of chart\"\n + \" topping releases, hugely\"\n + \" hyped tours and tremendous\"\n + \" media coverage.\\n\\n\"\n + \"It is true that they\"\n + \" benefited from\"\n + \" extraordinarily good market\"\n + \" conditions in all markets.\"\n + \" After all, the all-time\"\n + \" record year for the music\"\n + \" business, as far as\"\n + \" revenues in billion dollars\"\n + \" are concerned, was actually\"\n + \" 1999. That is, back when\"\n + \" this five men group was at\"\n + \" its peak.\"),\n Map.of(\n \"title\", \"CSPC: NSYNC Popularity Analysis -\" + \" ChartMasters\",\n \"snippet\",\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: NSYNC Popularity\"\n + \" Analysis\\n\\n\"\n + \"MJD Posted on February 9,\"\n + \" 2018 Posted in CSPC 27\"\n + \" Comments Tagged with Boy\"\n + \" band, N'Sync\\n\\n\"\n + \"At the turn of the\"\n + \" millennium three teen acts\"\n + \" were huge in the US, the\"\n + \" Backstreet Boys, Britney\"\n + \" Spears and NSYNC. The\"\n + \" latter is the only one we\"\n + \" haven’t study so far. It\"\n + \" took 15 years and Adele to\"\n + \" break their record of 2,4\"\n + \" million units sold of No\"\n + \" Strings Attached in its\"\n + \" first week alone.\\n\\n\"\n + \"It wasn’t a fluke, as the\"\n + \" second fastest selling\"\n + \" album of the Soundscan era\"\n + \" prior 2015, was also theirs\"\n + \" since Celebrity debuted\"\n + \" with 1,88 million units\"\n + \" sold.\"),\n Map.of(\n \"title\",\n \"CSPC: Backstreet Boys Popularity\" + \" Analysis - ChartMasters\",\n \"snippet\",\n \" 1997, 1998, 2000 and 2001 also\"\n + \" rank amongst some of the\"\n + \" very best years.\\n\\n\"\n + \"Yet the way many music\"\n + \" consumers – especially\"\n + \" teenagers and young women’s\"\n + \" – embraced their output\"\n + \" deserves its own chapter.\"\n + \" If Jonas Brothers and more\"\n + \" recently One Direction\"\n + \" reached a great level of\"\n + \" popularity during the past\"\n + \" decade, the type of success\"\n + \" achieved by Backstreet Boys\"\n + \" is in a completely\"\n + \" different level as they\"\n + \" really dominated the\"\n + \" business for a few years\"\n + \" all over the world,\"\n + \" including in some countries\"\n + \" that were traditionally\"\n + \" hard to penetrate for\"\n + \" Western artists.\\n\\n\"\n + \"We will try to analyze the\"\n + \" extent of that hegemony\"\n + \" with this new article with\"\n + \" final results which will\"\n + \" more than surprise many\"\n + \" readers.\"),\n Map.of(\n \"title\",\n \"CSPC: NSYNC Popularity Analysis -\" + \" ChartMasters\",\n \"snippet\",\n \" Was the teen group led by Justin\"\n + \" Timberlake really that big? Was it\"\n + \" only in the US where they found\"\n + \" success? Or were they a global\"\n + \" phenomenon?\\n\\n\"\n + \"As usual, I’ll be using the\"\n + \" Commensurate Sales to Popularity\"\n + \" Concept in order to relevantly\"\n + \" gauge their results. This concept\"\n + \" will not only bring you sales\"\n + \" information for all NSYNC‘s albums,\"\n + \" physical and download singles, as\"\n + \" well as audio and video streaming,\"\n + \" but it will also determine their\"\n + \" true popularity. If you are not yet\"\n + \" familiar with the CSPC method, the\"\n + \" next page explains it with a short\"\n + \" video. I fully recommend watching\"\n + \" the video before getting into the\"\n + \" sales figures.\")))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: python name: Documents code: "import cohere\n\nco = cohere.Client(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n message=\"Who is more popular: Nsync or Backstreet Boys?\",\n documents=[\n {\n \"title\": \"CSPC: Backstreet Boys Popularity Analysis - ChartMasters\",\n \"snippet\": \"↓ Skip to Main Content\\n\\nMusic industry – One step closer to being accurate\\n\\nCSPC: Backstreet Boys Popularity Analysis\\n\\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\\n\\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\\n\\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak.\"\n },\n {\n \"title\": \"CSPC: NSYNC Popularity Analysis - ChartMasters\",\n \"snippet\": \"↓ Skip to Main Content\\n\\nMusic industry – One step closer to being accurate\\n\\nCSPC: NSYNC Popularity Analysis\\n\\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\\n\\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\\n\\nIt wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold.\"\n },\n {\n \"title\": \"CSPC: Backstreet Boys Popularity Analysis - ChartMasters\",\n \"snippet\": \" 1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\\n\\nYet the way many music consumers – especially teenagers and young women’s – embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\\n\\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers.\"\n },\n {\n \"title\": \"CSPC: NSYNC Popularity Analysis - ChartMasters\",\n \"snippet\": \" Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?\\n\\nAs usual, I’ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC‘s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures.\"\n }\n ])\n\nprint(response)\n" @@ -615,7 +615,7 @@ paths: code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const chatStream = await cohere.chatStream({\n chatHistory: [\n { role: 'USER', message: 'Who discovered gravity?' },\n {\n role: 'CHATBOT',\n message: 'The man who is widely credited with discovering gravity is Sir Isaac Newton',\n },\n ],\n message: 'What year was he born?',\n // perform web search before answering the question. You can also use your own custom connector.\n connectors: [{ id: 'web-search' }],\n });\n\n for await (const message of chatStream) {\n if (message.eventType === 'text-generation') {\n process.stdout.write(message);\n }\n }\n})();\n" - sdk: java name: Streaming - code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatStreamRequest;\nimport com.cohere.api.types.ChatMessage;\nimport com.cohere.api.types.ChatTextGenerationEvent;\nimport com.cohere.api.types.Message;\nimport com.cohere.api.types.StreamedChatResponse;\nimport java.util.List;\n\npublic class Stream {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n Iterable response =\n cohere.chatStream(\n ChatStreamRequest.builder()\n .message(\"What year was he born?\")\n .chatHistory(\n List.of(\n Message.user(\n ChatMessage.builder()\n .message(\"Who discovered gravity?\")\n .build()),\n Message.chatbot(\n ChatMessage.builder()\n .message(\n \"The man who is widely\"\n + \" credited with\"\n + \" discovering gravity\"\n + \" is Sir Isaac\"\n + \" Newton\")\n .build())))\n .build());\n\n for (StreamedChatResponse chatResponse : response) {\n if (chatResponse.isTextGeneration()) {\n System.out.println(\n chatResponse\n .getTextGeneration()\n .map(ChatTextGenerationEvent::getText)\n .orElse(\"\"));\n }\n }\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatStreamRequest;\nimport com.cohere.api.types.ChatMessage;\nimport com.cohere.api.types.ChatTextGenerationEvent;\nimport com.cohere.api.types.Message;\nimport com.cohere.api.types.StreamedChatResponse;\nimport java.util.List;\n\npublic class Stream {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n Iterable response =\n cohere.chatStream(\n ChatStreamRequest.builder()\n .message(\"What year was he born?\")\n .chatHistory(\n List.of(\n Message.user(\n ChatMessage.builder().message(\"Who discovered gravity?\").build()),\n Message.chatbot(\n ChatMessage.builder()\n .message(\n \"The man who is widely\"\n + \" credited with\"\n + \" discovering gravity\"\n + \" is Sir Isaac\"\n + \" Newton\")\n .build())))\n .build());\n\n for (StreamedChatResponse chatResponse : response) {\n if (chatResponse.isTextGeneration()) {\n System.out.println(\n chatResponse.getTextGeneration().map(ChatTextGenerationEvent::getText).orElse(\"\"));\n }\n }\n\n System.out.println(response);\n }\n}\n" - sdk: python name: Streaming code: "import cohere\n\nco = cohere.Client(\"<>\")\n\nresponse = co.chat_stream(\n chat_history=[\n {\"role\": \"USER\", \"message\": \"Who discovered gravity?\"},\n {\n \"role\": \"CHATBOT\",\n \"message\": \"The man who is widely credited with discovering gravity is Sir Isaac Newton\",\n },\n ],\n message=\"What year was he born?\",\n # perform web search before answering the question. You can also use your own custom connector.\n connectors=[{\"id\": \"web-search\"}],\n)\n\nfor event in response:\n if event.event_type == \"text-generation\":\n print(event.text, end='')\n" @@ -676,7 +676,7 @@ paths: code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const response = await cohere.chat({\n message:\n \"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\",\n tools: [\n {\n name: 'query_daily_sales_report',\n description:\n 'Connects to a database to retrieve overall sales volumes and sales information for a given day.',\n parameterDefinitions: {\n day: {\n description: 'Retrieves sales data for this day, formatted as YYYY-MM-DD.',\n type: 'str',\n required: true,\n },\n },\n },\n {\n name: 'query_product_catalog',\n description:\n 'Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.',\n parameterDefinitions: {\n category: {\n description: 'Retrieves product information data for all products in this category.',\n type: 'str',\n required: true,\n },\n },\n },\n ],\n });\n\n console.log(response);\n})();\n" - sdk: java name: Tools - code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatRequest;\nimport com.cohere.api.types.NonStreamedChatResponse;\nimport com.cohere.api.types.Tool;\nimport com.cohere.api.types.ToolParameterDefinitionsValue;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Tools {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n NonStreamedChatResponse response =\n cohere.chat(\n ChatRequest.builder()\n .message(\n \"Can you provide a sales summary for 29th September 2023,\"\n + \" and also give me some details about the products in\"\n + \" the 'Electronics' category, for example their\"\n + \" prices and stock levels?\")\n .tools(\n List.of(\n Tool.builder()\n .name(\"query_daily_sales_report\")\n .description(\n \"Connects to a database to retrieve\"\n + \" overall sales volumes and\"\n + \" sales information for a\"\n + \" given day.\")\n .parameterDefinitions(\n Map.of(\n \"day\",\n ToolParameterDefinitionsValue\n .builder()\n .type(\"str\")\n .description(\n \"Retrieves\"\n + \" sales\"\n + \" data\"\n + \" for this\"\n + \" day,\"\n + \" formatted\"\n + \" as YYYY-MM-DD.\")\n .required(true)\n .build()))\n .build(),\n Tool.builder()\n .name(\"query_product_catalog\")\n .description(\n \"Connects to a a product catalog\"\n + \" with information about all\"\n + \" the products being sold,\"\n + \" including categories,\"\n + \" prices, and stock levels.\")\n .parameterDefinitions(\n Map.of(\n \"category\",\n ToolParameterDefinitionsValue\n .builder()\n .type(\"str\")\n .description(\n \"Retrieves\"\n + \" product\"\n + \" information\"\n + \" data\"\n + \" for all\"\n + \" products\"\n + \" in this\"\n + \" category.\")\n .required(true)\n .build()))\n .build()))\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatpost;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ChatRequest;\nimport com.cohere.api.types.NonStreamedChatResponse;\nimport com.cohere.api.types.Tool;\nimport com.cohere.api.types.ToolParameterDefinitionsValue;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Tools {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n NonStreamedChatResponse response =\n cohere.chat(\n ChatRequest.builder()\n .message(\n \"Can you provide a sales summary for 29th September 2023,\"\n + \" and also give me some details about the products in\"\n + \" the 'Electronics' category, for example their\"\n + \" prices and stock levels?\")\n .tools(\n List.of(\n Tool.builder()\n .name(\"query_daily_sales_report\")\n .description(\n \"Connects to a database to retrieve\"\n + \" overall sales volumes and\"\n + \" sales information for a\"\n + \" given day.\")\n .parameterDefinitions(\n Map.of(\n \"day\",\n ToolParameterDefinitionsValue.builder()\n .type(\"str\")\n .description(\n \"Retrieves\"\n + \" sales\"\n + \" data\"\n + \" for this\"\n + \" day,\"\n + \" formatted\"\n + \" as YYYY-MM-DD.\")\n .required(true)\n .build()))\n .build(),\n Tool.builder()\n .name(\"query_product_catalog\")\n .description(\n \"Connects to a a product catalog\"\n + \" with information about all\"\n + \" the products being sold,\"\n + \" including categories,\"\n + \" prices, and stock levels.\")\n .parameterDefinitions(\n Map.of(\n \"category\",\n ToolParameterDefinitionsValue.builder()\n .type(\"str\")\n .description(\n \"Retrieves\"\n + \" product\"\n + \" information\"\n + \" data\"\n + \" for all\"\n + \" products\"\n + \" in this\"\n + \" category.\")\n .required(true)\n .build()))\n .build()))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: python name: Tools code: "import cohere\n\nco = cohere.Client(\"<>\")\n\n# tool descriptions that the model has access to\ntools = [\n {\n \"name\": \"query_daily_sales_report\",\n \"description\": \"Connects to a database to retrieve overall sales volumes and sales information for a given day.\",\n \"parameter_definitions\": {\n \"day\": {\n \"description\": \"Retrieves sales data for this day, formatted as YYYY-MM-DD.\",\n \"type\": \"str\",\n \"required\": True\n }\n }\n },\n {\n \"name\": \"query_product_catalog\",\n \"description\": \"Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.\",\n \"parameter_definitions\": {\n \"category\": {\n \"description\": \"Retrieves product information data for all products in this category.\",\n \"type\": \"str\",\n \"required\": True\n }\n }\n }\n]\n\n\n# user request\nmessage = \"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\"\n\nresponse = co.chat(\n message=message,\n tools=tools,\n)\n\nprint(response)\n" @@ -898,7 +898,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClientV2(\"<>\")\n\n\nasync def main():\n response = await co.chat(\n model=\"command-r-plus\",\n messages=[\n cohere.v2.ChatMessage2_User(\n content=\"hello world!\"\n )\n ]\n )\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Default - code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatRequest;\nimport com.cohere.api.types.*;\nimport java.util.List;\n\npublic class Default {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ChatResponse response =\n cohere.v2()\n .chat(\n V2ChatRequest.builder()\n .model(\"command-r-plus\")\n .messages(\n List.of(\n ChatMessageV2.user(\n UserMessage.builder()\n .content(\n UserMessageContent\n .of(\n \"Who discovered\"\n + \" gravity?\"))\n .build()),\n ChatMessageV2.assistant(\n AssistantMessage.builder()\n .content(\n AssistantMessageContent\n .of(\n \"The man\"\n + \" who is\"\n + \" widely\"\n + \" credited\"\n + \" with\"\n + \" discovering\"\n + \" gravity\"\n + \" is Sir\"\n + \" Isaac\"\n + \" Newton\"))\n .build())))\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatRequest;\nimport com.cohere.api.types.*;\nimport java.util.List;\n\npublic class Default {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ChatResponse response =\n cohere\n .v2()\n .chat(\n V2ChatRequest.builder()\n .model(\"command-r-plus\")\n .messages(\n List.of(\n ChatMessageV2.user(\n UserMessage.builder()\n .content(UserMessageContent.of(\"Who discovered\" + \" gravity?\"))\n .build()),\n ChatMessageV2.assistant(\n AssistantMessage.builder()\n .content(\n AssistantMessageContent.of(\n \"The man\"\n + \" who is\"\n + \" widely\"\n + \" credited\"\n + \" with\"\n + \" discovering\"\n + \" gravity\"\n + \" is Sir\"\n + \" Isaac\"\n + \" Newton\"))\n .build())))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: Default code: "curl --request POST \\\n --url https://api.cohere.com/v1/chat \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"command-r-plus\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"message\": \"Hello world!\"\n }\n ],\n }'" @@ -933,7 +933,7 @@ paths: code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n documents=[{'id': '1', 'data': {'text': 'Cohere is the best!', 'title': 'The best'}}],\n messages=[\n {\n \"role\": \"user\",\n \"content\": \"Who's the best?\"\n }\n ]\n)\n\nprint(response)\n" - sdk: java name: Documents - code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatRequest;\nimport com.cohere.api.resources.v2.types.V2ChatRequestDocumentsItem;\nimport com.cohere.api.types.*;\nimport java.util.List;\n\npublic class Documents {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ChatResponse response =\n cohere.v2()\n .chat(\n V2ChatRequest.builder()\n .model(\"command-r-plus\")\n .messages(\n List.of(\n ChatMessageV2.user(\n UserMessage.builder()\n .content(\n UserMessageContent\n .of(\n \"Who is\"\n + \" the most\"\n + \" popular?\"))\n .build())))\n .documents(\n List.of(\n V2ChatRequestDocumentsItem.of(\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: Backstreet Boys\"\n + \" Popularity Analysis\\n\\n\"\n + \"Hernán Lopez Posted on\"\n + \" February 9, 2017 Posted in\"\n + \" CSPC 72 Comments Tagged\"\n + \" with Backstreet Boys, Boy\"\n + \" band\\n\\n\"\n + \"At one point, Backstreet\"\n + \" Boys defined success:\"\n + \" massive albums sales across\"\n + \" the globe, great singles\"\n + \" sales, plenty of chart\"\n + \" topping releases, hugely\"\n + \" hyped tours and tremendous\"\n + \" media coverage.\\n\\n\"\n + \"It is true that they\"\n + \" benefited from\"\n + \" extraordinarily good market\"\n + \" conditions in all markets.\"\n + \" After all, the all-time\"\n + \" record year for the music\"\n + \" business, as far as\"\n + \" revenues in billion dollars\"\n + \" are concerned, was actually\"\n + \" 1999. That is, back when\"\n + \" this five men group was at\"\n + \" its peak.\"),\n V2ChatRequestDocumentsItem.of(\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: NSYNC Popularity\"\n + \" Analysis\\n\\n\"\n + \"MJD Posted on February 9,\"\n + \" 2018 Posted in CSPC 27\"\n + \" Comments Tagged with Boy\"\n + \" band, N'Sync\\n\\n\"\n + \"At the turn of the\"\n + \" millennium three teen acts\"\n + \" were huge in the US, the\"\n + \" Backstreet Boys, Britney\"\n + \" Spears and NSYNC. The\"\n + \" latter is the only one we\"\n + \" haven’t study so far. It\"\n + \" took 15 years and Adele to\"\n + \" break their record of 2,4\"\n + \" million units sold of No\"\n + \" Strings Attached in its\"\n + \" first week alone.\\n\\n\"\n + \"It wasn’t a fluke, as the\"\n + \" second fastest selling\"\n + \" album of the Soundscan era\"\n + \" prior 2015, was also theirs\"\n + \" since Celebrity debuted\"\n + \" with 1,88 million units\"\n + \" sold.\"),\n V2ChatRequestDocumentsItem.of(\n \" 1997, 1998, 2000 and 2001 also\"\n + \" rank amongst some of the\"\n + \" very best years.\\n\\n\"\n + \"Yet the way many music\"\n + \" consumers – especially\"\n + \" teenagers and young women’s\"\n + \" – embraced their output\"\n + \" deserves its own chapter.\"\n + \" If Jonas Brothers and more\"\n + \" recently One Direction\"\n + \" reached a great level of\"\n + \" popularity during the past\"\n + \" decade, the type of success\"\n + \" achieved by Backstreet Boys\"\n + \" is in a completely\"\n + \" different level as they\"\n + \" really dominated the\"\n + \" business for a few years\"\n + \" all over the world,\"\n + \" including in some countries\"\n + \" that were traditionally\"\n + \" hard to penetrate for\"\n + \" Western artists.\\n\\n\"\n + \"We will try to analyze the\"\n + \" extent of that hegemony\"\n + \" with this new article with\"\n + \" final results which will\"\n + \" more than surprise many\"\n + \" readers.\"),\n V2ChatRequestDocumentsItem.of(\n \" Was the teen group led by Justin\"\n + \" Timberlake really that big?\"\n + \" Was it only in the US where\"\n + \" they found success? Or were\"\n + \" they a global\"\n + \" phenomenon?\\n\\n\"\n + \"As usual, I’ll be using the\"\n + \" Commensurate Sales to\"\n + \" Popularity Concept in order\"\n + \" to relevantly gauge their\"\n + \" results. This concept will\"\n + \" not only bring you sales\"\n + \" information for all NSYNC‘s\"\n + \" albums, physical and\"\n + \" download singles, as well\"\n + \" as audio and video\"\n + \" streaming, but it will also\"\n + \" determine their true\"\n + \" popularity. If you are not\"\n + \" yet familiar with the CSPC\"\n + \" method, the next page\"\n + \" explains it with a short\"\n + \" video. I fully recommend\"\n + \" watching the video before\"\n + \" getting into the sales\"\n + \" figures.\")))\n .build());\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatRequest;\nimport com.cohere.api.resources.v2.types.V2ChatRequestDocumentsItem;\nimport com.cohere.api.types.*;\nimport java.util.List;\n\npublic class Documents {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ChatResponse response =\n cohere\n .v2()\n .chat(\n V2ChatRequest.builder()\n .model(\"command-r-plus\")\n .messages(\n List.of(\n ChatMessageV2.user(\n UserMessage.builder()\n .content(\n UserMessageContent.of(\"Who is\" + \" the most\" + \" popular?\"))\n .build())))\n .documents(\n List.of(\n V2ChatRequestDocumentsItem.of(\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: Backstreet Boys\"\n + \" Popularity Analysis\\n\\n\"\n + \"Hernán Lopez Posted on\"\n + \" February 9, 2017 Posted in\"\n + \" CSPC 72 Comments Tagged\"\n + \" with Backstreet Boys, Boy\"\n + \" band\\n\\n\"\n + \"At one point, Backstreet\"\n + \" Boys defined success:\"\n + \" massive albums sales across\"\n + \" the globe, great singles\"\n + \" sales, plenty of chart\"\n + \" topping releases, hugely\"\n + \" hyped tours and tremendous\"\n + \" media coverage.\\n\\n\"\n + \"It is true that they\"\n + \" benefited from\"\n + \" extraordinarily good market\"\n + \" conditions in all markets.\"\n + \" After all, the all-time\"\n + \" record year for the music\"\n + \" business, as far as\"\n + \" revenues in billion dollars\"\n + \" are concerned, was actually\"\n + \" 1999. That is, back when\"\n + \" this five men group was at\"\n + \" its peak.\"),\n V2ChatRequestDocumentsItem.of(\n \"↓ Skip to Main Content\\n\\n\"\n + \"Music industry – One step\"\n + \" closer to being\"\n + \" accurate\\n\\n\"\n + \"CSPC: NSYNC Popularity\"\n + \" Analysis\\n\\n\"\n + \"MJD Posted on February 9,\"\n + \" 2018 Posted in CSPC 27\"\n + \" Comments Tagged with Boy\"\n + \" band, N'Sync\\n\\n\"\n + \"At the turn of the\"\n + \" millennium three teen acts\"\n + \" were huge in the US, the\"\n + \" Backstreet Boys, Britney\"\n + \" Spears and NSYNC. The\"\n + \" latter is the only one we\"\n + \" haven’t study so far. It\"\n + \" took 15 years and Adele to\"\n + \" break their record of 2,4\"\n + \" million units sold of No\"\n + \" Strings Attached in its\"\n + \" first week alone.\\n\\n\"\n + \"It wasn’t a fluke, as the\"\n + \" second fastest selling\"\n + \" album of the Soundscan era\"\n + \" prior 2015, was also theirs\"\n + \" since Celebrity debuted\"\n + \" with 1,88 million units\"\n + \" sold.\"),\n V2ChatRequestDocumentsItem.of(\n \" 1997, 1998, 2000 and 2001 also\"\n + \" rank amongst some of the\"\n + \" very best years.\\n\\n\"\n + \"Yet the way many music\"\n + \" consumers – especially\"\n + \" teenagers and young women’s\"\n + \" – embraced their output\"\n + \" deserves its own chapter.\"\n + \" If Jonas Brothers and more\"\n + \" recently One Direction\"\n + \" reached a great level of\"\n + \" popularity during the past\"\n + \" decade, the type of success\"\n + \" achieved by Backstreet Boys\"\n + \" is in a completely\"\n + \" different level as they\"\n + \" really dominated the\"\n + \" business for a few years\"\n + \" all over the world,\"\n + \" including in some countries\"\n + \" that were traditionally\"\n + \" hard to penetrate for\"\n + \" Western artists.\\n\\n\"\n + \"We will try to analyze the\"\n + \" extent of that hegemony\"\n + \" with this new article with\"\n + \" final results which will\"\n + \" more than surprise many\"\n + \" readers.\"),\n V2ChatRequestDocumentsItem.of(\n \" Was the teen group led by Justin\"\n + \" Timberlake really that big?\"\n + \" Was it only in the US where\"\n + \" they found success? Or were\"\n + \" they a global\"\n + \" phenomenon?\\n\\n\"\n + \"As usual, I’ll be using the\"\n + \" Commensurate Sales to\"\n + \" Popularity Concept in order\"\n + \" to relevantly gauge their\"\n + \" results. This concept will\"\n + \" not only bring you sales\"\n + \" information for all NSYNC‘s\"\n + \" albums, physical and\"\n + \" download singles, as well\"\n + \" as audio and video\"\n + \" streaming, but it will also\"\n + \" determine their true\"\n + \" popularity. If you are not\"\n + \" yet familiar with the CSPC\"\n + \" method, the next page\"\n + \" explains it with a short\"\n + \" video. I fully recommend\"\n + \" watching the video before\"\n + \" getting into the sales\"\n + \" figures.\")))\n .build());\n System.out.println(response);\n }\n}\n" - sdk: curl name: Documents code: "curl --request POST \\\n --url https://api.cohere.com/v1/chat \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"command-r-plus\",\n \"documents\": [\n {\n \"id\": \"1\",\n \"data\": \"Cohere is the best!\"\n }\n ],\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Who's the best?\"\n }\n ]\n }\n ]\n }'" @@ -1072,7 +1072,7 @@ paths: code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat_stream(\n model=\"command-r-plus\",\n messages=[\n {\n \"role\": \"user\",\n \"content\": \"hello world!\"\n }\n ]\n)\n\nfor event in response:\n if event.type == \"content-delta\":\n print(event.delta.message.content.text, end='')\n" - sdk: java name: Streaming - code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatStreamRequest;\nimport com.cohere.api.types.*;\nimport java.util.List;\n\npublic class Stream {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n Iterable response =\n cohere.v2()\n .chatStream(\n V2ChatStreamRequest.builder()\n .model(\"command-r-plus\")\n .messages(\n List.of(\n ChatMessageV2.user(\n UserMessage.builder()\n .content(\n UserMessageContent\n .of(\n \"Who discovered\"\n + \" gravity?\"))\n .build()),\n ChatMessageV2.assistant(\n AssistantMessage.builder()\n .content(\n AssistantMessageContent\n .of(\n \"The man\"\n + \" who is\"\n + \" widely\"\n + \" credited\"\n + \" with\"\n + \" discovering\"\n + \" gravity\"\n + \" is Sir\"\n + \" Isaac\"\n + \" Newton\"))\n .build())))\n .build());\n\n for (StreamedChatResponseV2 chatResponse : response) {\n if (chatResponse.isContentDelta()) {\n System.out.println(\n chatResponse\n .getContentDelta()\n .flatMap(ChatContentDeltaEvent::getDelta)\n .flatMap(ChatContentDeltaEventDelta::getMessage)\n .flatMap(ChatContentDeltaEventDeltaMessage::getContent)\n .flatMap(ChatContentDeltaEventDeltaMessageContent::getText)\n .orElse(\"\"));\n }\n }\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatStreamRequest;\nimport com.cohere.api.types.*;\nimport java.util.List;\n\npublic class Stream {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n Iterable response =\n cohere\n .v2()\n .chatStream(\n V2ChatStreamRequest.builder()\n .model(\"command-r-plus\")\n .messages(\n List.of(\n ChatMessageV2.user(\n UserMessage.builder()\n .content(UserMessageContent.of(\"Who discovered\" + \" gravity?\"))\n .build()),\n ChatMessageV2.assistant(\n AssistantMessage.builder()\n .content(\n AssistantMessageContent.of(\n \"The man\"\n + \" who is\"\n + \" widely\"\n + \" credited\"\n + \" with\"\n + \" discovering\"\n + \" gravity\"\n + \" is Sir\"\n + \" Isaac\"\n + \" Newton\"))\n .build())))\n .build());\n\n for (StreamedChatResponseV2 chatResponse : response) {\n if (chatResponse.isContentDelta()) {\n System.out.println(\n chatResponse\n .getContentDelta()\n .flatMap(ChatContentDeltaEvent::getDelta)\n .flatMap(ChatContentDeltaEventDelta::getMessage)\n .flatMap(ChatContentDeltaEventDeltaMessage::getContent)\n .flatMap(ChatContentDeltaEventDeltaMessageContent::getText)\n .orElse(\"\"));\n }\n }\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: Streaming code: "curl --request POST \\\n --url https://api.cohere.com/v1/chat \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"stream\": true,\n \"model\": \"command-r-plus\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"message\": \"Hello world!\"\n }\n ],\n }'" @@ -1197,7 +1197,7 @@ paths: code: "import cohere\n\nco = cohere.Client(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n tools=[\n cohere.ToolV2(type='function', function={\n \"name\": 'query_daily_sales_report',\n \"description\": 'Connects to a database to retrieve overall sales volumes and sales information for a given day.',\n \"parameters\": {\n \"day\": {\n \"description\": 'Retrieves sales data for this day, formatted as YYYY-MM-DD.',\n \"type\": 'str',\n \"required\": True,\n },\n }\n }),\n cohere.ToolV2(type='function', function={\n \"name\": 'query_product_catalog',\n \"description\": 'Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.',\n \"parameters\": {\n \"category\": {\n \"description\": 'Retrieves product information data for all products in this category.',\n \"type\": 'str',\n \"required\": True,\n },\n }\n })\n ],\n messages=[\n {\n \"role\": \"user\",\n \"content\": \"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\"\n }\n ]\n)\n\nprint(response)\n" - sdk: java name: Tools - code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatRequest;\nimport com.cohere.api.types.*;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Tools {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ChatResponse response =\n cohere.v2()\n .chat(\n V2ChatRequest.builder()\n .model(\"command-r-plus\")\n .tools(\n List.of(\n ToolV2.builder()\n .function(\n ToolV2Function.builder()\n .name(\n \"query_daily_sales_report\")\n .description(\n \"Connects\"\n + \" to a\"\n + \" database\"\n + \" to retrieve\"\n + \" overall\"\n + \" sales\"\n + \" volumes\"\n + \" and sales\"\n + \" information\"\n + \" for a\"\n + \" given\"\n + \" day.\")\n .parameters(\n Map.of(\n \"day\",\n ToolParameterDefinitionsValue\n .builder()\n .type(\n \"str\")\n .description(\n \"Retrieves\"\n + \" sales\"\n + \" data\"\n + \" for this\"\n + \" day,\"\n + \" formatted\"\n + \" as YYYY-MM-DD.\")\n .required(\n true)\n .build()))\n .build())\n .build(),\n ToolV2.builder()\n .function(\n ToolV2Function.builder()\n .name(\n \"query_product_catalog\")\n .description(\"Connects\"\n + \" to a\"\n + \" a product\"\n + \" catalog\"\n + \" with information\"\n + \" about all\"\n + \" the products being\"\n + \" sold,\"\n + \" including\"\n + \" categories,\"\n + \" prices, and stock\"\n + \" levels.\")\n .parameters(\n Map.of(\n \"category\",\n ToolParameterDefinitionsValue\n .builder()\n .type(\n \"str\")\n .description(\n \"Retrieves\"\n + \" product\"\n + \" information\"\n + \" data\"\n + \" for all\"\n + \" products\"\n + \" in this\"\n + \" category.\")\n .required(\n true)\n .build()))\n .build())\n .build())\n )\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage chatv2post;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2ChatRequest;\nimport com.cohere.api.types.*;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Tools {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ChatResponse response =\n cohere\n .v2()\n .chat(\n V2ChatRequest.builder()\n .model(\"command-r-plus\")\n .tools(\n List.of(\n ToolV2.builder()\n .function(\n ToolV2Function.builder()\n .name(\"query_daily_sales_report\")\n .description(\n \"Connects\"\n + \" to a\"\n + \" database\"\n + \" to retrieve\"\n + \" overall\"\n + \" sales\"\n + \" volumes\"\n + \" and sales\"\n + \" information\"\n + \" for a\"\n + \" given\"\n + \" day.\")\n .parameters(\n Map.of(\n \"day\",\n ToolParameterDefinitionsValue.builder()\n .type(\"str\")\n .description(\n \"Retrieves\"\n + \" sales\"\n + \" data\"\n + \" for this\"\n + \" day,\"\n + \" formatted\"\n + \" as YYYY-MM-DD.\")\n .required(true)\n .build()))\n .build())\n .build(),\n ToolV2.builder()\n .function(\n ToolV2Function.builder()\n .name(\"query_product_catalog\")\n .description(\n \"Connects\"\n + \" to a\"\n + \" a product\"\n + \" catalog\"\n + \" with\"\n + \" information\"\n + \" about\"\n + \" all the\"\n + \" products\"\n + \" being\"\n + \" sold,\"\n + \" including\"\n + \" categories,\"\n + \" prices,\"\n + \" and stock\"\n + \" levels.\")\n .parameters(\n Map.of(\n \"category\",\n ToolParameterDefinitionsValue.builder()\n .type(\"str\")\n .description(\n \"Retrieves\"\n + \" product\"\n + \" information\"\n + \" data\"\n + \" for all\"\n + \" products\"\n + \" in this\"\n + \" category.\")\n .required(true)\n .build()))\n .build())\n .build()))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: Tools code: "curl --request POST \\\n --url https://api.cohere.com/v1/chat \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"command-r-plus\",\n \"tools\": [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"query_daily_sales_report\",\n \"description\": \"Connects to a database to retrieve overall sales volumes and sales information for a given day.\",\n \"parameters\": {\n \"day\": {\n \"description\": \"Retrieves sales data for this day, formatted as YYYY-MM-DD.\",\n \"type\": \"str\",\n \"required\": true\n }\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"query_product_catalog\",\n \"description\": \"Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.\",\n \"parameters\": {\n \"category\": {\n \"description\": \"Retrieves product information data for all products in this category.\",\n \"type\": \"str\",\n \"required\": true\n }\n }\n }\n }\n ],\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\"\n }\n ]\n }'\n" @@ -1494,7 +1494,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.generate(\n prompt=\"Please explain to me how LLMs work\",\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.GenerateRequest;\nimport com.cohere.api.types.Generation;\n\n\npublic class GeneratePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n Generation response = cohere.generate(GenerateRequest.builder().prompt(\"Please explain to me how LLMs work\").build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.GenerateRequest;\nimport com.cohere.api.types.Generation;\n\npublic class GeneratePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n Generation response =\n cohere.generate(\n GenerateRequest.builder().prompt(\"Please explain to me how LLMs work\").build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/generate \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"prompt\": \"Please explain to me how LLMs work\"\n }'" @@ -1628,7 +1628,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.embed(\n texts=[\"hello\", \"goodbye\"], model=\"embed-english-v3.0\", input_type=\"classification\"\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.EmbedRequest;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbedResponse;\n\nimport java.util.List;\n\n\npublic class EmbedPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n EmbedResponse response = cohere.embed(EmbedRequest.builder().texts(List.of(\"hello\", \"goodbye\")).model(\"embed-english-v3.0\").inputType(EmbedInputType.CLASSIFICATION).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.EmbedRequest;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbedResponse;\nimport java.util.List;\n\npublic class EmbedPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n EmbedResponse response =\n cohere.embed(\n EmbedRequest.builder()\n .texts(List.of(\"hello\", \"goodbye\"))\n .model(\"embed-english-v3.0\")\n .inputType(EmbedInputType.CLASSIFICATION)\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/embed \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"embed-english-v3.0\",\n \"texts\": [\"hello\", \"goodbye\"],\n \"input_type\": \"classification\"\n }'" @@ -3715,6 +3715,8 @@ paths: schema: required: - model + - input_type + - embedding_types type: object properties: texts: @@ -3814,7 +3816,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClientV2(\"<>\")\n\n\nasync def main():\n response = await co.embed(\n texts=[\"hello\", \"goodbye\"], model=\"embed-english-v3.0\", input_type=\"classification\", embedding_types=[\"float\"]\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.EmbedRequest;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbedResponse;\n\nimport java.util.List;\n\n\npublic class EmbedPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n EmbedResponse response = cohere.embed(EmbedRequest.builder().texts(List.of(\"hello\", \"goodbye\")).model(\"embed-english-v3.0\").inputType(EmbedInputType.CLASSIFICATION).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.EmbedRequest;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbedResponse;\nimport java.util.List;\n\npublic class EmbedPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n EmbedResponse response =\n cohere.embed(\n EmbedRequest.builder()\n .texts(List.of(\"hello\", \"goodbye\"))\n .model(\"embed-english-v3.0\")\n .inputType(EmbedInputType.CLASSIFICATION)\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/embed \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"embed-english-v3.0\",\n \"texts\": [\"hello\", \"goodbye\"],\n \"input_type\": \"classification\",\n \"embedding_types\": [\"float\"]\n }'" @@ -5961,7 +5963,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n # start an embed job\n job = await co.embed_jobs.create(\n dataset_id=\"my-dataset-id\", input_type=\"search_document\", model=\"embed-english-v3.0\"\n )\n\n # poll the server until the job is complete\n response = await co.wait(job)\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.embedjobs.requests.CreateEmbedJobRequest;\nimport com.cohere.api.types.CreateEmbedJobResponse;\nimport com.cohere.api.types.EmbedInputType;\n\n\npublic class EmbedJobsPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n CreateEmbedJobResponse response = cohere.embedJobs().create(CreateEmbedJobRequest.builder().model(\"embed-english-v3.0\").datasetId(\"ds.id\").inputType(EmbedInputType.SEARCH_DOCUMENT).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.embedjobs.requests.CreateEmbedJobRequest;\nimport com.cohere.api.types.CreateEmbedJobResponse;\nimport com.cohere.api.types.EmbedInputType;\n\npublic class EmbedJobsPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n CreateEmbedJobResponse response =\n cohere\n .embedJobs()\n .create(\n CreateEmbedJobRequest.builder()\n .model(\"embed-english-v3.0\")\n .datasetId(\"ds.id\")\n .inputType(EmbedInputType.SEARCH_DOCUMENT)\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const embedJob = await cohere.embedJobs.create({\n datasetId: 'my-dataset',\n inputType: 'search_document',\n model: 'embed-english-v3.0',\n });\n\n console.log(embedJob);\n})();\n" @@ -6031,7 +6033,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.embed_jobs.list()\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.types.ListEmbedJobResponse;\n\n\npublic class EmbedJobsGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListEmbedJobResponse response = cohere.embedJobs().list();\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.types.ListEmbedJobResponse;\n\npublic class EmbedJobsGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListEmbedJobResponse response = cohere.embedJobs().list();\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const embedJobs = await cohere.embedJobs.list();\n\n console.log(embedJobs);\n})();\n" @@ -6110,7 +6112,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.embed_jobs.get(\"job_id\")\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.types.ListEmbedJobResponse;\n\n\npublic class EmbedJobsGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListEmbedJobResponse response = cohere.embedJobs().list();\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.types.ListEmbedJobResponse;\n\npublic class EmbedJobsGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListEmbedJobResponse response = cohere.embedJobs().list();\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const embedJob = await cohere.embedJobs.get('job_id');\n\n console.log(embedJob);\n})();\n" @@ -6185,7 +6187,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n await co.embed_jobs.cancel(\"job_id\")\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\n\n\npublic class EmbedJobsCancel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.embedJobs().cancel(\"job_id\");\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\n\npublic class EmbedJobsCancel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.embedJobs().cancel(\"job_id\");\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const embedJob = await cohere.embedJobs.cancel('job_id');\n\n console.log(embedJob);\n})();\n" @@ -6355,7 +6357,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\ndocs = [\n \"Carson City is the capital city of the American state of Nevada.\",\n \"The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.\",\n \"Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.\",\n \"Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.\",\n \"Capital punishment (the death penalty) has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.\",\n]\n\n\nasync def main():\n response = await co.rerank(\n model=\"rerank-english-v2.0\",\n query=\"What is the capital of the United States?\",\n documents=docs,\n top_n=3,\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.RerankRequest;\nimport com.cohere.api.types.RerankRequestDocumentsItem;\nimport com.cohere.api.types.RerankResponse;\n\nimport java.util.List;\n\n\npublic class RerankPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n RerankResponse response = cohere.rerank(RerankRequest.builder().query(\"What is the capital of the United States?\").documents(List.of(\n RerankRequestDocumentsItem.of(\"Carson City is the capital city of the American state of Nevada.\"),\n RerankRequestDocumentsItem.of(\"The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.\"),\n RerankRequestDocumentsItem.of(\"Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.\"),\n RerankRequestDocumentsItem.of(\"Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.\"),\n RerankRequestDocumentsItem.of(\"Capital punishment (the death penalty) has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.\")\n )).model(\"rerank-english-v3.0\").topN(3).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.RerankRequest;\nimport com.cohere.api.types.RerankRequestDocumentsItem;\nimport com.cohere.api.types.RerankResponse;\nimport java.util.List;\n\npublic class RerankPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n RerankResponse response =\n cohere.rerank(\n RerankRequest.builder()\n .query(\"What is the capital of the United States?\")\n .documents(\n List.of(\n RerankRequestDocumentsItem.of(\n \"Carson City is the capital city of the\"\n + \" American state of Nevada.\"),\n RerankRequestDocumentsItem.of(\n \"The Commonwealth of the Northern Mariana\"\n + \" Islands is a group of islands in\"\n + \" the Pacific Ocean. Its capital is\"\n + \" Saipan.\"),\n RerankRequestDocumentsItem.of(\n \"Capitalization or capitalisation in\"\n + \" English grammar is the use of a\"\n + \" capital letter at the start of a\"\n + \" word. English usage varies from\"\n + \" capitalization in other\"\n + \" languages.\"),\n RerankRequestDocumentsItem.of(\n \"Washington, D.C. (also known as simply\"\n + \" Washington or D.C., and officially\"\n + \" as the District of Columbia) is the\"\n + \" capital of the United States. It is\"\n + \" a federal district.\"),\n RerankRequestDocumentsItem.of(\n \"Capital punishment (the death penalty) has\"\n + \" existed in the United States since\"\n + \" beforethe United States was a\"\n + \" country. As of 2017, capital\"\n + \" punishment is legal in 30 of the 50\"\n + \" states.\")))\n .model(\"rerank-english-v3.0\")\n .topN(3)\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/rerank \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"rerank-english-v3.0\",\n \"query\": \"What is the capital of the United States?\",\n \"top_n\": 3,\n \"documents\": [\"Carson City is the capital city of the American state of Nevada.\",\n \"The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.\",\n \"Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.\",\n \"Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.\",\n \"Capital punishment (the death penalty) has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.\"]\n }'" @@ -6547,7 +6549,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClientV2(\"<>\")\n\ndocs = [\n \"Carson City is the capital city of the American state of Nevada.\",\n \"The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.\",\n \"Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.\",\n \"Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.\",\n \"Capital punishment (the death penalty) has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.\",\n]\n\n\nasync def main():\n response = await co.rerank(\n model=\"rerank-english-v2.0\",\n query=\"What is the capital of the United States?\",\n documents=docs,\n top_n=3,\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2RerankRequest;\nimport com.cohere.api.resources.v2.types.V2RerankRequestDocumentsItem;\nimport com.cohere.api.resources.v2.types.V2RerankResponse;\nimport java.util.List;\n\npublic class RerankV2Post {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n V2RerankResponse response =\n cohere.v2().rerank(\n V2RerankRequest.builder()\n .model(\"rerank-english-v3.0\")\n .query(\"What is the capital of the United States?\")\n .documents(\n List.of(\n V2RerankRequestDocumentsItem.of(\n \"Carson City is the capital city of the\"\n + \" American state of Nevada.\"),\n V2RerankRequestDocumentsItem.of(\n \"The Commonwealth of the Northern Mariana\"\n + \" Islands is a group of islands in\"\n + \" the Pacific Ocean. Its capital is\"\n + \" Saipan.\"),\n V2RerankRequestDocumentsItem.of(\n \"Capitalization or capitalisation in\"\n + \" English grammar is the use of a\"\n + \" capital letter at the start of a\"\n + \" word. English usage varies from\"\n + \" capitalization in other\"\n + \" languages.\"),\n V2RerankRequestDocumentsItem.of(\n \"Washington, D.C. (also known as simply\"\n + \" Washington or D.C., and officially\"\n + \" as the District of Columbia) is the\"\n + \" capital of the United States. It is\"\n + \" a federal district.\"),\n V2RerankRequestDocumentsItem.of(\n \"Capital punishment (the death penalty) has\"\n + \" existed in the United States since\"\n + \" beforethe United States was a\"\n + \" country. As of 2017, capital\"\n + \" punishment is legal in 30 of the 50\"\n + \" states.\")))\n .topN(3)\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2RerankRequest;\nimport com.cohere.api.resources.v2.types.V2RerankRequestDocumentsItem;\nimport com.cohere.api.resources.v2.types.V2RerankResponse;\nimport java.util.List;\n\npublic class RerankV2Post {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n V2RerankResponse response =\n cohere\n .v2()\n .rerank(\n V2RerankRequest.builder()\n .model(\"rerank-english-v3.0\")\n .query(\"What is the capital of the United States?\")\n .documents(\n List.of(\n V2RerankRequestDocumentsItem.of(\n \"Carson City is the capital city of\"\n + \" the American state of\"\n + \" Nevada.\"),\n V2RerankRequestDocumentsItem.of(\n \"The Commonwealth of the Northern\"\n + \" Mariana Islands is a group\"\n + \" of islands in the Pacific\"\n + \" Ocean. Its capital is\"\n + \" Saipan.\"),\n V2RerankRequestDocumentsItem.of(\n \"Capitalization or capitalisation\"\n + \" in English grammar is the\"\n + \" use of a capital letter at\"\n + \" the start of a word.\"\n + \" English usage varies from\"\n + \" capitalization in other\"\n + \" languages.\"),\n V2RerankRequestDocumentsItem.of(\n \"Washington, D.C. (also known as\"\n + \" simply Washington or D.C.,\"\n + \" and officially as the\"\n + \" District of Columbia) is\"\n + \" the capital of the United\"\n + \" States. It is a federal\"\n + \" district.\"),\n V2RerankRequestDocumentsItem.of(\n \"Capital punishment (the death\"\n + \" penalty) has existed in the\"\n + \" United States since\"\n + \" beforethe United States was\"\n + \" a country. As of 2017,\"\n + \" capital punishment is legal\"\n + \" in 30 of the 50 states.\")))\n .topN(3)\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/rerank \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"rerank-english-v3.0\",\n \"query\": \"What is the capital of the United States?\",\n \"top_n\": 3,\n \"documents\": [\"Carson City is the capital city of the American state of Nevada.\",\n \"The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.\",\n \"Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.\",\n \"Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.\",\n \"Capital punishment (the death penalty) has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.\"]\n }'" @@ -6802,7 +6804,7 @@ paths: code: "import cohere\nimport asyncio\nfrom cohere import ClassifyExample\n\nco = cohere.AsyncClient(\"<>\")\nexamples = [\n ClassifyExample(text=\"Dermatologists don't like her!\", label=\"Spam\"),\n ClassifyExample(text=\"'Hello, open to this?'\", label=\"Spam\"),\n ClassifyExample(\n text=\"I need help please wire me $1000 right now\", label=\"Spam\"),\n ClassifyExample(text=\"Nice to know you ;)\", label=\"Spam\"),\n ClassifyExample(text=\"Please help me?\", label=\"Spam\"),\n ClassifyExample(text=\"Your parcel will be delivered today\",\n label=\"Not spam\"),\n ClassifyExample(\n text=\"Review changes to our Terms and Conditions\", label=\"Not spam\"\n ),\n ClassifyExample(text=\"Weekly sync notes\", label=\"Not spam\"),\n ClassifyExample(text=\"'Re: Follow up from today's meeting'\",\n label=\"Not spam\"),\n ClassifyExample(text=\"Pre-read for tomorrow\", label=\"Not spam\"),\n]\ninputs = [\n \"Confirm your email address\",\n \"hey i need u to send some $\",\n]\n\n\nasync def main():\n response = await co.classify(\n inputs=inputs,\n examples=examples,\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.ClassifyRequest;\nimport com.cohere.api.types.ClassifyExample;\nimport com.cohere.api.types.ClassifyResponse;\n\nimport java.util.List;\n\n\npublic class ClassifyPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ClassifyResponse response = cohere.classify(ClassifyRequest.builder().addAllInputs(\n List.of(\"Confirm your email address\", \"hey i need u to send some $\")\n ).examples(List.of(\n ClassifyExample.builder().text(\"Dermatologists don't like her!\").label(\"Spam\").build(),\n ClassifyExample.builder().text(\"'Hello, open to this?'\").label(\"Spam\").build(),\n ClassifyExample.builder().text(\"I need help please wire me $1000 right now\").label(\"Spam\").build(),\n ClassifyExample.builder().text(\"Nice to know you ;)\").label(\"Spam\").build(),\n ClassifyExample.builder().text(\"Please help me?\").label(\"Spam\").build(),\n ClassifyExample.builder().text(\"Your parcel will be delivered today\").label(\"Not spam\").build(),\n ClassifyExample.builder().text(\"Review changes to our Terms and Conditions\").label(\"Not spam\").build(),\n ClassifyExample.builder().text(\"Weekly sync notes\").label(\"Not spam\").build(),\n ClassifyExample.builder().text(\"'Re: Follow up from today's meeting'\").label(\"Not spam\").build(),\n ClassifyExample.builder().text(\"Pre-read for tomorrow\").label(\"Not spam\").build()\n )).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.ClassifyRequest;\nimport com.cohere.api.types.ClassifyExample;\nimport com.cohere.api.types.ClassifyResponse;\nimport java.util.List;\n\npublic class ClassifyPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ClassifyResponse response =\n cohere.classify(\n ClassifyRequest.builder()\n .addAllInputs(List.of(\"Confirm your email address\", \"hey i need u to send some $\"))\n .examples(\n List.of(\n ClassifyExample.builder()\n .text(\"Dermatologists don't like her!\")\n .label(\"Spam\")\n .build(),\n ClassifyExample.builder()\n .text(\"'Hello, open to this?'\")\n .label(\"Spam\")\n .build(),\n ClassifyExample.builder()\n .text(\"I need help please wire me $1000\" + \" right now\")\n .label(\"Spam\")\n .build(),\n ClassifyExample.builder().text(\"Nice to know you ;)\").label(\"Spam\").build(),\n ClassifyExample.builder().text(\"Please help me?\").label(\"Spam\").build(),\n ClassifyExample.builder()\n .text(\"Your parcel will be delivered today\")\n .label(\"Not spam\")\n .build(),\n ClassifyExample.builder()\n .text(\"Review changes to our Terms and\" + \" Conditions\")\n .label(\"Not spam\")\n .build(),\n ClassifyExample.builder()\n .text(\"Weekly sync notes\")\n .label(\"Not spam\")\n .build(),\n ClassifyExample.builder()\n .text(\"'Re: Follow up from today's\" + \" meeting'\")\n .label(\"Not spam\")\n .build(),\n ClassifyExample.builder()\n .text(\"Pre-read for tomorrow\")\n .label(\"Not spam\")\n .build()))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/classify \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"inputs\": [\"Confirm your email address\", \"hey i need u to send some $\"],\n \"examples\": [\n {\"text\": \"Dermatologists don'\\''t like her!\",\"label\": \"Spam\"},\n {\"text\": \"'\\''Hello, open to this?'\\''\",\"label\": \"Spam\"},\n {\"text\": \"I need help please wire me $1000 right now\",\"label\": \"Spam\"},\n {\"text\": \"Nice to know you ;)\",\"label\": \"Spam\"},\n {\"text\": \"Please help me?\",\"label\": \"Spam\"},\n {\"text\": \"Your parcel will be delivered today\",\"label\": \"Not spam\"},\n {\"text\": \"Review changes to our Terms and Conditions\",\"label\": \"Not spam\"},\n {\"text\": \"Weekly sync notes\",\"label\": \"Not spam\"},\n {\"text\": \"'\\''Re: Follow up from today'\\''s meeting'\\''\",\"label\": \"Not spam\"},\n {\"text\": \"Pre-read for tomorrow\",\"label\": \"Not spam\"}\n ]\n }'" @@ -7015,7 +7017,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n\n # upload a dataset\n response = await co.datasets.create(\n name=\"chat-dataset\",\n data=open(\"./chat.jsonl\", \"rb\"),\n type=\"chat-finetune-input\",\n )\n\n # wait for validation to complete\n response = await co.wait(response)\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.requests.DatasetsCreateRequest;\nimport com.cohere.api.resources.datasets.types.DatasetsCreateResponse;\nimport com.cohere.api.types.DatasetType;\n\nimport java.util.Optional;\n\n\npublic class DatasetPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsCreateResponse response = cohere.datasets().create(null, Optional.empty(), DatasetsCreateRequest.builder().name(\"chat-dataset\").type(DatasetType.CHAT_FINETUNE_INPUT).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.requests.DatasetsCreateRequest;\nimport com.cohere.api.resources.datasets.types.DatasetsCreateResponse;\nimport com.cohere.api.types.DatasetType;\nimport java.util.Optional;\n\npublic class DatasetPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsCreateResponse response =\n cohere\n .datasets()\n .create(\n null,\n Optional.empty(),\n DatasetsCreateRequest.builder()\n .name(\"chat-dataset\")\n .type(DatasetType.CHAT_FINETUNE_INPUT)\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\nconst fs = require('fs');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const file = fs.createReadStream('embed_jobs_sample_data.jsonl'); // {\"text\": \"The quick brown fox jumps over the lazy dog\"}\n\n const dataset = await cohere.datasets.create({ name: 'my-dataset', type: 'embed-input' }, file);\n\n console.log(dataset);\n})();\n" @@ -7129,7 +7131,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.datasets.get(id=\"<>\")\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.types.DatasetsGetResponse;\n\n\npublic class DatasetGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsGetResponse response = cohere.datasets().get(\"dataset_id\");\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.types.DatasetsGetResponse;\n\npublic class DatasetGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsGetResponse response = cohere.datasets().get(\"dataset_id\");\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const datasets = await cohere.datasets.get('<>');\n\n console.log(datasets);\n})();\n" @@ -7202,7 +7204,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.datasets.get_usage()\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.types.DatasetsGetUsageResponse;\n\n\npublic class DatasetUsageGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsGetUsageResponse response = cohere.datasets().getUsage();\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.types.DatasetsGetUsageResponse;\n\npublic class DatasetUsageGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsGetUsageResponse response = cohere.datasets().getUsage();\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const usage = await cohere.datasets.getUsage('id');\n\n console.log(usage);\n})();\n" @@ -7281,7 +7283,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.datasets.get(id=\"<>\")\n\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.types.DatasetsGetResponse;\n\n\npublic class DatasetGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsGetResponse response = cohere.datasets().get(\"dataset_id\");\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.datasets.types.DatasetsGetResponse;\n\npublic class DatasetGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DatasetsGetResponse response = cohere.datasets().get(\"dataset_id\");\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const datasets = await cohere.datasets.get('<>');\n\n console.log(datasets);\n})();\n" @@ -7354,7 +7356,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n await co.delete_dataset(\"id\")\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\n\n\npublic class DatasetDelete {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.datasets().delete(\"id\");\n\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\n\npublic class DatasetDelete {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.datasets().delete(\"id\");\n }\n}\n" - sdk: curl name: cURL code: "curl --request DELETE \\\n --url https://api.cohere.com/v1/datasets/id \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\"" @@ -7508,7 +7510,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\ntext = (\n \"Ice cream is a sweetened frozen food typically eaten as a snack or dessert. \"\n \"It may be made from milk or cream and is flavoured with a sweetener, \"\n \"either sugar or an alternative, and a spice, such as cocoa or vanilla, \"\n \"or with fruit such as strawberries or peaches. \"\n \"It can also be made by whisking a flavored cream base and liquid nitrogen together. \"\n \"Food coloring is sometimes added, in addition to stabilizers. \"\n \"The mixture is cooled below the freezing point of water and stirred to incorporate air spaces \"\n \"and to prevent detectable ice crystals from forming. The result is a smooth, \"\n \"semi-solid foam that is solid at very low temperatures (below 2 °C or 35 °F). \"\n \"It becomes more malleable as its temperature increases.\\n\\n\"\n 'The meaning of the name \"ice cream\" varies from one country to another. '\n 'In some countries, such as the United States, \"ice cream\" applies only to a specific variety, '\n \"and most governments regulate the commercial use of the various terms according to the \"\n \"relative quantities of the main ingredients, notably the amount of cream. \"\n \"Products that do not meet the criteria to be called ice cream are sometimes labelled \"\n '\"frozen dairy dessert\" instead. In other countries, such as Italy and Argentina, '\n \"one word is used fo\\r all variants. Analogues made from dairy alternatives, \"\n \"such as goat's or sheep's milk, or milk substitutes \"\n \"(e.g., soy, cashew, coconut, almond milk or tofu), are available for those who are \"\n \"lactose intolerant, allergic to dairy protein or vegan.\"\n)\n\n\nasync def main():\n response = await co.summarize(\n text=text,\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.SummarizeRequest;\nimport com.cohere.api.types.SummarizeResponse;\n\n\npublic class SummarizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n SummarizeResponse response = cohere.summarize(SummarizeRequest.builder().text(\n \"\"\"\n Ice cream is a sweetened frozen food typically eaten as a snack or dessert.\\s\n It may be made from milk or cream and is flavoured with a sweetener,\\s\n either sugar or an alternative, and a spice, such as cocoa or vanilla,\\s\n or with fruit such as strawberries or peaches.\\s\n It can also be made by whisking a flavored cream base and liquid nitrogen together.\\s\n Food coloring is sometimes added, in addition to stabilizers.\\s\n The mixture is cooled below the freezing point of water and stirred to incorporate air spaces\\s\n and to prevent detectable ice crystals from forming. The result is a smooth,\\s\n semi-solid foam that is solid at very low temperatures (below 2 °C or 35 °F).\\s\n It becomes more malleable as its temperature increases.\\\\n\\\\n\n The meaning of the name \"ice cream\" varies from one country to another.\\s\n In some countries, such as the United States, \"ice cream\" applies only to a specific variety,\\s\n and most governments regulate the commercial use of the various terms according to the\\s\n relative quantities of the main ingredients, notably the amount of cream.\\s\n Products that do not meet the criteria to be called ice cream are sometimes labelled\\s\n \"frozen dairy dessert\" instead. In other countries, such as Italy and Argentina,\\s\n one word is used fo\\\\r all variants. Analogues made from dairy alternatives,\\s\n such as goat's or sheep's milk, or milk substitutes\\s\n (e.g., soy, cashew, coconut, almond milk or tofu), are available for those who are\\s\n lactose intolerant, allergic to dairy protein or vegan.\n \"\"\"\n ).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.SummarizeRequest;\nimport com.cohere.api.types.SummarizeResponse;\n\npublic class SummarizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n SummarizeResponse response =\n cohere.summarize(\n SummarizeRequest.builder()\n .text(\n \"\"\"\n Ice cream is a sweetened frozen food typically eaten as a snack or dessert.\\s\n It may be made from milk or cream and is flavoured with a sweetener,\\s\n either sugar or an alternative, and a spice, such as cocoa or vanilla,\\s\n or with fruit such as strawberries or peaches.\\s\n It can also be made by whisking a flavored cream base and liquid nitrogen together.\\s\n Food coloring is sometimes added, in addition to stabilizers.\\s\n The mixture is cooled below the freezing point of water and stirred to incorporate air spaces\\s\n and to prevent detectable ice crystals from forming. The result is a smooth,\\s\n semi-solid foam that is solid at very low temperatures (below 2 °C or 35 °F).\\s\n It becomes more malleable as its temperature increases.\\\\n\\\\n\n The meaning of the name \"ice cream\" varies from one country to another.\\s\n In some countries, such as the United States, \"ice cream\" applies only to a specific variety,\\s\n and most governments regulate the commercial use of the various terms according to the\\s\n relative quantities of the main ingredients, notably the amount of cream.\\s\n Products that do not meet the criteria to be called ice cream are sometimes labelled\\s\n \"frozen dairy dessert\" instead. In other countries, such as Italy and Argentina,\\s\n one word is used fo\\\\r all variants. Analogues made from dairy alternatives,\\s\n such as goat's or sheep's milk, or milk substitutes\\s\n (e.g., soy, cashew, coconut, almond milk or tofu), are available for those who are\\s\n lactose intolerant, allergic to dairy protein or vegan.\n \"\"\")\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/summarize \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"text\": \"Ice cream is a sweetened frozen food typically eaten as a snack or dessert. It may be made from milk or cream and is flavoured with a sweetener, either sugar or an alternative, and a spice, such as cocoa or vanilla, or with fruit such as strawberries or peaches. It can also be made by whisking a flavored cream base and liquid nitrogen together. Food coloring is sometimes added, in addition to stabilizers. The mixture is cooled below the freezing point of water and stirred to incorporate air spaces and to prevent detectable ice crystals from forming. The result is a smooth, semi-solid foam that is solid at very low temperatures (below 2 °C or 35 °F). It becomes more malleable as its temperature increases.\\n\\nThe meaning of the name \\\"ice cream\\\" varies from one country to another. In some countries, such as the United States, \\\"ice cream\\\" applies only to a specific variety, and most governments regulate the commercial use of the various terms according to the relative quantities of the main ingredients, notably the amount of cream. Products that do not meet the criteria to be called ice cream are sometimes labelled \\\"frozen dairy dessert\\\" instead. In other countries, such as Italy and Argentina, one word is used for all variants. Analogues made from dairy alternatives, such as goat'\\''s or sheep'\\''s milk, or milk substitutes (e.g., soy, cashew, coconut, almond milk or tofu), are available for those who are lactose intolerant, allergic to dairy protein or vegan.\"\n }'" @@ -7663,7 +7665,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.tokenize(text=\"tokenize me! :D\", model=\"command-r-plus\")\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.TokenizeRequest;\nimport com.cohere.api.types.TokenizeResponse;\n\n\npublic class TokenizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n TokenizeResponse response = cohere.tokenize(TokenizeRequest.builder().text(\"tokenize me\").model(\"command-r-plus\").build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.TokenizeRequest;\nimport com.cohere.api.types.TokenizeResponse;\n\npublic class TokenizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n TokenizeResponse response =\n cohere.tokenize(\n TokenizeRequest.builder().text(\"tokenize me\").model(\"command-r-plus\").build());\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere Node.js SDK code: "const cohere = require('cohere-ai');\ncohere.init('<>')(async () => {\n const response = await cohere.tokenize({\n text: 'tokenize me! :D',\n model: 'command', // optional\n });\n console.log(response);\n})();\n" @@ -7797,7 +7799,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.detokenize(\n tokens=[8466, 5169, 2594, 8, 2792, 43], model=\"command-r-plus\" # optional\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.requests.DetokenizeRequest;\nimport com.cohere.api.types.DetokenizeResponse;\n\nimport java.util.List;\n\n\npublic class DetokenizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DetokenizeResponse response = cohere.detokenize(\n DetokenizeRequest.builder().model(\"command-r-plus\").tokens(List.of(8466, 5169, 2594, 8, 2792, 43)).build()\n );\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.DetokenizeRequest;\nimport com.cohere.api.types.DetokenizeResponse;\nimport java.util.List;\n\npublic class DetokenizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n DetokenizeResponse response =\n cohere.detokenize(\n DetokenizeRequest.builder()\n .model(\"command-r-plus\")\n .tokens(List.of(8466, 5169, 2594, 8, 2792, 43))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request POST \\\n --url https://api.cohere.com/v1/detokenize \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"command-r-plus\",\n \"tokens\": [8466, 5169, 2594, 8, 2792, 43]\n }'" @@ -7889,7 +7891,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.connectors.list()\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.types.ListConnectorsResponse;\n\n\npublic class ConnectorsList {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListConnectorsResponse list = cohere.connectors().list();\n\n System.out.println(list);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.types.ListConnectorsResponse;\n\npublic class ConnectorsList {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListConnectorsResponse list = cohere.connectors().list();\n\n System.out.println(list);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const connectors = await cohere.connectors.list();\n\n console.log(connectors);\n})();\n" @@ -7958,7 +7960,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.connectors.create(\n name=\"Example connector\",\n url=\"https://connector-example.com/search\",\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.connectors.requests.CreateConnectorRequest;\nimport com.cohere.api.types.CreateConnectorResponse;\n\n\npublic class ConnectorCreate {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n CreateConnectorResponse response = cohere.connectors().create(CreateConnectorRequest.builder()\n .name(\"Example connector\")\n .url(\"https://connector-example.com/search\").build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.connectors.requests.CreateConnectorRequest;\nimport com.cohere.api.types.CreateConnectorResponse;\n\npublic class ConnectorCreate {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n CreateConnectorResponse response =\n cohere\n .connectors()\n .create(\n CreateConnectorRequest.builder()\n .name(\"Example connector\")\n .url(\"https://connector-example.com/search\")\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const connector = await cohere.connectors.create({\n name: 'test-connector',\n url: 'https://example.com/search',\n description: 'A test connector',\n });\n\n console.log(connector);\n})();\n" @@ -8030,7 +8032,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.connectors.get(\"test-id\")\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.types.GetConnectorResponse;\n\n\npublic class ConnectorGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n GetConnectorResponse response = cohere.connectors().get(\"test-id\");\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.types.GetConnectorResponse;\n\npublic class ConnectorGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n GetConnectorResponse response = cohere.connectors().get(\"test-id\");\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const connector = await cohere.connectors.get('connector-id');\n\n console.log(connector);\n})();\n" @@ -8107,7 +8109,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.connectors.update(\n connector_id=\"test-id\", name=\"new name\", url=\"https://example.com/search\"\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.connectors.requests.UpdateConnectorRequest;\n\n\npublic class ConnectorPatch {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.connectors().update(\"test-id\", UpdateConnectorRequest.builder()\n .name(\"new name\")\n .url(\"https://connector-example.com/search\").build());\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.connectors.requests.UpdateConnectorRequest;\n\npublic class ConnectorPatch {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere\n .connectors()\n .update(\n \"test-id\",\n UpdateConnectorRequest.builder()\n .name(\"new name\")\n .url(\"https://connector-example.com/search\")\n .build());\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const connector = await cohere.connectors.update(connector.id, {\n name: 'test-connector-renamed',\n description: 'A test connector renamed',\n });\n\n console.log(connector);\n})();\n" @@ -8181,7 +8183,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n await co.connectors.delete(\"test-id\")\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\n\n\npublic class ConnectorDelete {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.connectors().delete(\"test-id\");\n }\n}\n\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\n\npublic class ConnectorDelete {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.connectors().delete(\"test-id\");\n }\n}\n" - sdk: curl name: cURL code: "curl --request DELETE \\\n --url https://api.cohere.com/v1/connectors/id \\\n --header 'accept: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\"" @@ -8257,7 +8259,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.connectors.o_auth_authorize(\n connector_id=\"test-id\", after_token_redirect=\"https://test.com\"\n )\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.resources.connectors.requests.ConnectorsOAuthAuthorizeRequest;\nimport com.cohere.api.types.OAuthAuthorizeResponse;\n\n\npublic class ConnectorsIdOauthAuthorizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n OAuthAuthorizeResponse response = cohere.connectors().oAuthAuthorize(\"test-id\", ConnectorsOAuthAuthorizeRequest.builder().afterTokenRedirect(\"https://connector-example.com/search\").build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.connectors.requests.ConnectorsOAuthAuthorizeRequest;\nimport com.cohere.api.types.OAuthAuthorizeResponse;\n\npublic class ConnectorsIdOauthAuthorizePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n OAuthAuthorizeResponse response =\n cohere\n .connectors()\n .oAuthAuthorize(\n \"test-id\",\n ConnectorsOAuthAuthorizeRequest.builder()\n .afterTokenRedirect(\"https://connector-example.com/search\")\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: typescript name: Cohere TypeScript SDK code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({\n token: '<>',\n});\n\n(async () => {\n const connector = await cohere.connectors.oAuthAuthorize('connector-id', {\n redirect_uri: 'https://example.com/oauth/callback',\n });\n\n console.log(connector);\n})();\n" @@ -8402,7 +8404,7 @@ paths: code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClient(\"<>\")\n\n\nasync def main():\n response = await co.models.list()\n print(response)\n\nasyncio.run(main())\n" - sdk: java name: Cohere java SDK - code: "import com.cohere.api.Cohere;\nimport com.cohere.api.types.ListModelsResponse;\n\n\npublic class ModelsListGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListModelsResponse response = cohere.models().list();\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.types.ListModelsResponse;\n\npublic class ModelsListGet {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListModelsResponse response = cohere.models().list();\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: cURL code: "curl --request GET \\\n --url https://api.cohere.com/v1/models \\\n --header 'accept: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\"" @@ -8570,7 +8572,7 @@ paths: - code-samples: - sdk: java name: Cohere java SDK - code: "package finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.ListFinetunedModelsResponse;\n\n\npublic class ListFinetunedModels {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListFinetunedModelsResponse response = cohere.finetuning().listFinetunedModels();\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.ListFinetunedModelsResponse;\n\npublic class ListFinetunedModels {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListFinetunedModelsResponse response = cohere.finetuning().listFinetunedModels();\n\n System.out.println(response);\n }\n}\n" - sdk: go name: Cohere Go SDK code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/cohere-ai/cohere-go/v2/client\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(\"<>\"))\n\n\tresp, err := co.Finetuning.ListFinetunedModels(context.TODO(), nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Printf(\"%+v\", resp.FinetunedModels)\n}\n" @@ -8657,7 +8659,7 @@ paths: - code-samples: - sdk: java name: Cohere java SDK - code: "package finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.*;\n\npublic class CreateFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n CreateFinetunedModelResponse response = cohere.finetuning().createFinetunedModel(FinetunedModel.builder().name(\"test-finetuned-model\").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build()).datasetId(\"my-dataset-id\").build()).build());\n\n System.out.println(response);\n }\n}\n\n\n" + code: "/* (C)2024 */\npackage finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.*;\n\npublic class CreateFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n CreateFinetunedModelResponse response =\n cohere\n .finetuning()\n .createFinetunedModel(\n FinetunedModel.builder()\n .name(\"test-finetuned-model\")\n .settings(\n Settings.builder()\n .baseModel(\n BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build())\n .datasetId(\"my-dataset-id\")\n .build())\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: go name: Cohere Go SDK code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/cohere-ai/cohere-go/v2/client\"\n\t\"github.com/cohere-ai/cohere-go/v2/finetuning\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(\"<>\"))\n\n\tresp, err := co.Finetuning.CreateFinetunedModel(\n\t\tcontext.TODO(),\n\t\t&finetuning.FinetunedModel{\n\t\t\tName: \"test-finetuned-model\",\n\t\t\tSettings: &finetuning.Settings{\n\t\t\t\tDatasetId: \"my-dataset-id\",\n\t\t\t\tBaseModel: &finetuning.BaseModel{\n\t\t\t\t\tBaseType: finetuning.BaseTypeBaseTypeChat,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Printf(\"%+v\", resp.FinetunedModel)\n}\n" @@ -8784,7 +8786,7 @@ paths: - code-samples: - sdk: java name: Cohere java SDK - code: "package finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.BaseModel;\nimport com.cohere.api.resources.finetuning.finetuning.types.BaseType;\nimport com.cohere.api.resources.finetuning.finetuning.types.Settings;\nimport com.cohere.api.resources.finetuning.finetuning.types.UpdateFinetunedModelResponse;\nimport com.cohere.api.resources.finetuning.requests.FinetuningUpdateFinetunedModelRequest;\n\n\npublic class UpdateFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n UpdateFinetunedModelResponse response = cohere.finetuning().updateFinetunedModel(\"test-id\", FinetuningUpdateFinetunedModelRequest.builder().name(\"new name\").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build()).datasetId(\"my-dataset-id\").build()).build());\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.BaseModel;\nimport com.cohere.api.resources.finetuning.finetuning.types.BaseType;\nimport com.cohere.api.resources.finetuning.finetuning.types.Settings;\nimport com.cohere.api.resources.finetuning.finetuning.types.UpdateFinetunedModelResponse;\nimport com.cohere.api.resources.finetuning.requests.FinetuningUpdateFinetunedModelRequest;\n\npublic class UpdateFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n UpdateFinetunedModelResponse response =\n cohere\n .finetuning()\n .updateFinetunedModel(\n \"test-id\",\n FinetuningUpdateFinetunedModelRequest.builder()\n .name(\"new name\")\n .settings(\n Settings.builder()\n .baseModel(\n BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build())\n .datasetId(\"my-dataset-id\")\n .build())\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: go name: Cohere Go SDK code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\tcohere \"github.com/cohere-ai/cohere-go/v2\"\n\t\"github.com/cohere-ai/cohere-go/v2/client\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(\"<>\"))\n\n\tresp, err := co.Finetuning.UpdateFinetunedModel(\n\t\tcontext.TODO(),\n\t\t\"test-id\",\n\t\t&cohere.FinetuningUpdateFinetunedModelRequest{\n\t\t\tName: \"new-name\",\n\t\t},\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Printf(\"%+v\", resp.FinetunedModel)\n}\n" @@ -8887,7 +8889,7 @@ paths: - code-samples: - sdk: java name: Cohere java SDK - code: "package finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.GetFinetunedModelResponse;\n\npublic class GetFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n GetFinetunedModelResponse response = cohere.finetuning().getFinetunedModel(\"test-id\");\n\n System.out.println(response);\n }\n}\n\n" + code: "/* (C)2024 */\npackage finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.GetFinetunedModelResponse;\n\npublic class GetFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n GetFinetunedModelResponse response = cohere.finetuning().getFinetunedModel(\"test-id\");\n\n System.out.println(response);\n }\n}\n" - sdk: go name: Cohere Go SDK code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/cohere-ai/cohere-go/v2/client\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(\"<>\"))\n\n\tresp, err := co.Finetuning.GetFinetunedModel(context.TODO(), \"test-id\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Printf(\"%+v\", resp.FinetunedModel)\n}\n" @@ -8967,7 +8969,7 @@ paths: - code-samples: - sdk: java name: Cohere java SDK - code: "package finetuning;\n\nimport com.cohere.api.Cohere;\n\n\npublic class DeleteFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.finetuning().deleteFinetunedModel(\"test-id\");\n }\n}\n" + code: "/* (C)2024 */\npackage finetuning;\n\nimport com.cohere.api.Cohere;\n\npublic class DeleteFinetunedModel {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n cohere.finetuning().deleteFinetunedModel(\"test-id\");\n }\n}\n" - sdk: go name: Cohere Go SDK code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/cohere-ai/cohere-go/v2/client\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(\"<>\"))\n\n\t_, err := co.Finetuning.DeleteFinetunedModel(context.TODO(), \"test-id\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n" @@ -9077,7 +9079,7 @@ paths: - code-samples: - sdk: java name: Cohere java SDK - code: "package finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.ListEventsResponse;\n\npublic class ListEvents {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListEventsResponse response = cohere.finetuning().listEvents(\"test-id\");\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.ListEventsResponse;\n\npublic class ListEvents {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListEventsResponse response = cohere.finetuning().listEvents(\"test-id\");\n\n System.out.println(response);\n }\n}\n" - sdk: go name: Cohere Go SDK code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/cohere-ai/cohere-go/v2/client\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(\"<>\"))\n\n\tresp, err := co.Finetuning.ListEvents(\n\t\tcontext.TODO(),\n\t\t\"test-finetuned-model-id\",\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Printf(\"%+v\", resp.Events)\n}\n" @@ -9186,7 +9188,7 @@ paths: - code-samples: - sdk: java name: Cohere java SDK - code: "package finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.ListTrainingStepMetricsResponse;\n\n\npublic class ListTrainingStepMetrics {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListTrainingStepMetricsResponse response = cohere.finetuning().listTrainingStepMetrics(\"test-id\");\n\n System.out.println(response);\n }\n}\n" + code: "/* (C)2024 */\npackage finetuning;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.finetuning.finetuning.types.ListTrainingStepMetricsResponse;\n\npublic class ListTrainingStepMetrics {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().token(\"<>\").clientName(\"snippet\").build();\n\n ListTrainingStepMetricsResponse response =\n cohere.finetuning().listTrainingStepMetrics(\"test-id\");\n\n System.out.println(response);\n }\n}\n" - sdk: go name: Cohere Go SDK code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/cohere-ai/cohere-go/v2/client\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(\"<>\"))\n\n\tresp, err := co.Finetuning.ListTrainingStepMetrics(\n\t\tcontext.TODO(),\n\t\t\"test-finetuned-model-id\",\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Printf(\"%+v\", resp.StepMetrics)\n}\n" @@ -13769,6 +13771,8 @@ components: type: number description: Total number of connector logs readOnly: true + FeedbackResponse: + type: object TokenLikelihood: type: object properties: