Skip to content

Commit

Permalink
Merge pull request #140 from tryAGI/bot/update-openapi_202501131827
Browse files Browse the repository at this point in the history
feat:Update OpenAPI schema: Remove additionalProperties constraint on data property
  • Loading branch information
github-actions[bot] authored Jan 13, 2025
2 parents e243066 + 0840311 commit e2a3694
Show file tree
Hide file tree
Showing 4 changed files with 613 additions and 620 deletions.
8 changes: 4 additions & 4 deletions src/libs/Cohere/Generated/Cohere.Models.Document.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ namespace Cohere
public sealed partial class Document
{
/// <summary>
/// A relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
/// A relevant document that the model can cite to generate a more accurate reply. Each document is a string-any dictionary.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.Dictionary<string, string> Data { get; set; }
public required object Data { get; set; }

/// <summary>
/// Unique identifier for this document which will be referenced in citations. If not provided an ID will be automatically generated.
Expand All @@ -33,14 +33,14 @@ public sealed partial class Document
/// Initializes a new instance of the <see cref="Document" /> class.
/// </summary>
/// <param name="data">
/// A relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
/// A relevant document that the model can cite to generate a more accurate reply. Each document is a string-any dictionary.
/// </param>
/// <param name="id">
/// Unique identifier for this document which will be referenced in citations. If not provided an ID will be automatically generated.
/// </param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public Document(
global::System.Collections.Generic.Dictionary<string, string> data,
object data,
string? id)
{
this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data));
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Cohere/Generated/Cohere.Models.DocumentData.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Cohere
{
/// <summary>
/// A relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
/// A relevant document that the model can cite to generate a more accurate reply. Each document is a string-any dictionary.
/// </summary>
public sealed partial class DocumentData
{
Expand Down
Loading

0 comments on commit e2a3694

Please sign in to comment.