Skip to content

Commit e2a3694

Browse files
Merge pull request #140 from tryAGI/bot/update-openapi_202501131827
feat:Update OpenAPI schema: Remove additionalProperties constraint on data property
2 parents e243066 + 0840311 commit e2a3694

File tree

4 files changed

+613
-620
lines changed

4 files changed

+613
-620
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ namespace Cohere
1111
public sealed partial class Document
1212
{
1313
/// <summary>
14-
/// A relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
14+
/// A relevant document that the model can cite to generate a more accurate reply. Each document is a string-any dictionary.
1515
/// </summary>
1616
[global::System.Text.Json.Serialization.JsonPropertyName("data")]
1717
[global::System.Text.Json.Serialization.JsonRequired]
18-
public required global::System.Collections.Generic.Dictionary<string, string> Data { get; set; }
18+
public required object Data { get; set; }
1919

2020
/// <summary>
2121
/// Unique identifier for this document which will be referenced in citations. If not provided an ID will be automatically generated.
@@ -33,14 +33,14 @@ public sealed partial class Document
3333
/// Initializes a new instance of the <see cref="Document" /> class.
3434
/// </summary>
3535
/// <param name="data">
36-
/// A relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
36+
/// A relevant document that the model can cite to generate a more accurate reply. Each document is a string-any dictionary.
3737
/// </param>
3838
/// <param name="id">
3939
/// Unique identifier for this document which will be referenced in citations. If not provided an ID will be automatically generated.
4040
/// </param>
4141
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
4242
public Document(
43-
global::System.Collections.Generic.Dictionary<string, string> data,
43+
object data,
4444
string? id)
4545
{
4646
this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data));

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Cohere
55
{
66
/// <summary>
7-
/// A relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
7+
/// A relevant document that the model can cite to generate a more accurate reply. Each document is a string-any dictionary.
88
/// </summary>
99
public sealed partial class DocumentData
1010
{

0 commit comments

Comments
 (0)