diff --git a/src/libs/Replicate/Generated/OneOf.2.g.cs b/src/libs/Replicate/Generated/OneOf.2.g.cs
index ad2c1a7..c14b3b7 100644
--- a/src/libs/Replicate/Generated/OneOf.2.g.cs
+++ b/src/libs/Replicate/Generated/OneOf.2.g.cs
@@ -28,37 +28,36 @@ namespace Replicate
///
///
///
- public static implicit operator OneOf(T1 value) => new OneOf((T1?)value);
+#if NET6_0_OR_GREATER
+ public T2? Value2 { get; init; }
+#else
+ public T2? Value2 { get; }
+#endif
///
///
///
- public static implicit operator T1?(OneOf @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
///
///
///
- public OneOf(T1? value)
- {
- Value1 = value;
- }
+ public static implicit operator OneOf(T1 value) => new OneOf((T1?)value);
///
///
///
-#if NET6_0_OR_GREATER
- public T2? Value2 { get; init; }
-#else
- public T2? Value2 { get; }
-#endif
+ public static implicit operator T1?(OneOf @this) => @this.Value1;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public OneOf(T1? value)
+ {
+ Value1 = value;
+ }
///
///
diff --git a/src/libs/Replicate/Generated/Replicate..JsonSerializerContext.g.cs b/src/libs/Replicate/Generated/Replicate..JsonSerializerContext.g.cs
index 99c6411..22a6c10 100644
--- a/src/libs/Replicate/Generated/Replicate..JsonSerializerContext.g.cs
+++ b/src/libs/Replicate/Generated/Replicate..JsonSerializerContext.g.cs
@@ -39,6 +39,8 @@ namespace Replicate
typeof(global::Replicate.JsonConverters.ModelsListSortByNullableJsonConverter),
typeof(global::Replicate.JsonConverters.ModelsListSortDirectionJsonConverter),
typeof(global::Replicate.JsonConverters.ModelsListSortDirectionNullableJsonConverter),
+ typeof(global::Replicate.JsonConverters.PredictionsListSourceJsonConverter),
+ typeof(global::Replicate.JsonConverters.PredictionsListSourceNullableJsonConverter),
typeof(global::Replicate.JsonConverters.AccountGetResponseTypeJsonConverter),
typeof(global::Replicate.JsonConverters.AccountGetResponseTypeNullableJsonConverter),
typeof(global::Replicate.JsonConverters.OneOfJsonConverter),
diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs
index 804c537..3371217 100644
--- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs
@@ -69,7 +69,8 @@ public partial interface IReplicateApi
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs
index 66b753c..278e69b 100644
--- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs
@@ -71,7 +71,8 @@ public partial interface IReplicateApi
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs
index bb44c94..41fdf83 100644
--- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs
@@ -63,7 +63,8 @@ public partial interface IReplicateApi
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"text":"Alice"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs
index 88a1fb1..186d475 100644
--- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs
@@ -55,13 +55,19 @@ public partial interface IReplicateApi
/// `version` will be the unique ID of model version used to create the prediction.
/// `data_removed` will be `true` if the input and output data has been deleted.
///
- ///
- ///
+ ///
+ /// Example: 2025-01-01T00:00:00.0000000+00:00
+ ///
+ ///
+ /// Example: 2025-02-01T00:00:00.0000000+00:00
+ ///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PredictionsListAsync(
global::System.DateTime? createdAfter = default,
global::System.DateTime? createdBefore = default,
+ global::Replicate.PredictionsListSource? source = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSource.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSource.g.cs
new file mode 100644
index 0000000..b02b01f
--- /dev/null
+++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSource.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Replicate.JsonConverters
+{
+ ///
+ public sealed class PredictionsListSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Replicate.PredictionsListSource Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Replicate.PredictionsListSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Replicate.PredictionsListSource)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Replicate.PredictionsListSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Replicate.PredictionsListSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Replicate.PredictionsListSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSourceNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSourceNullable.g.cs
new file mode 100644
index 0000000..36b25c1
--- /dev/null
+++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSourceNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Replicate.JsonConverters
+{
+ ///
+ public sealed class PredictionsListSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Replicate.PredictionsListSource? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Replicate.PredictionsListSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Replicate.PredictionsListSource)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Replicate.PredictionsListSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Replicate.PredictionsListSource? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Replicate.PredictionsListSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs b/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs
index 1778504..d51394a 100644
--- a/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs
@@ -298,74 +298,78 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Replicate.AccountGetResponse? Type68 { get; set; }
+ public global::Replicate.PredictionsListSource? Type68 { get; set; }
///
///
///
- public global::Replicate.AccountGetResponseType? Type69 { get; set; }
+ public global::Replicate.AccountGetResponse? Type69 { get; set; }
///
///
///
- public global::Replicate.DeploymentsListResponse? Type70 { get; set; }
+ public global::Replicate.AccountGetResponseType? Type70 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type71 { get; set; }
+ public global::Replicate.DeploymentsListResponse? Type71 { get; set; }
///
///
///
- public global::Replicate.FilesListResponse? Type72 { get; set; }
+ public global::System.Collections.Generic.IList? Type72 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type73 { get; set; }
+ public global::Replicate.FilesListResponse? Type73 { get; set; }
///
///
///
- public global::Replicate.FilesCreateResponse? Type74 { get; set; }
+ public global::System.Collections.Generic.IList? Type74 { get; set; }
///
///
///
- public global::Replicate.FilesDeleteResponse? Type75 { get; set; }
+ public global::Replicate.FilesCreateResponse? Type75 { get; set; }
///
///
///
- public global::Replicate.FilesGetResponse? Type76 { get; set; }
+ public global::Replicate.FilesDeleteResponse? Type76 { get; set; }
///
///
///
- public global::Replicate.FilesDownloadResponse? Type77 { get; set; }
+ public global::Replicate.FilesGetResponse? Type77 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type78 { get; set; }
+ public global::Replicate.FilesDownloadResponse? Type78 { get; set; }
///
///
///
- public global::Replicate.HardwareListResponseItem? Type79 { get; set; }
+ public global::System.Collections.Generic.IList? Type79 { get; set; }
///
///
///
- public global::Replicate.PredictionsListResponse? Type80 { get; set; }
+ public global::Replicate.HardwareListResponseItem? Type80 { get; set; }
///
///
///
- public global::Replicate.SearchResponse? Type81 { get; set; }
+ public global::Replicate.PredictionsListResponse? Type81 { get; set; }
///
///
///
- public global::Replicate.SearchResponse2? Type82 { get; set; }
+ public global::Replicate.SearchResponse? Type82 { get; set; }
///
///
///
- public global::Replicate.TrainingsListResponse? Type83 { get; set; }
+ public global::Replicate.SearchResponse2? Type83 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type84 { get; set; }
+ public global::Replicate.TrainingsListResponse? Type84 { get; set; }
///
///
///
- public global::Replicate.WebhooksDefaultSecretGetResponse? Type85 { get; set; }
+ public global::System.Collections.Generic.IList? Type85 { get; set; }
+ ///
+ ///
+ ///
+ public global::Replicate.WebhooksDefaultSecretGetResponse? Type86 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionsListSource.g.cs b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListSource.g.cs
new file mode 100644
index 0000000..fb2304c
--- /dev/null
+++ b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListSource.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace Replicate
+{
+ ///
+ ///
+ ///
+ public enum PredictionsListSource
+ {
+ ///
+ ///
+ ///
+ Web,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class PredictionsListSourceExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this PredictionsListSource value)
+ {
+ return value switch
+ {
+ PredictionsListSource.Web => "web",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static PredictionsListSource? ToEnum(string value)
+ {
+ return value switch
+ {
+ "web" => PredictionsListSource.Web,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.g.cs
index c32acfa..7adb24f 100644
--- a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.g.cs
@@ -25,15 +25,19 @@ public sealed partial class SchemasFileResponse
public required string ContentType { get; set; }
///
- /// When the file was created
+ /// When the file was created
+ /// Example: 2024-02-21T12:54:18.5787610+00:00
///
+ /// 2024-02-21T12:54:18.5787610+00:00
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime CreatedAt { get; set; }
///
- /// When the file expires
+ /// When the file expires
+ /// Example: 2024-02-21T13:54:18.5787610+00:00
///
+ /// 2024-02-21T13:54:18.5787610+00:00
[global::System.Text.Json.Serialization.JsonPropertyName("expires_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime ExpiresAt { get; set; }
@@ -48,8 +52,10 @@ public sealed partial class SchemasFileResponse
public required string Id { get; set; }
///
- /// Metadata provided by user when the file was created
+ /// Metadata provided by user when the file was created
+ /// Example: {"customer_reference_id":123}
///
+ /// {"customer_reference_id":123}
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")]
[global::System.Text.Json.Serialization.JsonRequired]
public required object Metadata { get; set; }
@@ -87,17 +93,20 @@ public sealed partial class SchemasFileResponse
/// Example: application/zip
///
///
- /// When the file was created
+ /// When the file was created
+ /// Example: 2024-02-21T12:54:18.5787610+00:00
///
///
- /// When the file expires
+ /// When the file expires
+ /// Example: 2024-02-21T13:54:18.5787610+00:00
///
///
/// A unique, randomly-generated identifier for the file resource
/// Example: cneqzikepnug6xezperrr4z55o
///
///
- /// Metadata provided by user when the file was created
+ /// Metadata provided by user when the file was created
+ /// Example: {"customer_reference_id":123}
///
///
/// The length of the file in bytes
diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.g.cs
index e3b25dc..4531a3a 100644
--- a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.g.cs
@@ -4,7 +4,8 @@
namespace Replicate
{
///
- /// Metadata provided by user when the file was created
+ /// Metadata provided by user when the file was created
+ /// Example: {"customer_reference_id":123}
///
public sealed partial class SchemasFileResponseMetadata
{
diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs
index cc4a07c..9f7c4d3 100644
--- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs
@@ -18,8 +18,10 @@ public sealed partial class SchemasPredictionRequest
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
///
+ /// {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
[global::System.Text.Json.Serialization.JsonPropertyName("input")]
[global::System.Text.Json.Serialization.JsonRequired]
public required object Input { get; set; }
@@ -82,7 +84,8 @@ public sealed partial class SchemasPredictionRequest
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.g.cs
index 9b54704..ab60db3 100644
--- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.g.cs
@@ -13,7 +13,8 @@ namespace Replicate
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
///
public sealed partial class SchemasPredictionRequestInput
{
diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs
index 415508a..56fe87e 100644
--- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs
@@ -18,8 +18,10 @@ public sealed partial class SchemasVersionPredictionRequest
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"text":"Alice"}
///
+ /// {"text":"Alice"}
[global::System.Text.Json.Serialization.JsonPropertyName("input")]
[global::System.Text.Json.Serialization.JsonRequired]
public required object Input { get; set; }
@@ -95,7 +97,8 @@ public sealed partial class SchemasVersionPredictionRequest
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"text":"Alice"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.g.cs
index 23ed4fa..7717cea 100644
--- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.g.cs
@@ -13,7 +13,8 @@ namespace Replicate
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"text":"Alice"}
///
public sealed partial class SchemasVersionPredictionRequestInput
{
diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs
index ca23309..ee4e4b6 100644
--- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs
@@ -246,7 +246,8 @@ partial void ProcessDeploymentsPredictionsCreateResponseContent(
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.FilesDownload.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.FilesDownload.g.cs
index 7d944c3..df55bf8 100644
--- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.FilesDownload.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.FilesDownload.g.cs
@@ -60,9 +60,9 @@ partial void ProcessFilesDownloadResponseContent(
var __pathBuilder = new global::Replicate.PathBuilder(
path: $"/files/{fileId}/download",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddRequiredParameter("owner", owner)
- .AddRequiredParameter("expiry", expiry.ToString())
+ __pathBuilder
+ .AddRequiredParameter("owner", owner)
+ .AddRequiredParameter("expiry", expiry.ToString())
.AddRequiredParameter("signature", signature)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsList.g.cs
index cfe1569..b105294 100644
--- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsList.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsList.g.cs
@@ -70,8 +70,8 @@ partial void ProcessModelsListResponseContent(
var __pathBuilder = new global::Replicate.PathBuilder(
path: "/models",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ __pathBuilder
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
.AddOptionalParameter("sort_direction", sortDirection?.ToValueString())
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs
index 72a32b6..1bb93d1 100644
--- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs
@@ -248,7 +248,8 @@ partial void ProcessModelsPredictionsCreateResponseContent(
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"prompt":"Tell me a joke","system_prompt":"You are a helpful assistant"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs
index 1db5178..d09e77c 100644
--- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs
@@ -232,7 +232,8 @@ partial void ProcessPredictionsCreateResponseContent(
/// Use a data URL when:
/// - you have a small file <= 256kb
/// - you don't want to upload and host the file somewhere
- /// - you don't need to use the file again (Replicate will not store it)
+ /// - you don't need to use the file again (Replicate will not store it)
+ /// Example: {"text":"Alice"}
///
///
/// **This field is deprecated.**
diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs
index bf39945..850ccc5 100644
--- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs
@@ -8,12 +8,14 @@ public partial class ReplicateApi
partial void PreparePredictionsListArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.DateTime? createdAfter,
- ref global::System.DateTime? createdBefore);
+ ref global::System.DateTime? createdBefore,
+ ref global::Replicate.PredictionsListSource? source);
partial void PreparePredictionsListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::System.DateTime? createdAfter,
- global::System.DateTime? createdBefore);
+ global::System.DateTime? createdBefore,
+ global::Replicate.PredictionsListSource? source);
partial void ProcessPredictionsListResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -74,13 +76,19 @@ partial void ProcessPredictionsListResponseContent(
/// `version` will be the unique ID of model version used to create the prediction.
/// `data_removed` will be `true` if the input and output data has been deleted.
///
- ///
- ///
+ ///
+ /// Example: 2025-01-01T00:00:00.0000000+00:00
+ ///
+ ///
+ /// Example: 2025-02-01T00:00:00.0000000+00:00
+ ///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PredictionsListAsync(
global::System.DateTime? createdAfter = default,
global::System.DateTime? createdBefore = default,
+ global::Replicate.PredictionsListSource? source = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
@@ -88,14 +96,16 @@ partial void ProcessPredictionsListResponseContent(
PreparePredictionsListArguments(
httpClient: HttpClient,
createdAfter: ref createdAfter,
- createdBefore: ref createdBefore);
+ createdBefore: ref createdBefore,
+ source: ref source);
var __pathBuilder = new global::Replicate.PathBuilder(
path: "/predictions",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddOptionalParameter("created_after", createdAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
- .AddOptionalParameter("created_before", createdBefore?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
+ __pathBuilder
+ .AddOptionalParameter("created_after", createdAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
+ .AddOptionalParameter("created_before", createdBefore?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
+ .AddOptionalParameter("source", source?.ToValueString())
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
@@ -129,7 +139,8 @@ partial void ProcessPredictionsListResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
createdAfter: createdAfter,
- createdBefore: createdBefore);
+ createdBefore: createdBefore,
+ source: source);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.Search.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.Search.g.cs
index cab135a..ecdc58a 100644
--- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.Search.g.cs
+++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.Search.g.cs
@@ -62,8 +62,8 @@ partial void ProcessSearchResponseContent(
var __pathBuilder = new global::Replicate.PathBuilder(
path: "/search",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddRequiredParameter("query", query)
+ __pathBuilder
+ .AddRequiredParameter("query", query)
.AddOptionalParameter("limit", limit?.ToString())
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Replicate/openapi.yaml b/src/libs/Replicate/openapi.yaml
index 82d8134..fab35d1 100644
--- a/src/libs/Replicate/openapi.yaml
+++ b/src/libs/Replicate/openapi.yaml
@@ -899,6 +899,13 @@ paths:
type: string
format: date-time
example: '2025-02-01T00:00:00.0000000+00:00'
+ - name: source
+ in: query
+ description: "Filter predictions by how they were created. Currently only `web` is supported.\n\nIf no value is set, the API returns predictions from both API and web sources.\n\nWhen filtering by `source=web`, results are limited to predictions created in the last 14 days.\n"
+ schema:
+ enum:
+ - web
+ type: string
responses:
'200':
description: Success