Skip to content

Commit 10db703

Browse files
authored
Merge pull request #176 from tryAGI/bot/update-openapi_202504151522
feat:@coderabbitai
2 parents 7ec324e + 04302fd commit 10db703

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/libs/Cohere/Generated/Cohere.Models.EmbedByTypeResponse.g.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public sealed partial class EmbedByTypeResponse
4646
/// The text entries for which embeddings were returned.
4747
/// </summary>
4848
[global::System.Text.Json.Serialization.JsonPropertyName("texts")]
49-
public global::System.Collections.Generic.IList<string>? Texts { get; set; }
49+
[global::System.Text.Json.Serialization.JsonRequired]
50+
public required global::System.Collections.Generic.IList<string> Texts { get; set; }
5051

5152
/// <summary>
5253
/// Additional properties that are not explicitly defined in the schema
@@ -75,18 +76,18 @@ public sealed partial class EmbedByTypeResponse
7576
#endif
7677
public EmbedByTypeResponse(
7778
string id,
79+
global::System.Collections.Generic.IList<string> texts,
7880
global::System.Collections.Generic.IList<global::Cohere.Image>? images,
7981
global::Cohere.ApiMeta? meta,
8082
global::Cohere.EmbedByTypeResponseResponseType? responseType,
81-
global::System.Collections.Generic.IList<string>? texts,
8283
global::Cohere.EmbedByTypeResponseEmbeddings embeddings = default!)
8384
{
8485
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
86+
this.Texts = texts ?? throw new global::System.ArgumentNullException(nameof(texts));
8587
this.Embeddings = embeddings;
8688
this.Images = images;
8789
this.Meta = meta;
8890
this.ResponseType = responseType;
89-
this.Texts = texts;
9091
}
9192

9293
/// <summary>

src/libs/Cohere/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12851,6 +12851,7 @@ components:
1285112851
required:
1285212852
- id
1285312853
- embeddings
12854+
- texts
1285412855
- api_version
1285512856
type: object
1285612857
properties:

0 commit comments

Comments
 (0)