Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 17, 2024
1 parent 5b0b61f commit 261b1a9
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public partial interface IMultiVectorClient
global::Jina.AnyOf<global::System.Collections.Generic.IList<string>, string, global::System.Collections.Generic.IList<global::Jina.ApiSchemasEmbeddingTextDoc>, global::Jina.ApiSchemasEmbeddingTextDoc> input,
global::Jina.TextEmbeddingAPIInputInputType? inputType = global::Jina.TextEmbeddingAPIInputInputType.Document,
global::Jina.AnyOf<global::Jina.TextEmbeddingAPIInputEmbeddingType?, global::System.Collections.Generic.IList<global::Jina.TextEmbeddingAPIInputEmbeddingTypeItem>>? embeddingType = default,
int dimensions = default,
int? dimensions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 2 additions & 2 deletions src/libs/Jina/Generated/Jina.IRerankClient.Rank.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public partial interface IRerankClient
string model,
global::Jina.AnyOf<string, global::Jina.ApiSchemasRankTextDoc> query,
global::Jina.AnyOf<global::System.Collections.Generic.IList<string>, global::System.Collections.Generic.IList<global::Jina.ApiSchemasRankTextDoc>> documents,
int topN = default,
bool returnDocuments = true,
int? topN = default,
bool? returnDocuments = true,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public sealed partial class BulkEmbeddingJobResponse
/// Time of creation of the job.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
public global::System.DateTime CreatedAt { get; set; }
public global::System.DateTime? CreatedAt { get; set; }

/// <summary>
/// Time of completion of the job.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("completed_at")]
public global::System.DateTime CompletedAt { get; set; }
public global::System.DateTime? CompletedAt { get; set; }

/// <summary>
/// The error message of the job
Expand All @@ -80,7 +80,7 @@ public sealed partial class BulkEmbeddingJobResponse
/// The number of tokens used for the job
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("used_token_count")]
public int UsedTokenCount { get; set; }
public int? UsedTokenCount { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public sealed partial class ImageEmbeddingInput
/// Flag to determine if the embeddings should be normalized to have a unit L2 norm
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("normalized")]
public bool Normalized { get; set; }
public bool? Normalized { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed partial class MixedEmbeddingInput
/// Flag to determine if the embeddings should be normalized to have a unit L2 norm
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("normalized")]
public bool Normalized { get; set; }
public bool? Normalized { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Jina/Generated/Jina.Models.RankAPIInput.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ public sealed partial class RankAPIInput
/// The number of most relevant documents or indices to return, defaults to the length of `documents`
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("top_n")]
public int TopN { get; set; }
public int? TopN { get; set; }

/// <summary>
/// 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. Defaults to true<br/>
/// Default Value: true
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("return_documents")]
public bool ReturnDocuments { get; set; } = true;
public bool? ReturnDocuments { get; set; } = true;

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public sealed partial class TextEmbeddingAPIInput
/// Dimensions of the vectors to be returned. Only valid for v2 colbert models. Defaults to 128
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("dimensions")]
public int Dimensions { get; set; }
public int? Dimensions { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed partial class TextEmbeddingInput
/// Flag to determine if the embeddings should be normalized to have a unit L2 norm
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("normalized")]
public bool Normalized { get; set; }
public bool? Normalized { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessCreateMultiVectorResponseContent(
global::Jina.AnyOf<global::System.Collections.Generic.IList<string>, string, global::System.Collections.Generic.IList<global::Jina.ApiSchemasEmbeddingTextDoc>, global::Jina.ApiSchemasEmbeddingTextDoc> input,
global::Jina.TextEmbeddingAPIInputInputType? inputType = global::Jina.TextEmbeddingAPIInputInputType.Document,
global::Jina.AnyOf<global::Jina.TextEmbeddingAPIInputEmbeddingType?, global::System.Collections.Generic.IList<global::Jina.TextEmbeddingAPIInputEmbeddingTypeItem>>? embeddingType = default,
int dimensions = default,
int? dimensions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Jina.TextEmbeddingAPIInput
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Jina/Generated/Jina.RerankClient.Rank.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ partial void ProcessRankResponseContent(
string model,
global::Jina.AnyOf<string, global::Jina.ApiSchemasRankTextDoc> query,
global::Jina.AnyOf<global::System.Collections.Generic.IList<string>, global::System.Collections.Generic.IList<global::Jina.ApiSchemasRankTextDoc>> documents,
int topN = default,
bool returnDocuments = true,
int? topN = default,
bool? returnDocuments = true,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Jina.RankAPIInput
Expand Down

0 comments on commit 261b1a9

Please sign in to comment.