diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs index 09d68c0..8e00ddb 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs @@ -508,7 +508,7 @@ partial void ProcessRerankv2ResponseContent( /// /// /// - /// The identifier of the model to use.
+ /// The identifier of the model to use.
/// Supported models:
/// - `rerank-english-v3.0`
/// - `rerank-multilingual-v3.0`
@@ -525,12 +525,7 @@ partial void ProcessRerankv2ResponseContent( /// **Note**: structured data should be formatted as YAML strings for best performance. /// /// - /// Limits the returned number of rerank results to the specified value. If not passed, all the rerank results will be returned. - /// - /// - /// - If false, returns results without the doc text - the api will return a list of {index, relevance score} where index is inferred from the list passed into the request.
- /// - If true, returns results with the doc text passed in - the api will return an ordered list of {index, text, relevance score} where index + text refers to the list passed into the request.
- /// Default Value: false + /// Limits the number of returned rerank results to the specified value. If not passed, all the rerank results will be returned. /// /// /// Defaults to `4096`. Long documents will be automatically truncated to the specified number of tokens. @@ -540,10 +535,9 @@ partial void ProcessRerankv2ResponseContent( public async global::System.Threading.Tasks.Task Rerankv2Async( string model, string query, - global::System.Collections.Generic.IList> documents, + global::System.Collections.Generic.IList documents, string? xClientName = default, int? topN = default, - bool? returnDocuments = default, int? maxTokensPerDoc = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -553,7 +547,6 @@ partial void ProcessRerankv2ResponseContent( Query = query, Documents = documents, TopN = topN, - ReturnDocuments = returnDocuments, MaxTokensPerDoc = maxTokensPerDoc, }; diff --git a/src/libs/Cohere/Generated/Cohere.ICohereApi.Rerankv2.g.cs b/src/libs/Cohere/Generated/Cohere.ICohereApi.Rerankv2.g.cs index 50bf7ed..2bad946 100644 --- a/src/libs/Cohere/Generated/Cohere.ICohereApi.Rerankv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ICohereApi.Rerankv2.g.cs @@ -23,7 +23,7 @@ public partial interface ICohereApi /// /// /// - /// The identifier of the model to use.
+ /// The identifier of the model to use.
/// Supported models:
/// - `rerank-english-v3.0`
/// - `rerank-multilingual-v3.0`
@@ -40,12 +40,7 @@ public partial interface ICohereApi /// **Note**: structured data should be formatted as YAML strings for best performance. /// /// - /// Limits the returned number of rerank results to the specified value. If not passed, all the rerank results will be returned. - /// - /// - /// - If false, returns results without the doc text - the api will return a list of {index, relevance score} where index is inferred from the list passed into the request.
- /// - If true, returns results with the doc text passed in - the api will return an ordered list of {index, text, relevance score} where index + text refers to the list passed into the request.
- /// Default Value: false + /// Limits the number of returned rerank results to the specified value. If not passed, all the rerank results will be returned. /// /// /// Defaults to `4096`. Long documents will be automatically truncated to the specified number of tokens. @@ -55,10 +50,9 @@ public partial interface ICohereApi global::System.Threading.Tasks.Task Rerankv2Async( string model, string query, - global::System.Collections.Generic.IList> documents, + global::System.Collections.Generic.IList documents, string? xClientName = default, int? topN = default, - bool? returnDocuments = default, int? maxTokensPerDoc = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2Request.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Rerankv2Request.g.cs index 34c16d4..a081a71 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2Request.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Rerankv2Request.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace Cohere @@ -11,7 +9,7 @@ namespace Cohere public sealed partial class Rerankv2Request { /// - /// The identifier of the model to use.
+ /// The identifier of the model to use.
/// Supported models:
/// - `rerank-english-v3.0`
/// - `rerank-multilingual-v3.0`
@@ -37,22 +35,14 @@ public sealed partial class Rerankv2Request ///
[global::System.Text.Json.Serialization.JsonPropertyName("documents")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Documents { get; set; } + public required global::System.Collections.Generic.IList Documents { get; set; } /// - /// Limits the returned number of rerank results to the specified value. If not passed, all the rerank results will be returned. + /// Limits the number of returned rerank results to the specified value. If not passed, all the rerank results will be returned. /// [global::System.Text.Json.Serialization.JsonPropertyName("top_n")] public int? TopN { get; set; } - /// - /// - If false, returns results without the doc text - the api will return a list of {index, relevance score} where index is inferred from the list passed into the request.
- /// - If true, returns results with the doc text passed in - the api will return an ordered list of {index, text, relevance score} where index + text refers to the list passed into the request.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("return_documents")] - public bool? ReturnDocuments { get; set; } - /// /// Defaults to `4096`. Long documents will be automatically truncated to the specified number of tokens. /// @@ -69,7 +59,7 @@ public sealed partial class Rerankv2Request /// Initializes a new instance of the class. /// /// - /// The identifier of the model to use.
+ /// The identifier of the model to use.
/// Supported models:
/// - `rerank-english-v3.0`
/// - `rerank-multilingual-v3.0`
@@ -86,12 +76,7 @@ public sealed partial class Rerankv2Request /// **Note**: structured data should be formatted as YAML strings for best performance. /// /// - /// Limits the returned number of rerank results to the specified value. If not passed, all the rerank results will be returned. - /// - /// - /// - If false, returns results without the doc text - the api will return a list of {index, relevance score} where index is inferred from the list passed into the request.
- /// - If true, returns results with the doc text passed in - the api will return an ordered list of {index, text, relevance score} where index + text refers to the list passed into the request.
- /// Default Value: false + /// Limits the number of returned rerank results to the specified value. If not passed, all the rerank results will be returned. /// /// /// Defaults to `4096`. Long documents will be automatically truncated to the specified number of tokens. @@ -100,16 +85,14 @@ public sealed partial class Rerankv2Request public Rerankv2Request( string model, string query, - global::System.Collections.Generic.IList> documents, + global::System.Collections.Generic.IList documents, int? topN, - bool? returnDocuments, int? maxTokensPerDoc) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); this.Documents = documents ?? throw new global::System.ArgumentNullException(nameof(documents)); this.TopN = topN; - this.ReturnDocuments = returnDocuments; this.MaxTokensPerDoc = maxTokensPerDoc; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResult.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResult.g.cs index fbc735c..ab7a1bc 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResult.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResult.g.cs @@ -8,12 +8,6 @@ namespace Cohere /// public sealed partial class Rerankv2ResponseResult { - /// - /// If `return_documents` is set as `false` this will return none, if `true` it will return the documents passed in - /// - [global::System.Text.Json.Serialization.JsonPropertyName("document")] - public global::Cohere.Rerankv2ResponseResultDocument? Document { get; set; } - /// /// Corresponds to the index in the original list of documents to which the ranked document belongs. (i.e. if the first value in the `results` object has an `index` value of 3, it means in the list of documents passed in, the document at `index=3` had the highest relevance) /// @@ -38,9 +32,6 @@ public sealed partial class Rerankv2ResponseResult /// /// Initializes a new instance of the class. /// - /// - /// If `return_documents` is set as `false` this will return none, if `true` it will return the documents passed in - /// /// /// Corresponds to the index in the original list of documents to which the ranked document belongs. (i.e. if the first value in the `results` object has an `index` value of 3, it means in the list of documents passed in, the document at `index=3` had the highest relevance) /// @@ -51,11 +42,9 @@ public sealed partial class Rerankv2ResponseResult [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public Rerankv2ResponseResult( int index, - global::Cohere.Rerankv2ResponseResultDocument? document, float relevanceScore = default!) { this.Index = index; - this.Document = document; this.RelevanceScore = relevanceScore; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResultDocument.Json.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResultDocument.Json.g.cs deleted file mode 100644 index bde017f..0000000 --- a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResultDocument.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Cohere -{ - public sealed partial class Rerankv2ResponseResultDocument - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Cohere.Rerankv2ResponseResultDocument? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Cohere.Rerankv2ResponseResultDocument), - jsonSerializerContext) as global::Cohere.Rerankv2ResponseResultDocument; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Cohere.Rerankv2ResponseResultDocument? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Cohere.Rerankv2ResponseResultDocument), - jsonSerializerContext).ConfigureAwait(false)) as global::Cohere.Rerankv2ResponseResultDocument; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResultDocument.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResultDocument.g.cs deleted file mode 100644 index c9c72c6..0000000 --- a/src/libs/Cohere/Generated/Cohere.Models.Rerankv2ResponseResultDocument.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Cohere -{ - /// - /// If `return_documents` is set as `false` this will return none, if `true` it will return the documents passed in - /// - public sealed partial class Rerankv2ResponseResultDocument - { - /// - /// The text of the document to rerank - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// 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(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The text of the document to rerank - /// - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public Rerankv2ResponseResultDocument( - string text) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - } - - /// - /// Initializes a new instance of the class. - /// - public Rerankv2ResponseResultDocument() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/JsonSerializerContext.g.cs b/src/libs/Cohere/Generated/JsonSerializerContext.g.cs index 3563f2f..fa3726c 100644 --- a/src/libs/Cohere/Generated/JsonSerializerContext.g.cs +++ b/src/libs/Cohere/Generated/JsonSerializerContext.g.cs @@ -171,7 +171,6 @@ namespace Cohere typeof(global::Cohere.JsonConverters.OneOfJsonConverter>), typeof(global::Cohere.JsonConverters.OneOfJsonConverter), typeof(global::Cohere.JsonConverters.OneOfJsonConverter), - typeof(global::Cohere.JsonConverters.OneOfJsonConverter), typeof(global::Cohere.JsonConverters.OneOfJsonConverter), typeof(global::Cohere.JsonConverters.OneOfJsonConverter), typeof(global::Cohere.JsonConverters.OneOfJsonConverter), diff --git a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs index c190585..2af0f94 100644 --- a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs @@ -1826,978 +1826,974 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Cohere.Rerankv2ResponseResultDocument? Type452 { get; set; } + public global::Cohere.Rerankv2Response2? Type452 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response2? Type453 { get; set; } + public global::Cohere.Rerankv2Response3? Type453 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response3? Type454 { get; set; } + public global::Cohere.Rerankv2Response4? Type454 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response4? Type455 { get; set; } + public global::Cohere.Rerankv2Response5? Type455 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response5? Type456 { get; set; } + public global::Cohere.Rerankv2Response6? Type456 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response6? Type457 { get; set; } + public global::Cohere.Rerankv2Response7? Type457 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response7? Type458 { get; set; } + public global::Cohere.Rerankv2Response8? Type458 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response8? Type459 { get; set; } + public global::Cohere.Rerankv2Response9? Type459 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response9? Type460 { get; set; } + public global::Cohere.Rerankv2Response10? Type460 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response10? Type461 { get; set; } + public global::Cohere.Rerankv2Response11? Type461 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response11? Type462 { get; set; } + public global::Cohere.Rerankv2Response12? Type462 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response12? Type463 { get; set; } + public global::Cohere.Rerankv2Response13? Type463 { get; set; } /// /// /// - public global::Cohere.Rerankv2Response13? Type464 { get; set; } + public global::Cohere.ClassifyResponse? Type464 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse? Type465 { get; set; } + public global::System.Collections.Generic.IList? Type465 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type466 { get; set; } + public global::Cohere.ClassifyResponseClassification? Type466 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassification? Type467 { get; set; } + public global::System.Collections.Generic.Dictionary? Type467 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type468 { get; set; } + public global::Cohere.ClassifyResponseClassificationLabels2? Type468 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassificationLabels2? Type469 { get; set; } + public global::Cohere.ClassifyResponseClassificationClassificationType? Type469 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassificationClassificationType? Type470 { get; set; } + public global::Cohere.ClassifyResponse2? Type470 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse2? Type471 { get; set; } + public global::Cohere.ClassifyResponse3? Type471 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse3? Type472 { get; set; } + public global::Cohere.ClassifyResponse4? Type472 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse4? Type473 { get; set; } + public global::Cohere.ClassifyResponse5? Type473 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse5? Type474 { get; set; } + public global::Cohere.ClassifyResponse6? Type474 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse6? Type475 { get; set; } + public global::Cohere.ClassifyResponse7? Type475 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse7? Type476 { get; set; } + public global::Cohere.ClassifyResponse8? Type476 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse8? Type477 { get; set; } + public global::Cohere.ClassifyResponse9? Type477 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse9? Type478 { get; set; } + public global::Cohere.ClassifyResponse10? Type478 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse10? Type479 { get; set; } + public global::Cohere.ClassifyResponse11? Type479 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse11? Type480 { get; set; } + public global::Cohere.ClassifyResponse12? Type480 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse12? Type481 { get; set; } + public global::Cohere.ClassifyResponse13? Type481 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse13? Type482 { get; set; } + public global::Cohere.CreateDatasetResponse? Type482 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse? Type483 { get; set; } + public global::Cohere.CreateDatasetResponse2? Type483 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse2? Type484 { get; set; } + public global::Cohere.CreateDatasetResponse3? Type484 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse3? Type485 { get; set; } + public global::Cohere.CreateDatasetResponse4? Type485 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse4? Type486 { get; set; } + public global::Cohere.CreateDatasetResponse5? Type486 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse5? Type487 { get; set; } + public global::Cohere.CreateDatasetResponse6? Type487 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse6? Type488 { get; set; } + public global::Cohere.CreateDatasetResponse7? Type488 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse7? Type489 { get; set; } + public global::Cohere.CreateDatasetResponse8? Type489 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse8? Type490 { get; set; } + public global::Cohere.CreateDatasetResponse9? Type490 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse9? Type491 { get; set; } + public global::Cohere.CreateDatasetResponse10? Type491 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse10? Type492 { get; set; } + public global::Cohere.CreateDatasetResponse11? Type492 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse11? Type493 { get; set; } + public global::Cohere.CreateDatasetResponse12? Type493 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse12? Type494 { get; set; } + public global::Cohere.CreateDatasetResponse13? Type494 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse13? Type495 { get; set; } + public global::Cohere.ListDatasetsResponse? Type495 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse? Type496 { get; set; } + public global::System.Collections.Generic.IList? Type496 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type497 { get; set; } + public global::Cohere.ListDatasetsResponse2? Type497 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse2? Type498 { get; set; } + public global::Cohere.ListDatasetsResponse3? Type498 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse3? Type499 { get; set; } + public global::Cohere.ListDatasetsResponse4? Type499 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse4? Type500 { get; set; } + public global::Cohere.ListDatasetsResponse5? Type500 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse5? Type501 { get; set; } + public global::Cohere.ListDatasetsResponse6? Type501 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse6? Type502 { get; set; } + public global::Cohere.ListDatasetsResponse7? Type502 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse7? Type503 { get; set; } + public global::Cohere.ListDatasetsResponse8? Type503 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse8? Type504 { get; set; } + public global::Cohere.ListDatasetsResponse9? Type504 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse9? Type505 { get; set; } + public global::Cohere.ListDatasetsResponse10? Type505 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse10? Type506 { get; set; } + public global::Cohere.ListDatasetsResponse11? Type506 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse11? Type507 { get; set; } + public global::Cohere.ListDatasetsResponse12? Type507 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse12? Type508 { get; set; } + public global::Cohere.ListDatasetsResponse13? Type508 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse13? Type509 { get; set; } + public global::Cohere.GetDatasetUsageResponse? Type509 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse? Type510 { get; set; } + public global::Cohere.GetDatasetUsageResponse2? Type510 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse2? Type511 { get; set; } + public global::Cohere.GetDatasetUsageResponse3? Type511 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse3? Type512 { get; set; } + public global::Cohere.GetDatasetUsageResponse4? Type512 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse4? Type513 { get; set; } + public global::Cohere.GetDatasetUsageResponse5? Type513 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse5? Type514 { get; set; } + public global::Cohere.GetDatasetUsageResponse6? Type514 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse6? Type515 { get; set; } + public global::Cohere.GetDatasetUsageResponse7? Type515 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse7? Type516 { get; set; } + public global::Cohere.GetDatasetUsageResponse8? Type516 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse8? Type517 { get; set; } + public global::Cohere.GetDatasetUsageResponse9? Type517 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse9? Type518 { get; set; } + public global::Cohere.GetDatasetUsageResponse10? Type518 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse10? Type519 { get; set; } + public global::Cohere.GetDatasetUsageResponse11? Type519 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse11? Type520 { get; set; } + public global::Cohere.GetDatasetUsageResponse12? Type520 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse12? Type521 { get; set; } + public global::Cohere.GetDatasetUsageResponse13? Type521 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse13? Type522 { get; set; } + public global::Cohere.GetDatasetResponse? Type522 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse? Type523 { get; set; } + public global::Cohere.GetDatasetResponse2? Type523 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse2? Type524 { get; set; } + public global::Cohere.GetDatasetResponse3? Type524 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse3? Type525 { get; set; } + public global::Cohere.GetDatasetResponse4? Type525 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse4? Type526 { get; set; } + public global::Cohere.GetDatasetResponse5? Type526 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse5? Type527 { get; set; } + public global::Cohere.GetDatasetResponse6? Type527 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse6? Type528 { get; set; } + public global::Cohere.GetDatasetResponse7? Type528 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse7? Type529 { get; set; } + public global::Cohere.GetDatasetResponse8? Type529 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse8? Type530 { get; set; } + public global::Cohere.GetDatasetResponse9? Type530 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse9? Type531 { get; set; } + public global::Cohere.GetDatasetResponse10? Type531 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse10? Type532 { get; set; } + public global::Cohere.GetDatasetResponse11? Type532 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse11? Type533 { get; set; } + public global::Cohere.GetDatasetResponse12? Type533 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse12? Type534 { get; set; } + public global::Cohere.GetDatasetResponse13? Type534 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse13? Type535 { get; set; } + public global::Cohere.DeleteDatasetResponse2? Type535 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse2? Type536 { get; set; } + public global::Cohere.DeleteDatasetResponse3? Type536 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse3? Type537 { get; set; } + public global::Cohere.DeleteDatasetResponse4? Type537 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse4? Type538 { get; set; } + public global::Cohere.DeleteDatasetResponse5? Type538 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse5? Type539 { get; set; } + public global::Cohere.DeleteDatasetResponse6? Type539 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse6? Type540 { get; set; } + public global::Cohere.DeleteDatasetResponse7? Type540 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse7? Type541 { get; set; } + public global::Cohere.DeleteDatasetResponse8? Type541 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse8? Type542 { get; set; } + public global::Cohere.DeleteDatasetResponse9? Type542 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse9? Type543 { get; set; } + public global::Cohere.DeleteDatasetResponse10? Type543 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse10? Type544 { get; set; } + public global::Cohere.DeleteDatasetResponse11? Type544 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse11? Type545 { get; set; } + public global::Cohere.DeleteDatasetResponse12? Type545 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse12? Type546 { get; set; } + public global::Cohere.DeleteDatasetResponse13? Type546 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse13? Type547 { get; set; } + public global::Cohere.SummarizeResponse? Type547 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse? Type548 { get; set; } + public global::Cohere.SummarizeResponse2? Type548 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse2? Type549 { get; set; } + public global::Cohere.SummarizeResponse3? Type549 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse3? Type550 { get; set; } + public global::Cohere.SummarizeResponse4? Type550 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse4? Type551 { get; set; } + public global::Cohere.SummarizeResponse5? Type551 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse5? Type552 { get; set; } + public global::Cohere.SummarizeResponse6? Type552 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse6? Type553 { get; set; } + public global::Cohere.SummarizeResponse7? Type553 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse7? Type554 { get; set; } + public global::Cohere.SummarizeResponse8? Type554 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse8? Type555 { get; set; } + public global::Cohere.SummarizeResponse9? Type555 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse9? Type556 { get; set; } + public global::Cohere.SummarizeResponse10? Type556 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse10? Type557 { get; set; } + public global::Cohere.SummarizeResponse11? Type557 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse11? Type558 { get; set; } + public global::Cohere.SummarizeResponse12? Type558 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse12? Type559 { get; set; } + public global::Cohere.SummarizeResponse13? Type559 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse13? Type560 { get; set; } + public global::Cohere.TokenizeResponse? Type560 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse? Type561 { get; set; } + public global::Cohere.TokenizeResponse2? Type561 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse2? Type562 { get; set; } + public global::Cohere.TokenizeResponse3? Type562 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse3? Type563 { get; set; } + public global::Cohere.TokenizeResponse4? Type563 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse4? Type564 { get; set; } + public global::Cohere.TokenizeResponse5? Type564 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse5? Type565 { get; set; } + public global::Cohere.TokenizeResponse6? Type565 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse6? Type566 { get; set; } + public global::Cohere.TokenizeResponse7? Type566 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse7? Type567 { get; set; } + public global::Cohere.TokenizeResponse8? Type567 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse8? Type568 { get; set; } + public global::Cohere.TokenizeResponse9? Type568 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse9? Type569 { get; set; } + public global::Cohere.TokenizeResponse10? Type569 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse10? Type570 { get; set; } + public global::Cohere.TokenizeResponse11? Type570 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse11? Type571 { get; set; } + public global::Cohere.TokenizeResponse12? Type571 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse12? Type572 { get; set; } + public global::Cohere.TokenizeResponse13? Type572 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse13? Type573 { get; set; } + public global::Cohere.DetokenizeResponse? Type573 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse? Type574 { get; set; } + public global::Cohere.DetokenizeResponse2? Type574 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse2? Type575 { get; set; } + public global::Cohere.DetokenizeResponse3? Type575 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse3? Type576 { get; set; } + public global::Cohere.DetokenizeResponse4? Type576 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse4? Type577 { get; set; } + public global::Cohere.DetokenizeResponse5? Type577 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse5? Type578 { get; set; } + public global::Cohere.DetokenizeResponse6? Type578 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse6? Type579 { get; set; } + public global::Cohere.DetokenizeResponse7? Type579 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse7? Type580 { get; set; } + public global::Cohere.DetokenizeResponse8? Type580 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse8? Type581 { get; set; } + public global::Cohere.DetokenizeResponse9? Type581 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse9? Type582 { get; set; } + public global::Cohere.DetokenizeResponse10? Type582 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse10? Type583 { get; set; } + public global::Cohere.DetokenizeResponse11? Type583 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse11? Type584 { get; set; } + public global::Cohere.DetokenizeResponse12? Type584 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse12? Type585 { get; set; } + public global::Cohere.DetokenizeResponse13? Type585 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse13? Type586 { get; set; } + public global::Cohere.ListConnectorsResponse2? Type586 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse2? Type587 { get; set; } + public global::Cohere.ListConnectorsResponse3? Type587 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse3? Type588 { get; set; } + public global::Cohere.ListConnectorsResponse4? Type588 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse4? Type589 { get; set; } + public global::Cohere.ListConnectorsResponse5? Type589 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse5? Type590 { get; set; } + public global::Cohere.ListConnectorsResponse6? Type590 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse6? Type591 { get; set; } + public global::Cohere.ListConnectorsResponse7? Type591 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse7? Type592 { get; set; } + public global::Cohere.ListConnectorsResponse8? Type592 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse8? Type593 { get; set; } + public global::Cohere.ListConnectorsResponse9? Type593 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse9? Type594 { get; set; } + public global::Cohere.ListConnectorsResponse10? Type594 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse10? Type595 { get; set; } + public global::Cohere.ListConnectorsResponse11? Type595 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse11? Type596 { get; set; } + public global::Cohere.ListConnectorsResponse12? Type596 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse12? Type597 { get; set; } + public global::Cohere.ListConnectorsResponse13? Type597 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse13? Type598 { get; set; } + public global::Cohere.CreateConnectorResponse2? Type598 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse2? Type599 { get; set; } + public global::Cohere.CreateConnectorResponse3? Type599 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse3? Type600 { get; set; } + public global::Cohere.CreateConnectorResponse4? Type600 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse4? Type601 { get; set; } + public global::Cohere.CreateConnectorResponse5? Type601 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse5? Type602 { get; set; } + public global::Cohere.CreateConnectorResponse6? Type602 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse6? Type603 { get; set; } + public global::Cohere.CreateConnectorResponse7? Type603 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse7? Type604 { get; set; } + public global::Cohere.CreateConnectorResponse8? Type604 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse8? Type605 { get; set; } + public global::Cohere.CreateConnectorResponse9? Type605 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse9? Type606 { get; set; } + public global::Cohere.CreateConnectorResponse10? Type606 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse10? Type607 { get; set; } + public global::Cohere.CreateConnectorResponse11? Type607 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse11? Type608 { get; set; } + public global::Cohere.CreateConnectorResponse12? Type608 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse12? Type609 { get; set; } + public global::Cohere.CreateConnectorResponse13? Type609 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse13? Type610 { get; set; } + public global::Cohere.GetConnectorResponse2? Type610 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse2? Type611 { get; set; } + public global::Cohere.GetConnectorResponse3? Type611 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse3? Type612 { get; set; } + public global::Cohere.GetConnectorResponse4? Type612 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse4? Type613 { get; set; } + public global::Cohere.GetConnectorResponse5? Type613 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse5? Type614 { get; set; } + public global::Cohere.GetConnectorResponse6? Type614 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse6? Type615 { get; set; } + public global::Cohere.GetConnectorResponse7? Type615 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse7? Type616 { get; set; } + public global::Cohere.GetConnectorResponse8? Type616 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse8? Type617 { get; set; } + public global::Cohere.GetConnectorResponse9? Type617 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse9? Type618 { get; set; } + public global::Cohere.GetConnectorResponse10? Type618 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse10? Type619 { get; set; } + public global::Cohere.GetConnectorResponse11? Type619 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse11? Type620 { get; set; } + public global::Cohere.GetConnectorResponse12? Type620 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse12? Type621 { get; set; } + public global::Cohere.GetConnectorResponse13? Type621 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse13? Type622 { get; set; } + public global::Cohere.UpdateConnectorResponse2? Type622 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse2? Type623 { get; set; } + public global::Cohere.UpdateConnectorResponse3? Type623 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse3? Type624 { get; set; } + public global::Cohere.UpdateConnectorResponse4? Type624 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse4? Type625 { get; set; } + public global::Cohere.UpdateConnectorResponse5? Type625 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse5? Type626 { get; set; } + public global::Cohere.UpdateConnectorResponse6? Type626 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse6? Type627 { get; set; } + public global::Cohere.UpdateConnectorResponse7? Type627 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse7? Type628 { get; set; } + public global::Cohere.UpdateConnectorResponse8? Type628 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse8? Type629 { get; set; } + public global::Cohere.UpdateConnectorResponse9? Type629 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse9? Type630 { get; set; } + public global::Cohere.UpdateConnectorResponse10? Type630 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse10? Type631 { get; set; } + public global::Cohere.UpdateConnectorResponse11? Type631 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse11? Type632 { get; set; } + public global::Cohere.UpdateConnectorResponse12? Type632 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse12? Type633 { get; set; } + public global::Cohere.UpdateConnectorResponse13? Type633 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse13? Type634 { get; set; } + public global::Cohere.DeleteConnectorResponse2? Type634 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse2? Type635 { get; set; } + public global::Cohere.DeleteConnectorResponse3? Type635 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse3? Type636 { get; set; } + public global::Cohere.DeleteConnectorResponse4? Type636 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse4? Type637 { get; set; } + public global::Cohere.DeleteConnectorResponse5? Type637 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse5? Type638 { get; set; } + public global::Cohere.DeleteConnectorResponse6? Type638 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse6? Type639 { get; set; } + public global::Cohere.DeleteConnectorResponse7? Type639 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse7? Type640 { get; set; } + public global::Cohere.DeleteConnectorResponse8? Type640 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse8? Type641 { get; set; } + public global::Cohere.DeleteConnectorResponse9? Type641 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse9? Type642 { get; set; } + public global::Cohere.DeleteConnectorResponse10? Type642 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse10? Type643 { get; set; } + public global::Cohere.DeleteConnectorResponse11? Type643 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse11? Type644 { get; set; } + public global::Cohere.DeleteConnectorResponse12? Type644 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse12? Type645 { get; set; } + public global::Cohere.DeleteConnectorResponse13? Type645 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse13? Type646 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse? Type646 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse? Type647 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse2? Type647 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse2? Type648 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse3? Type648 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse3? Type649 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse4? Type649 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse4? Type650 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse5? Type650 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse5? Type651 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse6? Type651 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse6? Type652 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse7? Type652 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse7? Type653 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse8? Type653 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse8? Type654 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse9? Type654 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse9? Type655 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse10? Type655 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse10? Type656 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse11? Type656 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse11? Type657 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse12? Type657 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse12? Type658 { get; set; } + public global::Cohere.GetModelResponse2? Type658 { get; set; } /// /// /// - public global::Cohere.GetModelResponse2? Type659 { get; set; } + public global::Cohere.GetModelResponse3? Type659 { get; set; } /// /// /// - public global::Cohere.GetModelResponse3? Type660 { get; set; } + public global::Cohere.GetModelResponse4? Type660 { get; set; } /// /// /// - public global::Cohere.GetModelResponse4? Type661 { get; set; } + public global::Cohere.GetModelResponse5? Type661 { get; set; } /// /// /// - public global::Cohere.GetModelResponse5? Type662 { get; set; } + public global::Cohere.GetModelResponse6? Type662 { get; set; } /// /// /// - public global::Cohere.GetModelResponse6? Type663 { get; set; } + public global::Cohere.GetModelResponse7? Type663 { get; set; } /// /// /// - public global::Cohere.GetModelResponse7? Type664 { get; set; } + public global::Cohere.GetModelResponse8? Type664 { get; set; } /// /// /// - public global::Cohere.GetModelResponse8? Type665 { get; set; } + public global::Cohere.GetModelResponse9? Type665 { get; set; } /// /// /// - public global::Cohere.GetModelResponse9? Type666 { get; set; } + public global::Cohere.GetModelResponse10? Type666 { get; set; } /// /// /// - public global::Cohere.GetModelResponse10? Type667 { get; set; } + public global::Cohere.GetModelResponse11? Type667 { get; set; } /// /// /// - public global::Cohere.GetModelResponse11? Type668 { get; set; } + public global::Cohere.GetModelResponse12? Type668 { get; set; } /// /// /// - public global::Cohere.GetModelResponse12? Type669 { get; set; } + public global::Cohere.GetModelResponse13? Type669 { get; set; } /// /// /// - public global::Cohere.GetModelResponse13? Type670 { get; set; } + public global::Cohere.ListModelsResponse2? Type670 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse2? Type671 { get; set; } + public global::Cohere.ListModelsResponse3? Type671 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse3? Type672 { get; set; } + public global::Cohere.ListModelsResponse4? Type672 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse4? Type673 { get; set; } + public global::Cohere.ListModelsResponse5? Type673 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse5? Type674 { get; set; } + public global::Cohere.ListModelsResponse6? Type674 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse6? Type675 { get; set; } + public global::Cohere.ListModelsResponse7? Type675 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse7? Type676 { get; set; } + public global::Cohere.ListModelsResponse8? Type676 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse8? Type677 { get; set; } + public global::Cohere.ListModelsResponse9? Type677 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse9? Type678 { get; set; } + public global::Cohere.ListModelsResponse10? Type678 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse10? Type679 { get; set; } + public global::Cohere.ListModelsResponse11? Type679 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse11? Type680 { get; set; } + public global::Cohere.ListModelsResponse12? Type680 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse12? Type681 { get; set; } + public global::Cohere.ListModelsResponse13? Type681 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse13? Type682 { get; set; } + public global::Cohere.CheckAPIKeyResponse? Type682 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse? Type683 { get; set; } + public global::Cohere.CheckAPIKeyResponse2? Type683 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse2? Type684 { get; set; } + public global::Cohere.CheckAPIKeyResponse3? Type684 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse3? Type685 { get; set; } + public global::Cohere.CheckAPIKeyResponse4? Type685 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse4? Type686 { get; set; } + public global::Cohere.CheckAPIKeyResponse5? Type686 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse5? Type687 { get; set; } + public global::Cohere.CheckAPIKeyResponse6? Type687 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse6? Type688 { get; set; } + public global::Cohere.CheckAPIKeyResponse7? Type688 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse7? Type689 { get; set; } + public global::Cohere.CheckAPIKeyResponse8? Type689 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse8? Type690 { get; set; } + public global::Cohere.CheckAPIKeyResponse9? Type690 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse9? Type691 { get; set; } + public global::Cohere.CheckAPIKeyResponse10? Type691 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse10? Type692 { get; set; } + public global::Cohere.CheckAPIKeyResponse11? Type692 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse11? Type693 { get; set; } + public global::Cohere.CheckAPIKeyResponse12? Type693 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse12? Type694 { get; set; } - /// - /// - /// - public global::Cohere.CheckAPIKeyResponse13? Type695 { get; set; } + public global::Cohere.CheckAPIKeyResponse13? Type694 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Cohere/openapi.yaml b/src/libs/Cohere/openapi.yaml index ba7ed3d..875f7a0 100644 --- a/src/libs/Cohere/openapi.yaml +++ b/src/libs/Cohere/openapi.yaml @@ -1656,7 +1656,7 @@ paths: code: "import cohere\nimport requests\nimport base64\n\nco = cohere.Client()\n\nimage = requests.get(\"https://cohere.com/favicon-32x32.png\")\nstringified_buffer = base64.b64encode(image.content).decode(\"utf-8\")\ncontent_type = image.headers[\"Content-Type\"]\nimage_base64 = f\"data:{content_type};base64,{stringified_buffer}\"\n\nresponse = co.embed(\n model=\"embed-english-v3.0\",\n input_type=\"image\",\n embedding_types=[\"float\"],\n images=[image_base64],\n)\n\nprint(response)\n" - sdk: java name: Images - code: "package embedpost; /* (C)2024 */\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.EmbedRequest;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbedResponse;\nimport com.cohere.api.types.EmbeddingType;\nimport java.io.InputStream;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.URL;\nimport java.util.Base64;\nimport java.util.List;\n\npublic class EmbedImagePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().clientName(\"snippet\").build();\n\n URL url =\n URI.toUrl(\n \"https://cohere.com/favicon-32x32.png\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.connect();\n\n InputStream inputStream = connection.getInputStream();\n byte[] buffer = inputStream.readAllBytes();\n inputStream.close();\n\n String imageBase64 =\n String.format(\n \"data:%s;base64,%s\",\n connection.getHeaderField(\"Content-Type\"), Base64.getEncoder().encodeToString(buffer));\n\n EmbedResponse response =\n cohere.embed(\n EmbedRequest.builder()\n .images(List.of(imageBase64))\n .model(\"embed-english-v3.0\")\n .inputType(EmbedInputType.IMAGE)\n .embeddingTypes(List.of(EmbeddingType.FLOAT))\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "package embedpost; /* (C)2024 */\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.requests.EmbedRequest;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbedResponse;\nimport com.cohere.api.types.EmbeddingType;\nimport java.io.InputStream;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.URL;\nimport java.util.Base64;\nimport java.util.List;\n\npublic class EmbedImagePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().clientName(\"snippet\").build();\n\n URL url = URI.toUrl(\"https://cohere.com/favicon-32x32.png\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.connect();\n\n InputStream inputStream = connection.getInputStream();\n byte[] buffer = inputStream.readAllBytes();\n inputStream.close();\n\n String imageBase64 =\n String.format(\n \"data:%s;base64,%s\",\n connection.getHeaderField(\"Content-Type\"), Base64.getEncoder().encodeToString(buffer));\n\n EmbedResponse response =\n cohere.embed(\n EmbedRequest.builder()\n .images(List.of(imageBase64))\n .model(\"embed-english-v3.0\")\n .inputType(EmbedInputType.IMAGE)\n .embeddingTypes(List.of(EmbeddingType.FLOAT))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: Images 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 \"input_type\": \"image\", \n \"embedding_types\": [\"float\"],\n \"images\": [\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiIdGx0iKiUlKjQyNEREXP/CABEIAZABkAMBIgACEQEDEQH/xAAdAAEAAQQDAQAAAAAAAAAAAAAABwEFBggCAwQJ/9oACAEBAAAAAN/gAAAAAAAAAAAAAAAAAAAAAAAAAAHTg9j6agAAp23/ADjsAAAPFrlAUYeagA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Bh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q==\"]\n }'" @@ -4924,7 +4924,7 @@ paths: code: "import cohere\nimport requests\nimport base64\n\nco = cohere.ClientV2()\n\nimage = requests.get(\"https://cohere.com/favicon-32x32.png\")\nstringified_buffer = base64.b64encode(image.content).decode(\"utf-8\")\ncontent_type = image.headers[\"Content-Type\"]\nimage_base64 = f\"data:{content_type};base64,{stringified_buffer}\"\n\nresponse = co.embed(\n model=\"embed-english-v3.0\",\n input_type=\"image\",\n embedding_types=[\"float\"],\n images=[image_base64],\n)\n\nprint(response)\n" - sdk: java name: Images - code: "package embedv2post; /* (C)2024 */\n\nimport java.io.InputStream;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.URL;\nimport java.util.Base64;\nimport java.util.List;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2EmbedRequest;\nimport com.cohere.api.types.EmbedByTypeResponse;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbeddingType;\n\npublic class EmbedImagePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().clientName(\"snippet\").build();\n\n URL url =\n URI.toUrl(\n \"https://cohere.com/favicon-32x32.png\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.connect();\n\n InputStream inputStream = connection.getInputStream();\n byte[] buffer = inputStream.readAllBytes();\n inputStream.close();\n\n String imageBase64 =\n String.format(\n \"data:%s;base64,%s\",\n connection.getHeaderField(\"Content-Type\"), Base64.getEncoder().encodeToString(buffer));\n\n EmbedByTypeResponse response =\n cohere\n .v2()\n .embed(\n V2EmbedRequest.builder()\n .model(\"embed-english-v3.0\")\n .inputType(EmbedInputType.IMAGE)\n .images(List.of(imageBase64))\n .embeddingTypes(List.of(EmbeddingType.FLOAT))\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "package embedv2post; /* (C)2024 */\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2EmbedRequest;\nimport com.cohere.api.types.EmbedByTypeResponse;\nimport com.cohere.api.types.EmbedInputType;\nimport com.cohere.api.types.EmbeddingType;\nimport java.io.InputStream;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.URL;\nimport java.util.Base64;\nimport java.util.List;\n\npublic class EmbedImagePost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().clientName(\"snippet\").build();\n\n URL url = URI.toUrl(\"https://cohere.com/favicon-32x32.png\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.connect();\n\n InputStream inputStream = connection.getInputStream();\n byte[] buffer = inputStream.readAllBytes();\n inputStream.close();\n\n String imageBase64 =\n String.format(\n \"data:%s;base64,%s\",\n connection.getHeaderField(\"Content-Type\"), Base64.getEncoder().encodeToString(buffer));\n\n EmbedByTypeResponse response =\n cohere\n .v2()\n .embed(\n V2EmbedRequest.builder()\n .model(\"embed-english-v3.0\")\n .inputType(EmbedInputType.IMAGE)\n .images(List.of(imageBase64))\n .embeddingTypes(List.of(EmbeddingType.FLOAT))\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: Images code: "curl --request POST \\\n --url https://api.cohere.com/v2/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 \"input_type\": \"image\", \n \"embedding_types\": [\"float\"],\n \"images\": [\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiIdGx0iKiUlKjQyNEREXP/CABEIAZABkAMBIgACEQEDEQH/xAAdAAEAAQQDAQAAAAAAAAAAAAAABwEFBggCAwQJ/9oACAEBAAAAAN/gAAAAAAAAAAAAAAAAAAAAAAAAAAHTg9j6agAAp23/ADjsAAAPFrlAUYeagAAArdZ12uzcAAKax6jWUAAAAO/bna+oAC1aBxAAAAAAbM7rVABYvnRgYAAAAAbwbIABw+cMYAAAAAAvH1CuwA091RAAAAAAbpbPAGJfMXzAAAAAAJk+hdQGlmsQAAAAABk31JqBx+V1iAAAAAALp9W6gRp826AAAAAAGS/UqoGuGjwAAAAAAl76I1A1K1EAAAAAAG5G1ADUHU0AAAAAAu/1Cu4DVbTgAAAAAA3n2JAIG0IAAAAAArt3toAMV+XfEAAAAAL1uzPlQBT5qR2AAAAAenZDbm/AAa06SgAAAAerYra/LQADp+YmIAAAAC77J7Q5KAACIPnjwAAAAzbZzY24gAAGq+m4AAA7Zo2cmaoAAANWdOOAAAMl2N2TysAAAApEOj2HgAOyYtl5w5jw4zZPJyuGQ5H2AAAdes+suDUAVyfYbZTLajG8HxjgD153n3IAABH8QxxiVo4XPKpGlyTKjowvCbUAF4mD3AAACgqCzYPiPQ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Ke6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q==\"]\n }'" @@ -5991,7 +5991,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\"],\n model=\"embed-english-v3.0\",\n input_type=\"classification\",\n )\n print(response)\n\n\nasyncio.run(main())\n" - sdk: java name: Texts - code: "package embedv2post; /* (C)2024 */\n\nimport java.util.List;\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2EmbedRequest;\nimport com.cohere.api.types.EmbedByTypeResponse;\nimport com.cohere.api.types.EmbedInputType;\n\npublic class EmbedPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().clientName(\"snippet\").build();\n\n EmbedByTypeResponse response =\n cohere\n .v2()\n .embed(\n V2EmbedRequest.builder()\n .model(\"embed-english-v3.0\")\n .texts(List.of(\"hello\", \"goodbye\"))\n .inputType(EmbedInputType.CLASSIFICATION)\n .build());\n\n System.out.println(response);\n }\n}\n" + code: "package embedv2post; /* (C)2024 */\n\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2EmbedRequest;\nimport com.cohere.api.types.EmbedByTypeResponse;\nimport com.cohere.api.types.EmbedInputType;\nimport java.util.List;\n\npublic class EmbedPost {\n public static void main(String[] args) {\n Cohere cohere = Cohere.builder().clientName(\"snippet\").build();\n\n EmbedByTypeResponse response =\n cohere\n .v2()\n .embed(\n V2EmbedRequest.builder()\n .model(\"embed-english-v3.0\")\n .texts(List.of(\"hello\", \"goodbye\"))\n .inputType(EmbedInputType.CLASSIFICATION)\n .build());\n\n System.out.println(response);\n }\n}\n" - sdk: curl name: Texts code: "curl --request POST \\\n --url https://api.cohere.com/v2/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 }'" @@ -8581,7 +8581,7 @@ paths: properties: model: type: string - description: "The identifier of the model to use. \nSupported models:\n - `rerank-english-v3.0`\n - `rerank-multilingual-v3.0`\n - `rerank-english-v2.0`\n - `rerank-multilingual-v2.0`" + description: "The identifier of the model to use.\n\nSupported models:\n - `rerank-english-v3.0`\n - `rerank-multilingual-v3.0`\n - `rerank-english-v2.0`\n - `rerank-multilingual-v2.0`" x-fern-audiences: - public query: @@ -8592,22 +8592,14 @@ paths: documents: type: array items: - oneOf: - - type: string - - $ref: '#/components/schemas/RerankDocument' - description: "A list of texts that will be compared to the `query`.\nFor optimal performance we recommend against sending more than 1,000 documents in a single request.\n\n**Note**: long documents will automatically be truncated to the value of `max_tokens_per_doc`.\n**Note**: structured data should be formatted as YAML strings for best performance. " + type: string + description: "A list of texts that will be compared to the `query`.\nFor optimal performance we recommend against sending more than 1,000 documents in a single request.\n\n**Note**: long documents will automatically be truncated to the value of `max_tokens_per_doc`.\n\n**Note**: structured data should be formatted as YAML strings for best performance. " x-fern-audiences: - public top_n: minimum: 1 type: integer - description: 'Limits the returned number of rerank results to the specified value. If not passed, all the rerank results will be returned.' - x-fern-audiences: - - public - return_documents: - type: boolean - description: "- If false, returns results without the doc text - the api will return a list of {index, relevance score} where index is inferred from the list passed into the request.\n- If true, returns results with the doc text passed in - the api will return an ordered list of {index, text, relevance score} where index + text refers to the list passed into the request." - default: false + description: 'Limits the number of returned rerank results to the specified value. If not passed, all the rerank results will be returned.' x-fern-audiences: - public max_tokens_per_doc: @@ -8639,19 +8631,6 @@ paths: - relevance_score type: object properties: - document: - required: - - text - type: object - properties: - text: - type: string - description: The text of the document to rerank - x-fern-audiences: - - public - description: 'If `return_documents` is set as `false` this will return none, if `true` it will return the documents passed in' - x-fern-audiences: - - public index: type: integer description: 'Corresponds to the index in the original list of documents to which the ranked document belongs. (i.e. if the first value in the `results` object has an `index` value of 3, it means in the list of documents passed in, the document at `index=3` had the highest relevance)' @@ -8705,26 +8684,26 @@ paths: - code-samples: - sdk: typescript name: Cohere TypeScript SDK - code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({});\n\n(async () => {\n const rerank = await cohere.v2.rerank({\n documents: [\n { text: 'Carson City is the capital city of the American state of Nevada.' },\n {\n text: 'The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.',\n },\n {\n text: '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 },\n {\n text: '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 },\n {\n text: '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 query: 'What is the capital of the United States?',\n topN: 3,\n model: 'rerank-english-v3.0',\n });\n\n console.log(rerank);\n})();\n" + code: "const { CohereClient } = require('cohere-ai');\n\nconst cohere = new CohereClient({});\n\n(async () => {\n const rerank = await cohere.v2.rerank({\n documents: [\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 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 query: 'What is the capital of the United States?',\n topN: 3,\n model: 'rerank-english-v3.0',\n });\n\n console.log(rerank);\n})();\n" - sdk: python name: Sync - code: "import cohere\n\nco = cohere.ClientV2()\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\nresponse = co.rerank(\n model=\"rerank-english-v3.0\",\n query=\"What is the capital of the United States?\",\n documents=docs,\n top_n=3,\n)\nprint(response)\n" + code: "import cohere\n\nco = cohere.ClientV2()\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 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\nresponse = co.rerank(\n model=\"rerank-english-v3.0\",\n query=\"What is the capital of the United States?\",\n documents=docs,\n top_n=3,\n)\nprint(response)\n" - sdk: python name: Async - 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\n\nasyncio.run(main())\n" + 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 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\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().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" + code: "/* (C)2024 */\nimport com.cohere.api.Cohere;\nimport com.cohere.api.resources.v2.requests.V2RerankRequest;\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().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 \"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\"\n + \" in the Pacific Ocean. Its capital is Saipan.\",\n \"Capitalization or capitalisation in English grammar is the use of a\"\n + \" capital letter at the start of a word. English usage varies\"\n + \" from capitalization in other languages.\",\n \"Washington, D.C. (also known as simply Washington or D.C., and\"\n + \" officially as the District of Columbia) is the capital of the\"\n + \" United States. It is a federal district.\",\n \"Capital punishment has existed in the United States since before the\"\n + \" United States was a country. As of 2017, capital punishment is\"\n + \" legal 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/v2/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 }'" + code: "curl --request POST \\\n --url https://api.cohere.com/v2/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 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 }'" request: documents: - - text: Carson City is the capital city of the American state of Nevada. - - text: The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan. - - text: 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. - - text: '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.' - - text: '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.' + - Carson City is the capital city of the American state of Nevada. + - The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan. + - 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. + - '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.' + - '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.' query: What is the capital of the United States? top_n: 3 model: rerank-english-v3.0 @@ -8741,9 +8720,7 @@ paths: meta: api_version: version: '2' - is_experimental: true - warnings: - - 'You are using an experimental version, for more information please refer to https://docs.cohere.com/versioning-reference' + is_experimental: false billed_units: search_units: 1 /v1/classify: