Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public sealed partial class SchemasPredictionResponse
/// An error string if the model status is `"failed"`
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("error")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string? Error { get; set; }
public string? Error { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -187,7 +186,6 @@ public sealed partial class SchemasPredictionResponse
public SchemasPredictionResponse(
global::System.DateTime createdAt,
bool dataRemoved,
string? error,
string id,
object input,
string model,
Expand All @@ -198,14 +196,14 @@ public SchemasPredictionResponse(
global::System.DateTime? completedAt,
global::System.DateTime? deadline,
string? deployment,
string? error,
string? logs,
global::Replicate.SchemasPredictionResponseMetrics? metrics,
global::Replicate.SchemasPredictionResponseSource? source,
global::System.DateTime? startedAt)
{
this.CreatedAt = createdAt;
this.DataRemoved = dataRemoved;
this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
Expand All @@ -216,6 +214,7 @@ public SchemasPredictionResponse(
this.CompletedAt = completedAt;
this.Deadline = deadline;
this.Deployment = deployment;
this.Error = error;
this.Logs = logs;
this.Metrics = metrics;
this.Source = source;
Expand Down