Skip to content

Commit 5034444

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#130)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent c3c1b5e commit 5034444

9 files changed

+12
-12
lines changed

src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public partial interface IReplicateApi
6767
/// <param name="stream">
6868
/// **This field is deprecated.**<br/>
6969
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
70-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
70+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
7171
/// </param>
7272
/// <param name="webhook">
7373
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>

src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public partial interface IReplicateApi
6969
/// <param name="stream">
7070
/// **This field is deprecated.**<br/>
7171
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
72-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
72+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
7373
/// </param>
7474
/// <param name="webhook">
7575
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>

src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public partial interface IReplicateApi
6161
/// <param name="stream">
6262
/// **This field is deprecated.**<br/>
6363
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
64-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
64+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
6565
/// </param>
6666
/// <param name="version">
6767
/// The identifier for the model or model version that you want to run. This can be specified in a few different formats:<br/>

src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed partial class SchemasPredictionRequest
2727
/// <summary>
2828
/// **This field is deprecated.**<br/>
2929
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
30-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
30+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
3131
/// </summary>
3232
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
3333
public bool? Stream { get; set; }
@@ -87,7 +87,7 @@ public sealed partial class SchemasPredictionRequest
8787
/// <param name="stream">
8888
/// **This field is deprecated.**<br/>
8989
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
90-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
90+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
9191
/// </param>
9292
/// <param name="webhook">
9393
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>

src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed partial class SchemasVersionPredictionRequest
2727
/// <summary>
2828
/// **This field is deprecated.**<br/>
2929
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
30-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
30+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
3131
/// </summary>
3232
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
3333
public bool? Stream { get; set; }
@@ -100,7 +100,7 @@ public sealed partial class SchemasVersionPredictionRequest
100100
/// <param name="stream">
101101
/// **This field is deprecated.**<br/>
102102
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
103-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
103+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
104104
/// </param>
105105
/// <param name="version">
106106
/// The identifier for the model or model version that you want to run. This can be specified in a few different formats:<br/>

src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ partial void ProcessDeploymentsPredictionsCreateResponseContent(
236236
/// <param name="stream">
237237
/// **This field is deprecated.**<br/>
238238
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
239-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
239+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
240240
/// </param>
241241
/// <param name="webhook">
242242
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>

src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ partial void ProcessModelsPredictionsCreateResponseContent(
238238
/// <param name="stream">
239239
/// **This field is deprecated.**<br/>
240240
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
241-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
241+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
242242
/// </param>
243243
/// <param name="webhook">
244244
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>

src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ partial void ProcessPredictionsCreateResponseContent(
222222
/// <param name="stream">
223223
/// **This field is deprecated.**<br/>
224224
/// Request a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).<br/>
225-
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
225+
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.
226226
/// </param>
227227
/// <param name="version">
228228
/// The identifier for the model or model version that you want to run. This can be specified in a few different formats:<br/>

src/libs/Replicate/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ components:
13771377
system_prompt: You are a helpful assistant
13781378
stream:
13791379
type: boolean
1380-
description: "**This field is deprecated.**\n\nRequest a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).\n\nThis field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.\n"
1380+
description: "**This field is deprecated.**\n\nRequest a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).\n\nThis field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.\n"
13811381
webhook:
13821382
type: string
13831383
description: "An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.\n"
@@ -1677,7 +1677,7 @@ components:
16771677
text: Alice
16781678
stream:
16791679
type: boolean
1680-
description: "**This field is deprecated.**\n\nRequest a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).\n\nThis field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.\n"
1680+
description: "**This field is deprecated.**\n\nRequest a URL to receive streaming output using [server-sent events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).\n\nThis field is no longer needed as the returned prediction will always have a `stream` entry in its `urls` property if the model supports streaming.\n"
16811681
version:
16821682
type: string
16831683
description: "The identifier for the model or model version that you want to run. This can be specified in a few different formats:\n\n- `{owner_name}/{model_name}` - Use this format for [official models](https://replicate.com/docs/topics/models/official-models). For example, `black-forest-labs/flux-schnell`. For all other models, the specific version is required.\n- `{owner_name}/{model_name}:{version_id}` - The owner and model name, plus the full 64-character version ID. For example, `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`.\n- `{version_id}` - Just the 64-character version ID. For example, `9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`\n"

0 commit comments

Comments
 (0)