Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public sealed partial class SchemasPredictionResponse
public global::System.DateTime? StartedAt { get; set; }

/// <summary>
///
/// The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Replicate.JsonConverters.SchemasPredictionResponseStatusJsonConverter))]
Expand Down Expand Up @@ -174,7 +174,9 @@ public sealed partial class SchemasPredictionResponse
/// <param name="startedAt">
/// The time that the model began the prediction
/// </param>
/// <param name="status"></param>
/// <param name="status">
/// The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts).
/// </param>
/// <param name="urls">
/// URLs for working with the prediction
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Replicate
{
/// <summary>
///
/// The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts).
/// </summary>
public enum SchemasPredictionResponseStatus
{
Expand All @@ -28,6 +28,10 @@ public enum SchemasPredictionResponseStatus
///
/// </summary>
Canceled,
/// <summary>
///
/// </summary>
Aborted,
}

/// <summary>
Expand All @@ -47,6 +51,7 @@ public static string ToValueString(this SchemasPredictionResponseStatus value)
SchemasPredictionResponseStatus.Succeeded => "succeeded",
SchemasPredictionResponseStatus.Failed => "failed",
SchemasPredictionResponseStatus.Canceled => "canceled",
SchemasPredictionResponseStatus.Aborted => "aborted",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -62,6 +67,7 @@ public static string ToValueString(this SchemasPredictionResponseStatus value)
"succeeded" => SchemasPredictionResponseStatus.Succeeded,
"failed" => SchemasPredictionResponseStatus.Failed,
"canceled" => SchemasPredictionResponseStatus.Canceled,
"aborted" => SchemasPredictionResponseStatus.Aborted,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public sealed partial class SchemasTrainingResponse
public global::System.DateTime? StartedAt { get; set; }

/// <summary>
/// The current status of the training
/// The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Replicate.JsonConverters.SchemasTrainingResponseStatusJsonConverter))]
Expand Down Expand Up @@ -137,7 +137,7 @@ public sealed partial class SchemasTrainingResponse
/// The time when the training started
/// </param>
/// <param name="status">
/// The current status of the training
/// The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts).
/// </param>
/// <param name="urls">
/// URLs for interacting with the training
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Replicate
{
/// <summary>
/// The current status of the training
/// The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts).
/// </summary>
public enum SchemasTrainingResponseStatus
{
Expand All @@ -28,6 +28,10 @@ public enum SchemasTrainingResponseStatus
///
/// </summary>
Canceled,
/// <summary>
///
/// </summary>
Aborted,
}

/// <summary>
Expand All @@ -47,6 +51,7 @@ public static string ToValueString(this SchemasTrainingResponseStatus value)
SchemasTrainingResponseStatus.Succeeded => "succeeded",
SchemasTrainingResponseStatus.Failed => "failed",
SchemasTrainingResponseStatus.Canceled => "canceled",
SchemasTrainingResponseStatus.Aborted => "aborted",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -62,6 +67,7 @@ public static string ToValueString(this SchemasTrainingResponseStatus value)
"succeeded" => SchemasTrainingResponseStatus.Succeeded,
"failed" => SchemasTrainingResponseStatus.Failed,
"canceled" => SchemasTrainingResponseStatus.Canceled,
"aborted" => SchemasTrainingResponseStatus.Aborted,
_ => null,
};
}
Expand Down
5 changes: 4 additions & 1 deletion src/libs/Replicate/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,9 @@ components:
- succeeded
- failed
- canceled
- aborted
type: string
description: "The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts).\n"
urls:
required:
- web
Expand Down Expand Up @@ -1743,8 +1745,9 @@ components:
- succeeded
- failed
- canceled
- aborted
type: string
description: The current status of the training
description: "The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts).\n"
urls:
type: object
properties:
Expand Down