Skip to content

Commit 4bebdad

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#124)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent 38252dd commit 4bebdad

7 files changed

+15
-15
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public partial interface IReplicateApi
1515
/// -H 'Content-Type: application/json' \<br/>
1616
/// https://api.replicate.com/v1/deployments/acme/my-app-image-generator/predictions<br/>
1717
/// ```<br/>
18-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
18+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
1919
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
2020
/// </summary>
2121
/// <param name="deploymentOwner"></param>
@@ -44,7 +44,7 @@ public partial interface IReplicateApi
4444
/// -H 'Content-Type: application/json' \<br/>
4545
/// https://api.replicate.com/v1/deployments/acme/my-app-image-generator/predictions<br/>
4646
/// ```<br/>
47-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
47+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
4848
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
4949
/// </summary>
5050
/// <param name="deploymentOwner"></param>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public partial interface IReplicateApi
1616
/// -H 'Content-Type: application/json' \<br/>
1717
/// https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions<br/>
1818
/// ```<br/>
19-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
19+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
2020
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
2121
/// </summary>
2222
/// <param name="modelOwner"></param>
@@ -46,7 +46,7 @@ public partial interface IReplicateApi
4646
/// -H 'Content-Type: application/json' \<br/>
4747
/// https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions<br/>
4848
/// ```<br/>
49-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
49+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
5050
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
5151
/// </summary>
5252
/// <param name="modelOwner"></param>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public partial interface IReplicateApi
1515
/// -H 'Content-Type: application/json' \<br/>
1616
/// https://api.replicate.com/v1/predictions<br/>
1717
/// ```<br/>
18-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
18+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
1919
/// For a complete overview of the `predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
2020
/// </summary>
2121
/// <param name="prefer">
@@ -40,7 +40,7 @@ public partial interface IReplicateApi
4040
/// -H 'Content-Type: application/json' \<br/>
4141
/// https://api.replicate.com/v1/predictions<br/>
4242
/// ```<br/>
43-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
43+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
4444
/// For a complete overview of the `predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
4545
/// </summary>
4646
/// <param name="prefer">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ partial void ProcessDeploymentsPredictionsCreateResponseContent(
3838
/// -H 'Content-Type: application/json' \<br/>
3939
/// https://api.replicate.com/v1/deployments/acme/my-app-image-generator/predictions<br/>
4040
/// ```<br/>
41-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
41+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
4242
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
4343
/// </summary>
4444
/// <param name="deploymentOwner"></param>
@@ -213,7 +213,7 @@ partial void ProcessDeploymentsPredictionsCreateResponseContent(
213213
/// -H 'Content-Type: application/json' \<br/>
214214
/// https://api.replicate.com/v1/deployments/acme/my-app-image-generator/predictions<br/>
215215
/// ```<br/>
216-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
216+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
217217
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
218218
/// </summary>
219219
/// <param name="deploymentOwner"></param>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ partial void ProcessModelsPredictionsCreateResponseContent(
3939
/// -H 'Content-Type: application/json' \<br/>
4040
/// https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions<br/>
4141
/// ```<br/>
42-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
42+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
4343
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
4444
/// </summary>
4545
/// <param name="modelOwner"></param>
@@ -215,7 +215,7 @@ partial void ProcessModelsPredictionsCreateResponseContent(
215215
/// -H 'Content-Type: application/json' \<br/>
216216
/// https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions<br/>
217217
/// ```<br/>
218-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
218+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
219219
/// For a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
220220
/// </summary>
221221
/// <param name="modelOwner"></param>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ partial void ProcessPredictionsCreateResponseContent(
3434
/// -H 'Content-Type: application/json' \<br/>
3535
/// https://api.replicate.com/v1/predictions<br/>
3636
/// ```<br/>
37-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
37+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
3838
/// For a complete overview of the `predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
3939
/// </summary>
4040
/// <param name="prefer">
@@ -201,7 +201,7 @@ partial void ProcessPredictionsCreateResponseContent(
201201
/// -H 'Content-Type: application/json' \<br/>
202202
/// https://api.replicate.com/v1/predictions<br/>
203203
/// ```<br/>
204-
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpiont.<br/>
204+
/// The request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `"starting"` state and need to be retrieved using the `predictions.get` endpoint.<br/>
205205
/// For a complete overview of the `predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.
206206
/// </summary>
207207
/// <param name="prefer">

src/libs/Replicate/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ paths:
243243
'/deployments/{deployment_owner}/{deployment_name}/predictions':
244244
post:
245245
summary: Create a prediction using a deployment
246-
description: "Create a prediction for the deployment and inputs you provide.\n\nExample cURL request:\n\n```console\ncurl -s -X POST -H 'Prefer: wait' \\\n -d '{\"input\": {\"prompt\": \"A photo of a bear riding a bicycle over the moon\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Content-Type: application/json' \\\n https://api.replicate.com/v1/deployments/acme/my-app-image-generator/predictions\n```\n\nThe request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `\"starting\"` state and need to be retrieved using the `predictions.get` endpiont.\n\nFor a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.\n"
246+
description: "Create a prediction for the deployment and inputs you provide.\n\nExample cURL request:\n\n```console\ncurl -s -X POST -H 'Prefer: wait' \\\n -d '{\"input\": {\"prompt\": \"A photo of a bear riding a bicycle over the moon\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Content-Type: application/json' \\\n https://api.replicate.com/v1/deployments/acme/my-app-image-generator/predictions\n```\n\nThe request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `\"starting\"` state and need to be retrieved using the `predictions.get` endpoint.\n\nFor a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.\n"
247247
operationId: deployments.predictions.create
248248
parameters:
249249
- name: deployment_owner
@@ -619,7 +619,7 @@ paths:
619619
'/models/{model_owner}/{model_name}/predictions':
620620
post:
621621
summary: Create a prediction using an official model
622-
description: "Create a prediction using an [official model](https://replicate.com/changelog/2025-01-29-official-models).\n\nIf you're _not_ running an official model, use the [`predictions.create`](#predictions.create) operation instead.\n\nExample cURL request:\n\n```console\ncurl -s -X POST -H 'Prefer: wait' \\\n -d '{\"input\": {\"prompt\": \"Write a short poem about the weather.\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Content-Type: application/json' \\\n https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions\n```\n\nThe request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `\"starting\"` state and need to be retrieved using the `predictions.get` endpiont.\n\nFor a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.\n"
622+
description: "Create a prediction using an [official model](https://replicate.com/changelog/2025-01-29-official-models).\n\nIf you're _not_ running an official model, use the [`predictions.create`](#predictions.create) operation instead.\n\nExample cURL request:\n\n```console\ncurl -s -X POST -H 'Prefer: wait' \\\n -d '{\"input\": {\"prompt\": \"Write a short poem about the weather.\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Content-Type: application/json' \\\n https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions\n```\n\nThe request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `\"starting\"` state and need to be retrieved using the `predictions.get` endpoint.\n\nFor a complete overview of the `deployments.predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.\n"
623623
operationId: models.predictions.create
624624
parameters:
625625
- name: model_owner
@@ -847,7 +847,7 @@ paths:
847847
$ref: '#/components/schemas/schemas_prediction_response'
848848
post:
849849
summary: Create a prediction
850-
description: "Create a prediction for the model version and inputs you provide.\n\nExample cURL request:\n\n```console\ncurl -s -X POST -H 'Prefer: wait' \\\n -d '{\"version\": \"replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa\", \"input\": {\"text\": \"Alice\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Content-Type: application/json' \\\n https://api.replicate.com/v1/predictions\n```\n\nThe request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `\"starting\"` state and need to be retrieved using the `predictions.get` endpiont.\n\nFor a complete overview of the `predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.\n"
850+
description: "Create a prediction for the model version and inputs you provide.\n\nExample cURL request:\n\n```console\ncurl -s -X POST -H 'Prefer: wait' \\\n -d '{\"version\": \"replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa\", \"input\": {\"text\": \"Alice\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Content-Type: application/json' \\\n https://api.replicate.com/v1/predictions\n```\n\nThe request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `\"starting\"` state and need to be retrieved using the `predictions.get` endpoint.\n\nFor a complete overview of the `predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.\n"
851851
operationId: predictions.create
852852
parameters:
853853
- $ref: '#/components/parameters/parameters_prefer_header'

0 commit comments

Comments
 (0)