Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Update OpenAPI schema: Remove additionalProperties constraint on data property #140

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading