File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ public sealed partial class EmbedByTypeResponse
46
46
/// The text entries for which embeddings were returned.
47
47
/// </summary>
48
48
[ 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 ; }
50
51
51
52
/// <summary>
52
53
/// Additional properties that are not explicitly defined in the schema
@@ -75,18 +76,18 @@ public sealed partial class EmbedByTypeResponse
75
76
#endif
76
77
public EmbedByTypeResponse (
77
78
string id ,
79
+ global ::System . Collections . Generic . IList < string > texts ,
78
80
global ::System . Collections . Generic . IList < global ::Cohere . Image > ? images ,
79
81
global ::Cohere . ApiMeta ? meta ,
80
82
global ::Cohere . EmbedByTypeResponseResponseType ? responseType ,
81
- global ::System . Collections . Generic . IList < string > ? texts ,
82
83
global ::Cohere . EmbedByTypeResponseEmbeddings embeddings = default ! )
83
84
{
84
85
this . Id = id ?? throw new global ::System . ArgumentNullException ( nameof ( id ) ) ;
86
+ this . Texts = texts ?? throw new global ::System . ArgumentNullException ( nameof ( texts ) ) ;
85
87
this . Embeddings = embeddings ;
86
88
this . Images = images ;
87
89
this . Meta = meta ;
88
90
this . ResponseType = responseType ;
89
- this . Texts = texts ;
90
91
}
91
92
92
93
/// <summary>
Original file line number Diff line number Diff line change @@ -12851,6 +12851,7 @@ components:
12851
12851
required:
12852
12852
- id
12853
12853
- embeddings
12854
+ - texts
12854
12855
- api_version
12855
12856
type: object
12856
12857
properties:
You can’t perform that action at this time.
0 commit comments